md5check

Hash length reference

Counting characters is the fastest way to narrow down what an unknown digest is. This is the full table, the arithmetic behind it, and the cases where the count misleads you.

Updated October 2026 5 min read Reference

The arithmetic

Hexadecimal uses four bits per character, so the hex length is simply bits ÷ 4. Base64 uses six bits per character and pads to a multiple of four, so it is ceil(bits ÷ 6) rounded up to the next multiple of 4.

That single fact explains every number in the table below, and it is why a 128-bit digest is 32 hex characters but only 24 in Base64.

The table

Algorithm Bits Hex Base64 Collision strength Status
CRC-323288n/aNot a hash
MD41283224brokenDeprecated
MD51283224brokenLegacy only
NTLM1283224brokenWindows password store
RIPEMD-160160402880 bitsLegacy
SHA-11604028brokenLegacy
SHA-2242245640112 bitsFine
SHA-2562566444128 bitsRecommended
SHA-512/2562566444128 bitsFine
SHA3-2562566444128 bitsFine
BLAKE2s-2562566444128 bitsFine, fast
BLAKE3-2562566444128 bitsFine, very fast
SHA-3843849664192 bitsRecommended
SHA3-3843849664192 bitsFine
SHA-51251212888256 bitsRecommended
SHA3-51251212888256 bitsFine
Whirlpool51212888256 bitsRare
BLAKE2b-51251212888256 bitsFine, fast

"Collision strength" is half the output size, which is the birthday bound: finding a collision by brute force costs about 2^(bits÷2) operations. MD5's 128 bits therefore give at most 64 bits of collision resistance even if the algorithm were sound, and since it is not, the real figure is far lower.

Reading a digest quickly

  1. Count the characters. 32 → 128-bit family, 40 → 160-bit, 64 → 256-bit, 96 → 384-bit, 128 → 512-bit.
  2. Check the character set. Only 0-9a-f means hex. Mixed case with +/= means Base64. Uppercase only with a leading * suggests a MySQL password hash.
  3. Look for a prefix. $2y$, $argon2id$, $6$, {SSHA} name the algorithm outright — no guessing needed.
  4. Narrow by context. A value in a .sha256 file is SHA-256. A value in a password column is a password hash, not a checksum.

The hash identifier does all four steps and lists the candidates with a confidence label.

Where the count misleads

  • Truncation. Some systems store only the first 16 or 20 characters of a digest. A 16-character hex value could be CRC-64, a truncated hash, or an integer.
  • Wrapped output. certutil on older Windows inserts spaces; some tools print colon-separated pairs like an SSH fingerprint. Spaces and colons are not part of the value.
  • Decimal forms. CRC-32 is often shown as an unsigned decimal integer (up to 10 digits) rather than 8 hex characters.
  • Same size, different algorithm. MD5, MD4, NTLM and LM are all 128 bits and all render as 32 hex characters. Length cannot separate them.
  • Double hashing. A 64-character value is usually SHA-256, but could be two concatenated MD5s. Context decides.

Shortcut for the common case. If someone hands you a digest and asks you to check a file, you do not need to identify it first. Paste it into the verifier — the length tells the tool which algorithm to compare, and the answer is immediate.