SHA-256 Hash Generator

Compute the SHA-256 digest of any text — hex or base64 output, uppercase option, and hex/base64 input decoding. Runs entirely in your browser, no server, no sign-up.

SHA-256 digest

About this tool

This SHA-256 hash generator computes the SHA-256 (SHA-2) digest of any text right in your browser. The hashing runs locally in WebAssembly — your input is never uploaded to a server, which makes it safe for passwords, keys, and other sensitive strings.

SHA-256 produces a fixed 256-bit (32-byte) digest. It is the most widely used cryptographic hash today: it secures TLS certificates, backs content-addressed storage and Git object IDs, anchors blockchain transactions, and is the standard choice for file-integrity and download checksums.

Options

Notes

FAQ

Why does my hash differ from what another tool produced for the "same" input?

Almost always an invisible byte difference: a trailing newline or space, Windows \r\n line endings, or the other tool hashing a file rather than the pasted text. Check the Interpret input as setting too — deadbeef hashed as text digests the eight ASCII characters, while hashed as hex it digests the four raw bytes, and the results are completely different. The uppercase toggle only changes the display, never the digest.

How do I hash raw bytes, like a key or ciphertext, instead of text?

Set Interpret input as to hex or base64. The input is then decoded to its raw bytes first and the SHA-256 is computed over those bytes — which is what you want when the value is a key, a random nonce, or another hash rather than human-readable text.

Can a SHA-256 hash be reversed to reveal my original text?

No — SHA-256 is a one-way function; there is no algorithm that recovers the input from the 256-bit digest. The practical caveat: if the input was short or guessable (a common password, a dictionary word), an attacker can brute-force candidates and compare hashes. Which leads to…

Should I use SHA-256 for storing passwords?

No. SHA-256 is deliberately fast, which is exactly wrong for passwords — GPUs can test billions of guesses per second. Use a slow, memory-hard password hash instead: this site's argon2-hash tool generates Argon2id PHC strings designed for that job. SHA-256 is the right choice for checksums, content addressing, and integrity verification.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool sha256-hash "Hello, world!"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/sha256-hash/?text=Hello%2C%20world%21&input_encoding=text&output_format=hex&uppercase=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.