Ready now
Hash Generator - SHA-256 / SHA-512
Preparing controls…
About this tool
What Hash Generator - SHA-256 / SHA-512 does
Create a SHA-256 or SHA-512 hexadecimal digest from text using the browser Web Crypto API.
Calculate the SHA-256 or SHA-512 hexadecimal digest of the exact UTF-8 text entered. Whitespace, line endings and character normalization can change the bytes and therefore the digest.
Check the standard SHA-256 abc vector
Input or settings
abc
Expected result
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Algorithm: SHA-256; no newline after abc.
How to use it
- Choose SHA-256 or SHA-512 and enter the exact text.
- Choose Generate hash; an empty string is a valid deliberate input.
- Compare the full hexadecimal digest using the same encoding and algorithm on both sides.
Common uses
- Check a known text test vector.
- Compare two exact text representations without keeping their original text in a shared result.
Important limitations
- A digest is not encryption, a signature or proof of who created the input.
- Fast SHA hashes are unsuitable as a password-storage scheme; this workspace hashes text rather than a selected file.
Frequently asked questions
Why does an added newline change the hash?
It adds bytes to the UTF-8 input. Confirm trailing newlines and line-ending conventions before comparing digests.
Can I recover the text from its SHA digest?
The algorithm has no decoding operation. Predictable inputs can still be guessed and hashed for comparison.