Hash Identifier
Paste a hash and I show the likely algorithms from its length and character set (32 hex → MD5/NTLM, 40 → SHA-1, 64 → SHA-256, $2b$ → bcrypt…). Handy to recognize what you are looking at.
Likely algorithms
| # | Algorithm | Reason |
|---|
How I identify it · length, format and prefixes
1. A hash carries no label saying which
algorithm produced it, but its length and
character set narrow the options a lot. 32 hex characters
are almost always MD5, NTLM or MD4.
2. By hex length: 8 →
CRC32/Adler-32, 16 → MySQL(old)/CRC64, 32 →
MD5/NTLM/MD4/LM, 40 → SHA-1/RIPEMD-160/MySQL5,
56 → SHA-224, 64 → SHA-256/SHA3-256/BLAKE2s,
96 → SHA-384, 128 → SHA-512/SHA3-512/BLAKE2b.
3. Modern crypt hashes are
recognized by their prefix with full certainty:
$2a$/$2b$/$2y$ → bcrypt, $1$ → md5crypt,
$5$ → sha256crypt, $6$ → sha512crypt,
$argon2…$ → Argon2, {SSHA} → SSHA (LDAP)…
4. It is a hint, not a verdict:
MD5, NTLM and MD4 share the same
length, so the list is of candidates. The
context (where the hash came from) decides which one it is.
Classified locally in your browser · no sign-up · nothing leaves your browser
How it works
The identifier classifies a pasted hash (it computes nothing) using two clues: the length and the character set. For hexadecimal strings it applies the classic table: 8 characters → CRC32/Adler-32, 32 → MD5/NTLM/MD4, 40 → SHA-1/RIPEMD-160, 56 → SHA-224, 64 → SHA-256/SHA3-256/BLAKE2s, 96 → SHA-384 and 128 → SHA-512/SHA3-512/BLAKE2b. If the string is base64, it estimates the digest bytes and suggests the algorithms that produce that size.
Modern crypt formats are recognized with certainty by their prefix: $2a$/$2b$/$2y$ is bcrypt (including the cost factor), $argon2id$ is Argon2, $1$ md5crypt, $5$ sha256crypt, $6$ sha512crypt, $y$ yescrypt, $P$/$H$ phpass and {SSHA} the LDAP salted SHA-1, among others. For everything else the output is a list of candidates ranked by likelihood, because several algorithms share the same length: the context where the hash came from decides which one it is.
Example: which algorithm produced 5d41402abc4b2a76b9719d911017c592?
- The string has 32 characters and uses only hexadecimal digits.
- The length table proposes the candidates: MD5 (the most common), NTLM, MD4, LM and others that share the 128-bit size.
- By contrast, if you paste
$2b$12$R9h/…the prefix identifies it with certainty as bcrypt with cost 12: no ambiguity is possible.