SHA hash generator

Generate a SHA-256, SHA-384, or SHA-512 digest of UTF-8 text to compare content through its hexadecimal hash.

Ready to useIn your browser · no account

Generates a hexadecimal digest of UTF-8 text, including spaces and line breaks. Hashes cannot be reversed and this tool is not suitable for password storage. Nothing is sent to a server.

How to use

  1. Type or paste text, preserving any spaces and line breaks you want to include.
  2. Under Algorithm, choose SHA-256, SHA-384, or SHA-512 and click Generate hash. Calculation happens in your browser.
  3. Copy the hexadecimal digest and compare it only with hashes produced using the same algorithm and encoding.

How it works

Accepts up to 100,000 characters. A hash is not reversible encryption, and this generator does not replace a dedicated password-storage method. Spaces, accents, and line breaks are part of the input.

An example

Hash some text, then add a line break: the digest changes because the input bytes changed.

Common questions

Can I recover the original text from a hash?

A hash has no decoding operation that restores its input. The tool produces a fixed-length digest rather than an encrypted copy of the text.

Does the same text always produce the same hash?

Yes, when the algorithm and UTF-8 bytes are the same. A difference in spaces, capitalization, or line breaks changes the input.