SHA2 Hash Generator
Generate every SHA-2 digest of text or files at once.
SHA-224 · 224 bits
Result will appear here...
SHA-256 · 256 bits
Result will appear here...
SHA-384 · 384 bits
Result will appear here...
SHA-512 · 512 bits
Result will appear here...
SHA-512/224 · 224 bits
Result will appear here...
SHA-512/256 · 256 bits
Result will appear here...
SHA-2 Hash Generator
See every SHA-2 hash of your text or file at once: SHA-224, SHA-256, SHA-384, SHA-512, and the truncated SHA-512/224 and SHA-512/256. All digests are computed together in your browser and update as you type.
The SHA-2 family
SHA-2 was published by NIST in 2001 (FIPS 180-4) and is the most widely deployed family of secure hash functions. Every variant uses the same core design — a Merkle-Damgård construction with a block compression function — but differs in detail:
- SHA-224 / SHA-256 use 32-bit words and 64 rounds.
- SHA-384 / SHA-512 use 64-bit words and 80 rounds, so they are often faster on 64-bit CPUs.
- SHA-512/224 and SHA-512/256 run the SHA-512 engine but truncate the output, giving length-extension resistance with a shorter digest.
Features
- Text or file input (text, hex, Base64, Latin-1), up to 200 MB
- All six variants at once, with chips to show or hide any of them
- Hex, uppercase, or Base64 output
- Hash each line and compare with a known hash
Choosing a variant
For general use, SHA-256 is the standard. For 64-bit performance with a 256-bit output, pick SHA-512/256. For the newer sponge-based design, see the SHA3-256 Hash Generator, and for keyed authentication use the HMAC Generator.
Frequently Asked Questions
What is the difference between SHA-2 and SHA-256?
SHA-2 is the family; SHA-256 is one member of it. The family also includes SHA-224, SHA-384, SHA-512, and the truncated SHA-512/224 and SHA-512/256. They share the same design but differ in word size, number of rounds, and output length.
Which SHA-2 variant should I use?
SHA-256 is the safe default and is the most widely supported. On 64-bit systems SHA-512 (or SHA-512/256) can be faster and equally secure. Larger digests like SHA-384 and SHA-512 are used where a bigger security margin is required.
Is SHA-2 broken?
No. There are no known practical collision or preimage attacks against any SHA-2 variant, and NIST continues to recommend it for signatures and integrity checks.
Can I hash a file with all variants at once?
Yes. Switch to File mode and every SHA-2 digest is computed from the same file in one pass, entirely in your browser. Use the chips to hide variants you do not need.