Developer

Hash generator

Compute SHA-256 or SHA-1 of text in the browser.

Loading tool…

  1. 1 Type or paste the text.
  2. 2 Choose SHA-256 or SHA-1.
  3. 3 Copy the hexadecimal digest.

How it works

Hashing turns text into a fixed fingerprint. SHA-256 is the useful default. SHA-1 is here for comparing old checksums, not for new passwords. The hash is hexadecimal. The same text always produces the same hash; you cannot reverse the hash to recover the text. An empty string has a real hash too.

Frequently asked questions

Can I hash a file?

This page hashes the text you paste, not a file’s raw bytes. A trailing newline changes the hash.

Should I store passwords as SHA-256?

No. Password storage needs a slow hash such as bcrypt or scrypt, plus a salt. This is a checksum tool.