SHA-2 Hash Generator
Generate all six SHA-2 digests — SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256 — side by side.
Digest
About this input
Import from File
Drag & drop a file here
or
Supports .txt, .csv, .log, .json and other text files
What It Does
This tool computes every member of the SHA-2 family for the same input at once: SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256. Seeing them side by side makes two things concrete — the variants are not prefixes of one another, and the same algorithm family can produce digests of four different widths. Paste a checksum into the comparison box and the tool tells you which variant it came from.
When to Use It
- You have a checksum and do not know which SHA-2 variant produced it.
- A spec says SHA-2 without naming a width and you want to see every candidate value.
- You are teaching or documenting the SHA-2 family and need a clear side-by-side.
- You want to confirm that SHA-512/256 and a truncated SHA-512 are different values.
Worked Examples
abc
All six NIST test vectors at once. Note that SHA-256 and SHA-512/256 are both 64 hex characters yet share nothing.
The empty-input digests. Each starts differently because each variant has its own initial values.
The quick brown fox jumps over the lazy dog
Paste one of the resulting values into the comparison box: the tool names the variant that matched.
Features
How to Use
1. Type or paste text, or choose Hash a file to hash a file's raw bytes. 2. Pick the output encoding the value will be compared against — hex is the usual one. 3. To check a published checksum, paste it into the comparison box; the tool tells you whether it matches and, if not, whether it is even the same algorithm.
Common Mistakes
- Hashing text that is not byte-for-byte what the other side hashed. A trailing newline, Windows line endings or a byte-order mark each produce a completely different SHA-2 value, and none of them are visible.
- Comparing a hex digest with a Base64 one. They encode the same bytes differently, so they never look alike even when they match — switch the output format before deciding two values disagree.
- Comparing digests in mixed case and concluding they differ. Hex is case-insensitive; ABCDEF and abcdef are the same value.
- Using a plain SHA-2 digest where a secret is involved. To prove a message came from someone holding a key, you need HMAC, not hash(secret + message).
Frequently Asked Questions
Related Tools
Everything runs in your browser. Text and files are hashed locally — nothing is uploaded, logged or stored.