Skip to content

SHA256 Online Hash Generator

Generate an SHA-256, SHA-384, or SHA-512 digest for text or a file. Hashing runs in your browser.

Text is encoded as UTF-8. Empty input is allowed.

SHA-256 worked example

Enter abc without a trailing newline, select SHA-256 and Hex, and click Generate hash.

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Hashing versus encryption

Hashing produces a fixed-length digest for checking data integrity. It is designed to be one-way. Encryption protects confidentiality and lets someone with the correct key recover the original data.

Why does my hash differ?

  • Spaces, commas, and newlines. The tool hashes the entire input as one message. Check for leading or trailing spaces and a final newline. LF and CRLF produce different digests. Pressing Enter in the tool inserts LF.
  • Encoding. Text mode uses UTF-8 without adding a byte order mark or applying Unicode normalization. Visually identical characters can use different Unicode sequences. Use File mode to hash the original bytes, including any byte order mark or line endings.
  • Output format. Lowercase Hex and Base64 represent the same digest bytes. Compare results using the same algorithm and format.

Frequently asked questions

Can I hash empty input?

Yes. Leave the Text field blank and select Generate hash to hash zero bytes.

How long is a SHA-256 digest?

SHA-256 produces a 32-byte digest, displayed as 64 characters in Hex or 44 characters in standard Base64.

Does the tool upload text or files?

Hashing runs locally in your browser. The tool does not send your text or files to the server.

❤️ Liked this tool?

If it saved you time, consider buying me a coffee to support future improvements.

Help Others Find This

References