By Debmedia Technologies LLP · Kolkata, India · Updated
What Is a Hash Generator?
A hash generator turns any text into a short, fixed-length fingerprint called a hash. The same text always gives the same hash, but even a tiny change, such as one extra letter, gives a completely different result. And you cannot work backwards from a hash to the original text. These properties make hashes useful for checking that data has not changed.
This hash generator creates seven hashes at once: MD2, MD4, MD5, SHA-1, SHA-256, SHA-384 and SHA-512. It runs in your browser, so the text you type is never sent anywhere.
How to Use This Hash Generator
- Type or paste your text into the box. An empty box gives the hashes of empty text.
- Choose whether the hash letters should be in lower or upper case.
- Press Generate hashes.
- Copy the hash you need from the table.
The Algorithms Compared
| Algorithm | Length | Status |
|---|---|---|
| MD2 | 128 bits (32 hex) | Obsolete. For study only. |
| MD4 | 128 bits (32 hex) | Obsolete and broken. |
| MD5 | 128 bits (32 hex) | Broken for security. Fine for simple checksums. |
| SHA-1 | 160 bits (40 hex) | Broken for security. Avoid in new work. |
| SHA-256 | 256 bits (64 hex) | Strong. The usual choice. |
| SHA-384 | 384 bits (96 hex) | Strong. |
| SHA-512 | 512 bits (128 hex) | Strong. |
The secure family is standardized by the US government, as described on the NIST page on hash functions. Text is hashed as UTF-8 bytes, which matches almost every other tool and programming language.
What Hashes Are Used For
- File and download checks. Compare a published hash with your own to prove a file is intact.
- Detecting changes. A different hash means the data is different.
- Deduplication. Identical items share a hash, which makes them easy to spot.
- Passwords, with care. Systems store a salted, slow hash of a password and never the password itself.
Hashing Is Not Encryption
A hash cannot be reversed, but common words and short texts can be guessed from tables of known hashes. For that reason a plain MD5 or SHA-256 of a password is not safe. Real systems add a random salt and use a deliberately slow method such as bcrypt or Argon2. Use this tool for checksums, learning and testing, not for storing passwords.
Related Tools
Hash values are written in hex, and you can see the same bytes with the text to hex converter. To encode data for the web, try the Base64 encoder and decoder. To clean your text before hashing, use the whitespace remover, because a trailing space changes the hash completely.
Frequently Asked Questions
Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.