Hash Identifier Calculator - MD5, SHA-1, SHA-256, SHA-512 Recognition

hash identifier that recognises MD5, SHA-1, SHA-256, SHA-512, RIPEMD, and SHA-3 digest types by checking the hex length, byte size, and bit size of the pasted hash.

Updated: June 19, 2026 • Free Tool

Hash Identifier Calculator

Paste a hex digest. Whitespace, outer newlines, and a single leading 0x or 0X prefix are stripped before the lookup. Use the MD5 hello hash above as a quick example.

Choose how strict the hex validator is about upper-case or lower-case letters. Most hash libraries return lower-case hex, but some tools print upper-case.

Results

Best Match
0text
Hex Character Length 0characters
Byte Length 0bytes
Bit Length 0bits
Candidate Algorithms 0algorithms
Candidate Algorithm Names
Paste a hex digest to see the candidate algorithms.
Validation Status 0text

What Is a Hash Identifier?

A hash identifier is a tool that recognises the algorithm behind a hash by checking the digest length, byte size, and bit size of a hex string you paste in.

  • Recognising a database password hash: Spot whether a stored hash uses MD5, SHA-1, or SHA-256 before deciding whether it is safe to keep.
  • Triage in a forensic or CTF challenge: When a hex digest turns up in a log file or capture-the-flag prompt, the identifier narrows down the candidate algorithms in one step.
  • Verifying a checksum in a download: Confirm whether a published checksum is the expected 32-byte SHA-256 value, the 20-byte SHA-1 value, or something else.
  • Sanity-checking a hash before comparing it: Make sure the pasted string is valid hex and the right length before comparing it against a stored value.

A cryptographic hash turns any input into a fixed-length fingerprint called a digest. The fingerprint is always the same size for one algorithm: MD5 always produces 16 bytes, SHA-256 always produces 32 bytes, and SHA-512 always produces 64 bytes. That fixed length is the only public field the identifier can read, because hashing is one-way and the original input cannot be recovered.

The identifier is therefore best understood as a length-based lookup: it counts the hex characters, derives the byte and bit length, and lists every standard hash algorithm whose published digest length matches. When exactly one algorithm matches, the answer is unambiguous; when several match, the tool populates the Candidate Algorithm Names row in the Results panel with the full list rather than guess.

Use the identifier whenever you need to triage a digest before any other step, and switch to a hashing library to confirm the algorithm by recomputing the digest of a known input.

When the same string turns out to be a base64 token rather than a hex digest, the base64 encoder decoder turns it back into text on the same page.

How the Hash Identifier Works

The calculator strips whitespace, validates the hex character set, counts the characters, derives the byte and bit length, and looks up every standard hash algorithm whose published digest size matches.

byteLength = hexLength / 2; bitLength = byteLength x 8; candidates = algorithms.filter(a => a.byteLength === byteLength)
  • hashInput: Hex digest pasted by the user, with whitespace allowed.
  • caseMode: Letter case policy: either case, lower-case only, or upper-case only.
  • hexLength: Number of hex characters that pass validation.
  • byteLength: hexLength divided by 2; the byte length of the digest.
  • bitLength: byteLength multiplied by 8; the bit length of the digest.
  • candidateList: Visible row in the Results panel that lists every standard hash algorithm whose digest byte length matches the input.

Validation is strict: any character outside 0-9 or a-f (or outside the chosen case policy) makes the input invalid, and the calculator refuses to count it. An odd number of hex characters is rejected because no standard hash produces an odd-length digest.

Identify 5d41402abc4b2a76b9719d911017c592

Hash = 5d41402abc4b2a76b9719d911017c592, Letter Case = Either

1. Strip whitespace. 2. Validate every character is 0-9 or a-f. 3. Count hexLength = 32. 4. Compute byteLength = 16 and bitLength = 128. 5. Look up every algorithm with a 16-byte digest.

Best Match: Multiple algorithms match this digest length. Hex Length: 32 characters. Byte Length: 16 bytes. Bit Length: 128 bits. Candidate Algorithm Names: MD4, MD5, MD2, NTLM, LM hash, RIPEMD-128, Half MD5 (truncated), MySQL 4.x (old).

