Hash Tools

A cryptographic hash function takes a message of any length and returns a short, fixed-length digest. Type a message below to hash it with one of the common hash functions used in the real world.

Message is
Show digest as
bits of the digest

Message

Notes

  • Text messages are encoded as UTF-8 bytes before hashing, which is what Python's hashlib.sha256(b"...") does. Hex and bits messages are read directly as bytes (spaces are ignored; bits must come in whole bytes, i.e. a multiple of 8).
  • In compare mode with bit output, the bits that differ between the two digests are highlighted. When you change a message a little, a good hash should change about half of the digest bits (the avalanche effect).
  • MD5 (1990s) and SHA-1 (1995) are broken: collisions can be found in practice (for MD5, in seconds). SHA-2 (NIST 2001) is still in wide use; SHA-3 (NIST 2015) is built very differently (a "sponge") and is not subject to length-extension attacks. BLAKE2 and BLAKE3 are fast modern hashes.