Technology / utility
Hash Generator
Compute SHA-256, SHA-384 or SHA-512 over exact UTF-8 text using asynchronous browser Web Crypto, without claiming hashing is encryption.
Calculator
Calculator
Hash UTF-8 text locally.
Use browser Web Crypto to compute SHA-256, SHA-384 or SHA-512 over exact UTF-8 text, including empty text. Hashing is not encryption or password hashing.
Your result
Enter details to see the result.
Complete the inputs and calculate to see the main result and its supporting breakdown.
Example
Worked example
Example inputs
- SHA algorithm
- SHA-256
- Exact input text
- abc
Calculation breakdown
Web Crypto subtle.digest(selected SHA algorithm, TextEncoder UTF-8 bytes), displayed as lowercase hexadecimal bytes.
- UTF-8 byte count
- 3
Example result
SHA-256 digest (hex)
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Exact UTF-8 bytes, without Unicode normalization or a trailing newline.
How to interpret the result
The hexadecimal digest is deterministic for the selected algorithm and exact UTF-8 bytes. Different whitespace or Unicode normalization can change it; the byte count helps distinguish character count from input size.
How to use this calculator
- Select SHA-256, SHA-384 or SHA-512.
- Enter the exact UTF-8 text, preserving intended whitespace and line breaks.
- Hash locally, wait for Web Crypto completion and compare the full hexadecimal digest.
How it works
Formula
Web Crypto subtle.digest(selected SHA algorithm, TextEncoder UTF-8 bytes), displayed as lowercase hexadecimal bytes.
Can I decrypt a hash?
No. A hash is not encrypted text and has no decryption operation. For password storage, use a dedicated salted password-hashing scheme rather than plain SHA.
What this calculator does
Compute a SHA digest of the exact UTF-8 text, keeping hashing distinct from encryption and password storage.
Inputs you will need
Required or selected inputs
- SHA algorithm
- Exact input text
Assumptions
- The exact entered text is encoded as UTF-8 without trimming, added newline or Unicode normalization. Empty text has a defined digest.
Limitations
- Input is at most 20,000 UTF-16 characters. Plain SHA is not encryption and is unsuitable as a dedicated password-storage algorithm; SHA-1 and MD5 are not offered.
Useful next steps
For reversible text representation rather than a digest, use Base64 Encoder / Decoder.
References
W3C: Web Cryptography API — Platform secure randomness and asynchronous SHA digests. Plain SHA is not encryption or a dedicated password-hashing scheme. User-generated passwords stay in browser memory; the public example is deterministic and never a usable secret.
See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.
Good to know
Frequently asked questions
How should I read the hash generator result?
The hexadecimal digest is deterministic for the selected algorithm and exact UTF-8 bytes. Different whitespace or Unicode normalization can change it; the byte count helps distinguish character count from input size.
Keep going