The digest is exactly the size of an MD5 hash, but it could also come from MD4, NTLM, or any other 128-bit algorithm. Use a recomputation step to confirm which one produced it.

Identify a SHA-256 digest of 'hello'

Hash = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824, Letter Case = Either

1. Strip whitespace. 2. Validate the hex set. 3. Count hexLength = 64. 4. Compute byteLength = 32 and bitLength = 256. 5. Look up every algorithm with a 32-byte digest.

Best Match: Multiple algorithms match this digest length. Hex Length: 64 characters. Byte Length: 32 bytes. Bit Length: 256 bits. Candidate Algorithm Names: SHA-256, SHA3-256, RIPEMD-256, Haval-256, Snefru-256, BLAKE2s-256.

The digest matches the SHA-256 family by length. Recomputing SHA-256 of 'hello' reproduces the digest exactly, which confirms the algorithm.

According to IETF RFC 1321, MD5 produces a 128-bit digest that is exactly 32 hexadecimal characters long.

According to IETF RFC 6234, SHA-256 produces a 256-bit digest (64 hex characters) and SHA-512 produces a 512-bit digest (128 hex characters).

If the string turns out to contain readable text rather than hex digits, the ASCII converter shows the same string as decimal, hex, octal, and binary codes.

Key Concepts Explained

Four small ideas explain every result the calculator returns.

Hex Digest

A hash function output is usually printed as a hexadecimal string, with each byte rendered as two characters from 0-9 and a-f. The hex character count is exactly twice the byte length of the digest.

Fixed Digest Length

Every standard cryptographic hash produces a digest of the same byte length no matter what input is hashed. MD5 always yields 16 bytes, SHA-1 always yields 20 bytes, and SHA-256 always yields 32 bytes.

Bit Length Derivation

Bit length is the byte length multiplied by 8. MD5 therefore reports 128 bits, SHA-256 reports 256 bits, and SHA-512 reports 512 bits. The bit and byte readouts are always in agreement.

Candidate Lookup

The identifier maps each byte length to a small set of standard algorithms. When the byte length matches several algorithms, the calculator returns the full list instead of picking one arbitrarily.

Together: validate the hex, count the characters, derive the byte and bit length, and look up every standard algorithm whose published digest matches.

When the digest length needs to be translated into the same number of bytes or kilobytes for a storage budget, the data storage converter turns the byte length into KB, MB, GB, and TB.

How to Use This Calculator

Six short steps cover the common workflow without any setup.

  1. 1 Paste the hex digest: Copy the hash string into the Hash Input box. Whitespace, line breaks, and a single leading 0x or 0X prefix are stripped by the validator.
  2. 2 Pick a letter case policy: Use Either for mixed-case input, Lower for strict a-f, or Upper for strict A-F. Most hash libraries return lower-case hex.
  3. 3 Read the verdict and candidate list: The verdict states whether one or several algorithms match the digest length, and the Candidate Algorithm Names row lists each matching algorithm by name.
  4. 4 Check the hex character length: The Hex Character Length row reports the exact number of hex characters after whitespace is stripped.
  5. 5 Check the byte and bit length: Byte Length and Bit Length are read directly from the validated digest. They never disagree with the hex length.
  6. 6 Copy the result or fix the input: If the verdict reports an invalid character or odd length, re-paste the digest with the right case or strip any extra prefix bytes beyond a single 0x marker.

Paste 5d41402abc4b2a76b9719d911017c592 into Hash Input with Letter Case at Either. The verdict reads Multiple algorithms match this digest length, Hex Character Length reads 32, Byte Length reads 16, Bit Length reads 128, and the Candidate Algorithm Names row lists MD4, MD5, MD2, NTLM, LM hash, RIPEMD-128, Half MD5 (truncated), and MySQL 4.x (old).

When the string turns out to be a Caesar-shifted word rather than a hash, the Caesar cipher shifter decodes it with the same short workflow.

Benefits of Using This Calculator

