Beginner

Hash Identifier — Detect Hash Algorithm

Paste a hash digest and this tool analyses its length and character set to tell you which hashing algorithm almost certainly produced it — MD5, SHA-1, SHA-256, bcrypt and more.
Hex, base64, bcrypt or modular-crypt format
Most likely type
MD5
Length (characters)
32
Character set
hex
Output bits
128 bits
Notes
Fast, broken — avoid for passwords
MD4
Predecessor to MD5, broken
NTLM
Windows legacy auth hash
LM Hash
Old Windows, very weak
Identification steps
1

Input length

32 characters
2

Character set

hex
=

Candidate algorithm(s)

MD5, MD4, NTLM, LM Hash
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Hashing algorithms produce fixed-length digests, so you can identify the algorithm from the string length and character set alone. A 32-character hex string → MD5/NTLM (128 bit); 40 hex → SHA-1 (160 bit); 64 hex → SHA-256 (256 bit); 128 hex → SHA-512/Whirlpool (512 bit). Paste any hash to see all candidates.

Formula
Match: length (chars) + character set (hex / base64 / bcrypt) → algorithm
How this is calculated

Every hashing algorithm produces a fixed-length digest. Because the output length is deterministic, you can narrow down the algorithm purely by counting characters. For example, a 32-character hexadecimal string can only be MD5, MD4, NTLM or LM Hash — all produce 128-bit (32-hex-char) digests. A 64-character hex string maps to SHA-256, SHA3-256 or BLAKE2s-256 (all 256-bit, 64 hex chars). The character set provides an additional filter: bcrypt outputs always start with "$2a

quot;, "$2b
quot; or "$2y
quot; and are exactly 60 characters; MySQL 5.x hashes start with an asterisk; SHA-2 family hashes encoded in base64 are recognisable from their length and padding.

The identifier checks the digest against a table of well-known algorithms and their output sizes, then lists every algorithm whose digest format matches. When multiple algorithms share the same output size (e.g. MD5 and NTLM are both 32 hex characters), all candidates are shown — you need additional context (the application that generated the hash) to distinguish them.

This is pattern detection, not decryption. The tool never reverses a hash — that would require a rainbow table or brute force. It only tells you what algorithm was used, which is useful for forensics, penetration testing, or verifying hash formats before storing them.

Frequently asked questions

No. Cryptographic hash functions are one-way: identifying the algorithm tells you how it was made but not what the original input was. To look up a known plaintext you need a rainbow table or brute-force tool such as Hashcat.

MD5 and NTLM both produce 128-bit (32-hex-character) digests, so the format is indistinguishable. You must rely on context — the application or system the hash came from — to confirm which algorithm was used.

Bits is the internal width of the hash output. A 256-bit hash produces 32 bytes of output, written as 64 hexadecimal characters or 44 base64 characters. Wider outputs are harder to find collisions for.

Also known as

identify hash type
what type of hash is this
detect hash algorithm
md5 sha1 sha256 identifier
hash format checker
cryptographic hash detector
reverse hash lookup type

APA

TG we-Calculate Editorial Team. (2026). Hash Identifier — Detect Hash Algorithm [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/hash-identifier-calculator

Chicago

TG we-Calculate Editorial Team. "Hash Identifier — Detect Hash Algorithm." TG we-Calculate. 2026. https://we-calculate.com/calculator/hash-identifier-calculator.

IEEE

TG we-Calculate Editorial Team, "Hash Identifier — Detect Hash Algorithm," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/hash-identifier-calculator

BibTeX

@misc{wecalculate_hash_identifier_calculator, title = {Hash Identifier — Detect Hash Algorithm}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/hash-identifier-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?