Saved

Press the star next to a tool's name to save it.

All my tools

Hash Identifier Calculator

Use this hash identifier calculator to list the hash functions, such as MD5, SHA-1 or SHA-256, that match the length of a hexadecimal hash you paste.

Paste a hash written in hexadecimal, using the digits 0 to 9 and the letters a to f. The tool counts its characters and lists the hash functions that give an output of that size. It checks only the length and the character set.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Paste a hexadecimal hash, then press Identify.

A hash identifier calculator guesses which hash function made a hash from its length. Paste a hexadecimal hash and it counts the characters, works out the number of bits and lists the functions, such as MD5 or SHA-256, that have an output of that size.

How to use the hash identifier calculator

  1. Paste the hash in hexadecimal.
  2. Press Identify.
  3. Read the length, the number of bits and the list of functions of that size.

What a hash is

A hash function turns any input into a short value of fixed size, often shown as a string of hexadecimal characters. The same input always gives the same value, and a small change gives a very different one. Hashes are used to check files, to store passwords and to find data. The Secure Hash Algorithms page on Wikipedia lists the main families and the size of their outputs [1]. A hash is not an encryption and cannot be turned back into the input.

Why length is the clue

Each function gives an output of a fixed number of bits, and a hexadecimal digit represents 4 bits [6]. Matching the length is the one check that needs nothing but the text itself. So a hash of 32 characters has 128 bits. This conversion of characters to bits is our own working. The tool matches that size with a list of functions.

The character set

The tool expects hexadecimal, which uses the digits 0 to 9 and the letters a to f in either case [6]. The tool ignores spaces and letter case, so you can paste a hash that was split into groups. If the text has other characters, such as a dollar sign, a colon or letters beyond f, it is not a plain hexadecimal digest, and the tool says so. It does not guess the format in that case.

Sizes and functions

The sizes that the tool uses are 32 bits for CRC32, 128 bits for MD5 and NTLM, 160 bits for SHA-1, RIPEMD-160 and SHA-0, 224 bits for SHA-224, SHA-512/224 and SHA3-224, 256 bits for SHA-256, SHA3-256, SHA-512/256 and RIPEMD-256, 384 bits for SHA-384 and SHA3-384, and 512 bits for SHA-512 and SHA3-512. The SHA sizes come from the Secure Hash Algorithms article [1], the MD5 digest of 128 bits from its own article [2], the RIPEMD sizes of 128, 160 and 256 bits from theirs [3], the 32-bit CRC32 value from the article on cyclic redundancy checks [4], and the 128-bit NT hash behind NTLM from the NTLM article [5].

A worked example

A hash of 32 hexadecimal characters has 128 bits. In the list, that size belongs to MD5 and NTLM, so both are shown as candidates. A hash of 40 characters has 160 bits, which is SHA-1, RIPEMD-160 or SHA-0. A hash of 64 characters has 256 bits, which is SHA-256, SHA3-256, SHA-512/256 or RIPEMD-256. A hash of 8 characters has 32 bits, and CRC32 is the only match.

When nothing matches

A hash of 16 characters has 64 bits, and none of the functions in our list gives that size, so the tool says so. This does not mean that the hash is invalid. Our list is short, so a function that we do not list may fit your hash.

Several functions share a size

Many hashes cannot be told apart by length. MD5 and NTLM both have 128 bits, and four functions share 256 bits. The tool shows all of them and warns you about it. To choose among them, look at where the hash came from. A hash from a Windows system is more likely to be NTLM, and one from a file checksum is more likely to be MD5 or SHA-256.

Truncated and salted hashes

A hash can be cut short, so that a 128-bit part of a SHA-256 hash looks like an MD5 hash. Some systems also add a salt or a prefix that marks the format, as in many password hashes. A length check cannot see these, and the tool does not look for prefixes, as we did not open a page that describes them. Use the source of the hash as the best guide to its format.

Weak functions

MD5 is described as cryptographically broken [2], and SHA-1 is no longer approved for most cryptographic uses [1]. Collisions have been found, so different inputs can be made to give the same hash. They should not be used to protect passwords or sign documents. The tool adds a reminder when the result includes either one. For a new design, use a stronger function from the SHA-2 or SHA-3 families, and a slow, salted method for passwords.

What the tool does not do

The tool does not reverse a hash, look it up in a table or try to crack it. It works only on the text you paste, in your browser, and sends nothing. It gives a list of likely functions and no more. If you need to know for certain, check the software, the file or the documentation that made the hash, and compute the hash yourself to compare the result.

Common mistakes

  • Trusting a length match as proof. Other functions and truncated hashes can have the same size.
  • Pasting a password hash with a prefix. It is not a plain hexadecimal digest.
  • Counting characters by eye. Let the tool count them.
  • Using MD5 for security. It is weak.

What next

Use this often? Add Hash Identif to your Home screen.

Frequently asked questions

What is a hash identifier calculator?

A hash identifier calculator lists the hash functions that have an output of the same length as the hash you paste.

How do I know if a hash is MD5?

An MD5 hash has 32 hexadecimal characters, which is 128 bits, but NTLM has the same size, so length alone is not proof.

How many characters is a SHA-256 hash?

It has 64 hexadecimal characters, which is 256 bits.

Can this tool crack or reverse a hash?

No. It only compares the length and the hexadecimal character set.

Why does the tool say no function matches?

The length is not one that the functions in the list produce, so the hash may come from a function that the list does not include.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Developer Tools