A purpose-built hash identifier keeps validation, length readout, and candidate lookup in one place.

  • Length-based recognition: The identifier names the algorithm family or fills the Candidate Algorithm Names row with the full candidate list in one step, without reaching for a hashing library first.
  • Strict hex validation: Whitespace is stripped, character set is checked, and odd-length input is rejected, so every verdict is built on top of a valid digest.
  • Visible byte and bit length: Hex Character Length, Byte Length, and Bit Length are read next to the verdict, so the same input can be mapped against any external standard.
  • Honest multi-match handling: When several algorithms share a digest length, the Candidate Algorithm Names row lists every candidate instead of picking one arbitrarily.
  • Letter case policy: Either, Lower, and Upper case modes handle mixed-case digests, library default output, and human-typed copy respectively.

For a quick bit-level check on the same input before recomputing a hash, the even parity calculator inspects the parity of each byte.

Factors That Affect Your Results

Three variables decide what the verdict looks like; three limitations tell you when a different tool is the right call.

Hex Character Length

Hex Character Length is the primary signal. Every standard hash algorithm produces a digest whose hex length is exactly twice its byte length, so the calculator maps each length to a fixed set of candidates.

Letter Case Policy

Either case accepts mixed-case digests. Lower accepts only a-f and Upper only A-F. Pick the policy that matches how the source library prints the digest.

Embedded Whitespace

Whitespace is stripped before validation, so line breaks and spaces from a copy-paste do not change the verdict. The Hex Character Length row always reports the trimmed count.

  • Length alone cannot distinguish algorithms that share a digest length (for example MD5 and NTLM both produce 32 hex characters). The Candidate Algorithm Names row lists every match rather than guessing.
  • The identifier only recognises the published standard digests. Custom hash constructions and salting schemes produce digests that do not match any standard byte length.
  • Hashing is one-way: the calculator never recovers the original input, and it cannot verify whether the digest was generated from a specific message. Use a hashing library to recompute the digest of a known input instead.

According to NIST FIPS 202, The SHA-3 family uses the same fixed digest lengths as SHA-2.

When the pasted string turns out to be a non-hex text encoding such as base64 or base32, the binary to text converter decodes the same byte length back into raw bytes before the length lookup.

hash identifier interface showing pasted hex digest input, candidate algorithm verdict panel, hex character count, byte length, and bit length readout
hash identifier interface showing pasted hex digest input, candidate algorithm verdict panel, hex character count, byte length, and bit length readout

Frequently Asked Questions

Q: What does this hash identifier do?

A: It reads a hex digest you paste in, validates the hex character set, counts the characters, derives the byte and bit length, and lists every standard hash algorithm whose published digest size matches. When a single algorithm matches it is named directly; when several match, the full candidate list is returned.

Q: How do you tell what type of hash you have?

A: Count the hex characters after stripping whitespace, divide by two to get the byte length, then look up the matching algorithm. MD5 and NTLM are both 16 bytes (32 hex characters), SHA-1 is 20 bytes (40 hex), SHA-256 is 32 bytes (64 hex), and SHA-512 is 64 bytes (128 hex).

Q: How much can hash length alone tell you about the algorithm?

A: Length is the most useful public signal because every standard hash produces a fixed-length digest, but several algorithms share each length. MD5, MD4, NTLM, LM hash, RIPEMD-128, half MD5, and old MySQL 4.x hashes all produce 16 bytes, so 32 hex characters narrow the field to a short candidate list rather than name one algorithm.

Q: What if multiple algorithms produce the same digest length?

A: The calculator returns a multiple-match verdict and lists every algorithm that shares the byte length. MD5, MD4, NTLM, LM hash, RIPEMD-128, half MD5, and old MySQL 4.x hashes all produce 16 bytes, so 32 hex characters cannot distinguish them on length alone.

Q: What hash type is 32 hex characters long?

A: A 32-character hex digest (16 bytes) could be MD5, MD4, NTLM, LM hash, RIPEMD-128, half MD5, or old MySQL 4.x output. Use the candidate list from the calculator, then confirm the algorithm by recomputing the digest of a known input with a hashing library.

Q: Can this tool crack a hash or recover the original input?

A: No. Hashing is one-way: there is no algorithm that recovers the original message from a hash without searching for an input that matches it. The calculator identifies the algorithm by length and lists the candidates; it never inverts the digest.