SHA-256 Hash Generator (Text/File Checksums)
Compute SHA-256 instantly in the browser. Generate hashes for text or files, copy in one click, and verify checksums without uploading.
Web Crypto API is unavailable here. Please open over HTTPS.
SHA-256 Calculation (Text)
sha256 checksum (file)
Options
Advanced
How to use
- Paste your text.
- SHA-256 appears automatically.
- Copy it or paste the expected hash to verify.
- Drop or choose a file.
- Click Calculate SHA-256.
- Copy the checksum or verify it.
Why hashes differ even when text looks the same
If your sha256 checksum doesn't match, these are the usual causes.
LF (\n) and CRLF (\r\n) are different bytes.
A single newline or space changes the bytes even if it looks identical.
UTF-8 hashes won't match hashes created from other encodings.
Visually identical characters can be different byte sequences (NFC/NFD).
Files can include BOMs or different line endings even with the same text.
Use these to confirm your result quickly.
FAQ
Can you add MD5?
It's a candidate. Web Crypto API doesn't provide MD5, so we'd need a separate implementation. The first release focuses on SHA-256.
Does it work with files?
Yes. The browser reads your local file and calculates SHA-256 without uploading anything.
Why is my hash different for the same content?
Line endings (LF/CRLF), trailing spaces/newlines, non-UTF-8 encodings, and Unicode normalization differences all change the byte sequence.