Hash generator

Type or paste text to see its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once.

Which hash should I use?

  • SHA-256 is the safe default for checksums, signatures and content addressing.
  • MD5 and SHA-1 are broken for security (collisions can be manufactured) but still fine for non-security checksums and cache keys.
  • For passwords, never use a plain hash. Use a slow, salted password hash such as Argon2, bcrypt or scrypt.

Details

Text is hashed as UTF-8 bytes, so results match sha256sum, openssl dgst and most programming languages for the same input. Watch out for trailing newlines: echo "hi" | sha256sum hashes "hi\n", not "hi". Use echo -n.

Everything runs in your browser. Nothing you paste is uploaded, logged or stored on a server, so it's safe to use with private data.

Questions

Can a hash be reversed?

No. Hashes are one-way. Short or common inputs can be guessed with lookup tables, which is why passwords need slow, salted hashing.

Why doesn't my hash match the command line?

Usually a trailing newline or different encoding. Use echo -n, and make sure the text is UTF-8.

Related tools