How to Use the SHA-256 Hash Generator for UTF-8 Text
- 1Paste the exact message into the SHA-256 input. Include any punctuation, spaces, or trailing newline that belongs to the source.
- 2Read the 64-digit output and confirm that the reference names SHA-256. Digest width alone cannot identify which algorithm produced a value.
- 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
This known SHA-256 vector uses only the three letters, with no line ending.
Input Sample
abcExpected Output
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adAdding a final line feed changes the digest while preserving its full 64-digit width.
Input Sample
abc
Expected Output
edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cbPractical Developer Workflows
- Record a reference digest for a request-body fixture whose exact text is known.
- Check the effect of a final newline before comparing equivalent-looking examples.
- Compare an application output with the SHA-2 selector at its 256-bit setting.
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
Pasting a name hashes only the text of that name. The editor hashes text as UTF-8. If a verification workflow uses arbitrary file bytes, use a byte-oriented file hashing tool that reads the original file contents.