SHA-256 hash
SHA-256 hash: process standard inputs with validation using self-contained pure logic, suitable for local checks and test vectors.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Pure local computation; no data is uploaded.
Enter input to see the result
Output length: 0 · Input bytes: 0
What this tool does
- Compute the SHA-256 digest of any text (UTF-8) as 64 lowercase hex characters.
- Check "uppercase output" for uppercase hex; the digest length and the input byte count are shown as well.
- Empty input is rejected; the result can be compared character by character with the FIPS 180-4 examples or any third-party implementation.
Example
Input
Hello, world!
Output
315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
The example prints the 64-character digest of UTF-8 input, matching the FIPS 180-4 vectors.
Frequently asked questions
Is input uploaded?
No. The algorithm runs locally in a self-contained pure function.
How should I verify a result?
Verify with published vectors: RFC 3174 appendix A for SHA-1 (abc, the 448-bit message and one million a), and the FIPS 180-4 examples for SHA-256 and SHA-512. The unit tests here pin exactly those vectors, including the empty-string digest and the multi-block padding cases. Note that input is UTF-8 and output is lowercase hex.
Why is empty input rejected?
Cryptographic tools need an explicit message boundary; empty text usually means no value was entered.
Keywords:SHA-256 hashcryptographystandard vectorlocalhash