Hash generator
Computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file at once, and tells you whether a hash you already have matches.
Everything is computed in your browser; neither your text nor your file is sent to a server. MD5 and SHA-1 are not suitable for security — practical collisions exist — though they remain common for checking downloads. Prefer SHA-256 or stronger for anything that matters.
How to use
- Type your text in the box, or pick a file with Choose a file.
- MD5, SHA-1, SHA-256, SHA-384 and SHA-512 are computed at the same time.
- Press Copy next to the one you need; tick the uppercase option if required.
- If you already have a hash, paste it into the box at the bottom and the tool says which algorithm matches.
What a hash is
A hash is a one-way function that turns data of any length into a fixed-length "fingerprint". Three properties make it useful:
- It's deterministic. The same input always produces the same output — no randomness involved.
- It's fixed length. Whether you feed it one byte or one gigabyte, a SHA-256 digest is always 64 characters.
- It has the avalanche effect. Change a single letter of the input and the output is completely different — never "slightly similar".
The fourth and most important property is that it's one-way: recovering the input from the output isn't practical. That's why a hash is not encryption — encryption can be undone, hashing can't.
Which algorithm, and when
| Algorithm | Length | Status | Used for |
|---|---|---|---|
| MD5 | 128 bit · 32 chars | Broken for security | File integrity, legacy systems |
| SHA-1 | 160 bit · 40 chars | Broken for security | Git commit ids, old signatures |
| SHA-256 | 256 bit · 64 chars | Secure | The default choice: signatures, certificates, blockchain |
| SHA-384 | 384 bit · 96 chars | Secure | TLS certificates |
| SHA-512 | 512 bit · 128 chars | Secure | Where a longer digest is wanted |
"Broken" means two different inputs can be made to produce the same digest — a collision. For MD5 that takes seconds on an ordinary computer, and it has been demonstrated for SHA-1 too. For anything new, choose SHA-256.
MD5 still has a job: it's good enough to tell whether a download got corrupted. What it can't do is stand up to someone deliberately crafting a fake file.
What it's good for
- Verifying downloads. Compare the hash of the file you downloaded with the one published by the vendor. A match means it's complete and unmodified.
- Finding duplicates. Hashing thousands of files and grouping identical digests is far faster than comparing contents.
- Detecting change. A digest tells you whether a backup or a config file has been touched.
- Password storage. Systems store a digest rather than the password itself — though a plain hash alone isn't enough, as below.
Three common mistakes
1. "MD5 decrypt" sites
A hash can't be decrypted. Those sites search enormous precomputed lists — rainbow tables. They find common passwords like "123456" and never find a randomly generated one. A password made with the password generator isn't in any such list.
2. Hashing passwords without a salt
Because the same password always yields the same digest, two users sharing a digest reveals that they share a password. That's why each password gets a random salt. Real systems also use deliberately slow algorithms like bcrypt or Argon2 instead of fast SHA-256 — a fast hash lets an attacker try billions of guesses per second.
3. Mistaking a hash for encryption
If you need to store something and read it back later, a hash is the wrong tool — there's no way back. And if you only want to move text around, Base64 isn't the answer either: it encodes, it doesn't hide.
Glossary
- Hash (digest)
- A one-way function that turns data into a fixed-length fingerprint.
- Collision
- Two different inputs producing the same digest. Practical for MD5 and SHA-1.
- Salt
- A random value added to a password before hashing, so identical passwords don't share a digest.
- Rainbow table
- A precomputed list of digests — the method behind sites claiming to "decrypt" hashes.
- Avalanche effect
- The smallest change in the input completely changing the output.
Frequently asked questions
What is a hash?
A one-way function that turns data of any length into a fixed-length fingerprint. The same input always gives the same digest, and recovering the input from the digest is not practical.
Can a hash be reversed?
No — it isn't encryption and has no inverse. The "MD5 decrypt" sites online simply search huge precomputed tables, so they only find common passwords.
Why is MD5 insecure?
Two different inputs can be made to produce the same MD5 digest, which is called a collision and is practical today. That rules it out for signatures and security checks, though it's still fine for spotting a corrupted download.
Which algorithm should I use?
SHA-256 for anything new, SHA-512 when you want a longer digest. Use MD5 and SHA-1 only when you have to compare against a hash someone else produced.
Is my file uploaded?
No. The file is read in your browser and hashed there; its contents never leave your device.
How do I verify a file I downloaded?
Pick the file, then paste the hash published on the vendor's site into the compare box below. A match means the file is complete and unmodified.
Why does the same text always give the same hash?
Hashing involves no randomness — by design the same input always maps to the same output. That's why password storage adds a separate random "salt".