Skip to content

Hash Identifier

Embed

Paste this where you want Hash Identifier on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/hash-identifier/" width="100%" height="500" frameborder="0" loading="lazy" title="Hash Identifier"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/hash-identifier/">Hash Identifier</a> by BrowserUtils</p>

Identify hash algorithms from hash strings.Runs in this tab.

Hash Input

Paste a hash above to identify its algorithm.

Supports MD5, SHA-1, SHA-256, SHA-384, SHA-512, bcrypt, Argon2, scrypt, CRC32, NTLM, and more.

Next step

About Hash Identifier

How the identifier decides

It trims the input and runs four checks in order, and every rule that matches shows up as a result:

  1. Prefix formats (high confidence): bcrypt ($2a$, $2b$, $2y$), Argon2 ($argon2i$, $argon2d$, $argon2id$), scrypt ($s0$), anything starting $pbkdf2, and the crypt(3) IDs $1$, $5$ and $6$.
  2. Salted MD5: 32 hex characters joined by a colon to a Base64-alphabet string, in either order.
  3. Hex length: exact counts only, per the table below.
  4. Base64 length: 20 or more characters of the standard alphabet that decode to 16, 20, 32, 48 or 64 bytes. Padding is optional.

When several algorithms share a length, the confidence badge reflects how common each one is, not anything in the string itself.

Length and prefix reference

Input Bits Candidates shown
8 hex 32 CRC32
16 hex 64 MySQL Old Password, Half MD5
32 hex 128 MD5, NTLM, MD4
40 hex 160 SHA-1, RIPEMD-160
56 hex 224 SHA-224
64 hex 256 SHA-256, SHA3-256, BLAKE2s
96 hex 384 SHA-384
128 hex 512 SHA-512, SHA3-512, BLAKE2b
24 / 28 / 44 / 64 / 88 Base64 chars 128 to 512 MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512 (Base64)

Prefixed hashes describe themselves, with fields separated by $:

$2y$12$domHSOPwLXrPKxLdUhz1rOaJ/eM6Y0mTtL7sENS.tT8DUEkXC5MPS
  bcrypt: variant 2y, cost 12 (2^12 rounds), 22-char salt + 31-char hash, 60 chars total

$6$Xy9pQ2$DWUOMCvf/a9XFfr6Cc.rxtVFVCDysQcRRfBVG77Pj7LjgSiwybOabmSlw8mfLz5c6DwAEmiQ.aUMamBiuQuO8/
  SHA-512 crypt: salt Xy9pQ2, 86-char hash (an optional rounds=N$ can follow the id)

$argon2id$v=19$m=65536,t=3,p=4$c29tZXNhbHQxMjM0NTY3OA$ZNOIrrAHtmQzbCNX391HxJY0DBLY7ofdM/Ba6SOqVxg
  Argon2id: version 19, 64 MiB memory, 3 passes, 4 lanes, then salt and hash

The bcrypt rule needs exactly 60 characters. A hash cut short by an undersized database column won’t match, and neither will the old $2x$ variant. You can reproduce the crypt examples with openssl passwd -6 -salt Xy9pQ2 password (-5 gives SHA-256 crypt, -1 gives MD5 crypt). For bcrypt, run htpasswd -bnBC 12 "" password and drop the leading :.

Why a 32-character hex hash is ambiguous

Here are three algorithms run on the same input. All three outputs have the same shape:

5f4dcc3b5aa765d61d8327deb882cf99   MD5("password")
8846f7eaee8fb117ad06bdd830b7586c   NTLM("password"), which is MD4 of the UTF-16LE bytes
8a9d093f14f8701df17732b2bb182c74   MD4("password")

Hash output looks like random hex, so the string can’t tell you which algorithm made it. Where it came from can. A Windows SAM or Active Directory export means NTLM, and a web app’s users table usually means MD5. The same goes for 64 hex characters (SHA-256, SHA3-256, BLAKE2s) and 128 (SHA-512, SHA3-512, BLAKE2b). Case doesn’t matter, and Windows tools often print NTLM in uppercase.

If you know the plaintext of one record, such as a test account you created, hash it with each candidate and compare:

printf 'password' | openssl dgst -md5
# MD5(stdin)= 5f4dcc3b5aa765d61d8327deb882cf99
printf 'password' | iconv -t UTF-16LE | openssl dgst -md4 -provider legacy -provider default
# MD4(stdin)= 8846f7eaee8fb117ad06bdd830b7586c   <- NTLM

OpenSSL 3 moved MD4 into the legacy provider, which is why the second command needs the -provider flags. For MD5, SHA-1, SHA-256 and SHA-512, the hash generator does this in the browser.

Formats to unwrap first

Some storage formats wrap a standard hash in extra characters, and those characters stop it from matching. Strip them and paste again:

You have Strip Then it matches
*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 (MySQL 4.1+) * SHA-1 (it’s SHA-1 of SHA-1)
{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g= (LDAP) {SHA} SHA-1 (Base64)
sha384-qLZLq9Cs…DB4On (Subresource Integrity) sha384- SHA-384 (Base64)
0x5e884898…1542d8 0x SHA-256
admin:8846f7ea…b7586c admin: MD5 / NTLM / MD4

That last one matters. If you leave a username on the hash, the salted-MD5 rule matches instead. Base64url digests (the ones with - or _) need converting to + and / first. Paste one hash at a time, because a list or a hash with spaces in it won’t match anything.

Some formats aren’t in the rule set at all. That includes yescrypt ($y$, the /etc/shadow default since Debian 11, Ubuntu 22.04 and Fedora 35), $7$ scrypt, and Django’s pbkdf2_sha256$…, which has no leading $. For those, or for a second opinion, use a dedicated identifier:

nth --text '5f4dcc3b5aa765d61d8327deb882cf99'   # name-that-hash
hashcat --identify hashes.txt

name-that-hash recognizes yescrypt and the Django format. For a 32-hex input it lists MD5, MD4, NTLM and Domain Cached Credentials as most likely, with the hashcat and John the Ripper mode for each. hashcat --identify prints every hash mode that matches. Both run locally, which matters if the hashes came from production. For which of these algorithms are fit for storing passwords, see the password security guide and hash functions compared.

Questions

How does hash identification work?
The tool analyzes the hash length, character set, and format prefix to determine likely algorithms. For example, 32 hex characters suggests MD5, 64 hex characters suggests SHA-256, and $2b$ prefix indicates bcrypt.
Can it identify the exact algorithm?
Some hashes have unique prefixes (like bcrypt or argon2) that allow exact identification. For others like MD5 and NTLM that share the same length, the tool lists all possible matches with confidence levels.
What hash formats can be identified?
The tool recognizes MD5, SHA-1, SHA-256, SHA-512, bcrypt ($2a$, $2b$), argon2 ($argon2id$), NTLM, CRC32, and many other common hash formats.
Can I identify a hash from a database breach?
Yes, paste the hash and the tool will suggest the likely algorithm. This helps determine what hashing scheme was used, which is useful for security auditing and incident response.
Is the hash identifier safe for sensitive data?
Yes, the identification runs entirely in your browser by analyzing the format of the hash string. No data is sent to any server.
Why does the tool show multiple possible algorithms?
Some hash formats are ambiguous. For example, a 32-character hex string could be MD5, NTLM, or MD4 since they all produce 128-bit hashes. The tool lists all possibilities ranked by likelihood.

More in Hashing & Crypto

All 15 hashing & crypto