How to Use the SHA-2 Hash Generator for UTF-8 Text
- 1Paste the exact message into the SHA-2 input. Include any punctuation, spaces, or trailing newline that belongs to the source.
- 2Choose the digest size named by the reference, keeping the message unchanged while you compare variants.
- 3Copy the entire hexadecimal result. Keep its leading zeroes, and compare it against a value generated from the same UTF-8 input.
- 4Record the algorithm and exact input with the digest. If a test fails, verify the input encoding and whitespace before changing the reference.
Input & Output Examples
Choose 224 bits to run SHA-224 and compare a 56-digit value.
Input Sample
abcExpected Output
23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7Choose 512 bits to run SHA-512 for the same message with an output of 128 digits.
Input Sample
abcExpected Output
ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49fPractical Developer Workflows
- Compare the SHA-224 and SHA-512 outputs for one known message.
- Reproduce a reference value when a specification names a particular member of SHA-2.
- Check whether an integration preserves the full hex width for more than one digest size.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Notice a bug, calculation error, or outdated info?
Let us know directly so our engineering team can fix it.
Frequently Asked Questions
Each choice runs the corresponding algorithm. SHA-224, for instance, is not just a shorter display of the SHA-256 result. Select by algorithm name and compare the complete value instead of taking a prefix.