What is an MD5 hash?

MD5 is a hash function from 1992 that turns any file or text into a 128-bit fingerprint, written as 32 hexadecimal digits (0 to 9 and a to f). The same data always gives the same hash, and changing a single byte changes it completely. MD5 is no longer safe for passwords or digital signatures, because people can craft two different files with the same hash, but it's still common for checksums on download pages, for spotting duplicate files and as a quick cache key.

You'd check one when you copy a checksum from a download page or a terminal, or when a database field or an API should hold an MD5 hash and nothing else.

Tool description

Type or paste a hash into the MD5 hash field, and the result shows as you type: "MD5 hash is valid" or "MD5 hash is not valid". Spaces and line breaks around a pasted hash are ignored. The page has no settings.

What passes and what fails

  • Passes: exactly 32 hexadecimal digits in small letters, the way md5sum on Linux and md5 on macOS print them
  • Fails: the same hash in capital letters, the way Windows PowerShell prints it, or a mix of small and capital letters
  • Fails: 31 or 33 digits, a letter after f, or spaces and colons between the bytes
  • Fails: a whole line of md5sum output with the file name after the hash, so copy only the hash
  • Fails: the Base64 form of an MD5 hash, 24 characters ending in ==, which some web services use

Good to know

  • Capital letters failing is how validator.js checks MD5, and it may surprise you. To check a hash in capital letters, use the Hash Validator with MD5 picked, which accepts both, or change the hash to small letters first.
  • The check only looks at the length and the characters. It can't tell whether a hash was really made with MD5, since MD4 and RIPEMD-128 hashes look the same, or whether it belongs to your file: make the file's hash yourself and compare the two.
  • To make the MD5 hash of a text, use the MD5 Hash Generator.

Features

  • Checks MD5 hashes as you type
  • Exactly 32 hexadecimal digits in small letters
  • Ignores spaces and line breaks around a pasted hash
  • Runs in your browser, so nothing you type is sent anywhere