SHA-256 Hash Calculator (Text/File Checksum)
Calculate SHA-256 directly in your browser. Your input data is never sent.
Generate, copy, and verify checksums for both text and files in one place.
SHA-256 Calculation (Text)
Text input is encoded as UTF-8 bytes and hashed with Web Crypto API. With auto-calculate enabled, results update while typing.
sha256 Checksum (File)
Drop or select a local ZIP, exe, pdf, or any file to compute its checksum. Files are never uploaded.
How to use (3 steps)
- Paste text, or drop/select a file.
- Text hashes automatically. For files, click "Calculate SHA-256" to start.
- Copy the result, or paste the expected value to verify.
Verification samples
Empty string
Input: (no input)
Output: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abc
Input: abc
Output: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Why hashes differ even when content looks the same
- Different newline style (LF vs CRLF).
- Different trailing newline or trailing spaces.
- Different text encoding (non-UTF-8).
- Different Unicode normalization (NFC/NFD).
- Text input and file bytes are not identical (for example BOM).
FAQ
Can I hash files too?
Yes. Local files are read in your browser and hashed with SHA-256. Files are not uploaded.
Why does the hash differ for seemingly same content?
Byte sequences can differ due to newlines, trailing spaces, encoding, or Unicode normalization, even if text looks the same.
Is any data sent to servers?
No. Processing is fully local in your browser.
Why does it say this environment is unsupported?
Web Crypto API requires HTTPS (secure context). Open the tool over HTTPS.
Notes
- Web Crypto API requires HTTPS (secure context).
- Very large files can consume memory and take longer to process.