Developer tools
SHA checksum
Generate a SHA-256 or SHA-512 hash of text in your browser; line endings become LF and the text is UTF-8 encoded before hashing to lowercase hex.
Maximum: 1,048,576 UTF-8 bytes. Spaces are preserved. CRLF and CR line endings are converted to LF. Unicode normalisation is not applied; visually identical text can have different bytes.
Result
Method:
This hashes text, not files. It is not encryption or password storage. Text is not sent, saved in cookies or local storage, or added to the URL. Reset clears the page fields, without guaranteeing erasure from device memory.
How it works
Text → LF line endings → UTF-8 (no BOM) → native SHA-256 or SHA-512 → lowercase hex.
Worked example
Text abc has SHA-256 checksum ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
About this calculation
The SHA checksum tool calculates a SHA-256 or SHA-512 hash of a piece of text. Developers and anyone comparing text versions can use it to check whether two strings are byte for byte the same.
The text passes through fixed steps: line endings are normalised to LF, the text is encoded as UTF-8 without a BOM, the browser computes the selected SHA function and the result appears as lowercase hexadecimal. Spaces are kept, and up to 1,048,576 UTF-8 bytes are accepted. For example, abc gives a SHA-256 value beginning ba7816bf.
No Unicode normalisation is applied, so visually identical text can hash differently. The tool works on text, not files, and it is neither encryption nor password storage.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Algorithm
- SHA-256
Result
- Algorithm
- SHA-256
- UTF-8 bytes
- 0
- Checksum (lowercase hex)
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Frequently asked questions
How do I calculate a SHA-256 checksum of text?
Paste or type the text and choose SHA-256 or SHA-512. The SHA checksum tool converts the text to UTF-8 and returns the hash as lowercase hexadecimal, calculated locally in the browser.
What is the SHA-256 hash of abc?
The text abc has the SHA-256 checksum ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
How are line endings handled in the SHA checksum?
CRLF and CR line endings are converted to LF before hashing. Spaces are preserved, and the text is encoded as UTF-8 without a BOM.
Why do two identical-looking texts give different hashes?
Unicode normalisation is not applied, so visually identical text can consist of different bytes and therefore produce a different checksum.
Can I hash a file with the SHA checksum tool?
No. The tool hashes text only, not files, up to 1,048,576 UTF-8 bytes. Empty text is valid input.
Is a SHA checksum suitable for storing passwords?
No. The SHA checksum is not encryption or password storage.