What Is a Hash? MD5, SHA-1 and SHA-256 Explained
Updated November 2026
Written by the Toolpuffin team. Tools in this guide are tested in the browser.
A hash is a short fingerprint of a piece of data. Hashes are used to check that something has not changed. This guide explains the common ones and what they should not be used for.
What a hash is
- The same text always gives the same hash.
- A tiny change gives a completely different hash.
- The length is fixed, however long the text is.
- You cannot turn a hash back into the text.
The common ones
| Name | Length in hex characters | Use today |
|---|---|---|
| MD5 | 32 | Checking for accidental changes only |
| SHA-1 | 40 | Checking for accidental changes only |
| SHA-256 | 64 | The usual choice for new work |
| SHA-384 | 96 | When a longer hash is needed |
| SHA-512 | 128 | When a longer hash is needed |
MD5 and SHA-1 are no longer safe against someone who changes data on purpose. SHA-2 hashes such as SHA-256 are defined in the NIST standard FIPS 180-4.
Hash a text
- Type or paste your text.
- Read the hashes below it. They update as you type.
- Copy the one you need.
This tool hashes text. A file gives a different result than its name or its contents pasted as text. Capital letters and spaces count, so Hello and hello give different hashes.
Not for passwords
A plain hash is too fast to protect passwords. OWASP recommends a slow, salted method made for passwords, with Argon2id as the first choice and bcrypt as an option. Your login system or framework should provide this for you.
Privacy
The hashes are made in your browser and your text stays on your device.