Hash Generator
Generate SHA-256, SHA-384 or SHA-512 hashes from text in your browser for checksums, integrity checks and developer workflows.
Your result will appear here.
Hash Generator online
Generate a SHA-256, SHA-384 or SHA-512 hash of any text, computed locally in your browser — for integrity checks, comparing values without sharing them, and seeing how cryptographic hashing behaves.
How it works
The tool passes the UTF-8 bytes of your text to the browser's Web Crypto API (SubtleCrypto.digest), which runs the SHA-2 algorithm you select. SHA-2 pushes the input through dozens of rounds of bit operations in fixed-size blocks; whatever the input length, the digest has a fixed size — 64 hexadecimal characters for SHA-256, 96 for SHA-384 and 128 for SHA-512. Hashing is one-way (there is no key and no decryption) and deterministic: the same input always produces the same digest, while changing a single character avalanches into a completely different one.
Worked example
Hashing the three letters abc with SHA-256 gives ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Add a single full stop — abc. — and the digest becomes 5ac9481b887da55cdb508bbb7d91e7896c418c1ad3badb6f4f6d2a524f5cdcaf: not a single position survives the one-character change, which is exactly the property that makes hashes useful as fingerprints.
How to use this tool
- Type or paste the text to hash.
- Select SHA-256, SHA-384 or SHA-512 (SHA-256 is the usual default).
- Run the tool and copy the digest — the algorithm name is printed with it.
Common uses
Verifying that a value arrived unchanged (compare the digest at both ends), fingerprinting text for deduplication and change detection, generating the test vectors you need while developing anything that consumes hashes, and confirming two copies of a string are byte-identical when a visual check is not enough.
Privacy and browser processing
Your text is hashed locally in your browser with the Web Crypto API — it is never uploaded, so you can hash sensitive strings safely.
Frequently asked questions
Can a hash be converted back to the original text?
No. A cryptographic hash is a one-way fingerprint, not encryption — there is no key and no reverse operation. The only attack is guessing inputs and hashing them until one matches, which is practical only for short or predictable inputs such as a single word.
Which algorithm should I choose?
SHA-256 for almost everything: it is the universal standard for integrity checks and interoperability. SHA-384 and SHA-512 offer larger digests and wider security margins; SHA-512 can even be faster than SHA-256 on 64-bit systems. There is no reason to use MD5 or SHA-1 for new integrity work.
Why does one changed character change the whole hash?
By design — the avalanche effect. Each round of SHA-2 mixes the input bits so thoroughly that a one-bit difference flips about half the output bits. Two digests therefore reveal nothing about how similar their inputs were.
Can I use this to store passwords safely?
No. A plain fast hash like SHA-256 is exactly what password storage must avoid, because attackers can test billions of guesses per second. Passwords need a slow, salted function such as bcrypt, scrypt or Argon2 — this tool is for integrity fingerprints, not credential storage.