Text Hash Generator
Type or paste a string and get every digest at once rather than picking an algorithm first. Seeing them together is what you want when you have a reference digest and do not know which algorithm produced it - match it by length and value.
This page opens with text input selected.
Identifying an unknown digest by length
Length narrows it to one algorithm in almost every case, which is why showing all five simultaneously answers the question faster than guessing and re-running.
- 32 hex characters - MD5.
- 40 - SHA-1.
- 64 - SHA-256.
- 96 - SHA-384.
- 128 - SHA-512.
Trailing newlines change everything
A hash is over exact bytes, so an invisible trailing newline produces a completely different digest. This is the single most common reason a hand-typed string fails to match a reference value, and it is why hashing a file directly is more reliable than pasting its contents.
MD5('abc') 900150983cd24fb0d6963f7d28e17f72
MD5('abc\n') 0bee89b07a248e27c83fc3d5951213c1Not for passwords
These algorithms are built to be fast, which is exactly wrong for password storage - speed is what lets an attacker with your database try billions of guesses. Password hashing needs a deliberately slow, salted function such as Argon2, scrypt or bcrypt.
Hashing is not encoding
A hash is one-way: there is no operation that turns a digest back into the input. Sites that appear to reverse MD5 are looking the value up in a table of precomputed common inputs, not inverting anything.
That is exactly why unsalted hashes of predictable values such as passwords or email addresses offer so little protection.