Hash Generator (MD5/SHA)
Instantly generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text.
How a hash is made
A hash function reads your text and squeezes it into a fixed-length fingerprint. The same text always gives the same hash, and the output is always the same length, whether you hash one word or a whole book.
Everything happens in your browser, so the text you type here is never sent anywhere.
Change one letter, change everything
Change a single character and the whole hash changes, not just one part of it. That is why a hash is a reliable way to tell whether two pieces of text are exactly the same.
Edit either box and watch how many characters of the hash change.
MD5 vs SHA-1 vs SHA-256 vs SHA-512
Longer hashes are harder to fake. For anything security-related, use SHA-256 or SHA-512.
MD5 and SHA-1 are fast and fine for spotting accidental changes, but researchers have shown ways to create two different inputs with the same MD5 or SHA-1 hash, so do not rely on them for security.
Check if two hashes match
Paste a hash you were given next to one you generated. Hashes are long, so comparing them by eye is easy to get wrong. This check compares every character, ignoring spaces and letter case.
What hashes are used for
Anywhere you need to know whether two things are exactly the same, quickly.
Hashing is not encryption
They sound alike but do opposite jobs.
x9#Lq…→ key →HelloTwo-way. Anyone with the right key can turn it back into the original text.
185f8d…✕HelloOne-way. There is no key, and you cannot turn a hash back into the text.
Storing passwords? Use a dedicated password-hashing method such as bcrypt or Argon2, not a plain MD5 or SHA hash.