Hash Generator
About the Hash Generator
This free hash generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file, right in your browser. Hashes update as you type, so you can check a download's checksum or compare two strings in seconds without uploading anything.
What is a hash?
A cryptographic hash function turns input of any size into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character produces a completely different one. You cannot reverse a hash back into the original data.
For example, the SHA-256 hash of abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, always 64 hexadecimal characters, whether the input is three letters or a 4 GB disk image.
MD5 vs SHA-1 vs SHA-256: which should you use?
MD5 (128-bit, 32 hex characters) is fast but cryptographically broken: collisions can be created on purpose. Use it only for non-security checksums and legacy compatibility.
SHA-1 (160-bit, 40 hex characters) has been deprecated for security since a practical collision was published in 2017. You will still see it in older systems and Git object IDs.
SHA-256, SHA-384 and SHA-512 belong to the SHA-2 family and remain secure. SHA-256 is the default choice for integrity checks, file verification and digital signatures.
Hashing is not password storage
Never store passwords as plain MD5 or SHA hashes. They are designed to be fast, which makes brute-force guessing cheap. Use a slow, salted password hashing algorithm such as Argon2, bcrypt or scrypt instead.
How to Use the Hash Generator
- Type or paste text into the input box, or switch to file mode and choose a file to hash.
- Select the algorithms you need: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
- Read the results instantly. Hashes recalculate on every change, so there is no button to press.
- Toggle uppercase output if the checksum you are comparing against uses capital letters.
- Copy a single hash, or use Copy all to grab every result at once.
Frequently Asked Questions
- Is my text or file uploaded anywhere?
- No. Hashing runs locally with the browser's Web Crypto API (and a built-in MD5 implementation). Nothing you enter is sent to a server.
- Why does my hash not match the expected value?
- Hashes change completely with any difference in input. The most common causes are a trailing space or newline, different letter case, or a different text encoding. Command-line tools like echo add a newline unless you use echo -n.
- Can a hash be decrypted or reversed?
- No. Hash functions are one-way. "Decryption" sites only look up hashes of common inputs in precomputed tables, which is why short or common strings can be guessed.
- Is MD5 still safe to use?
- Not for security. MD5 is fine for spotting accidental corruption, but attackers can craft two different inputs with the same MD5 hash. Use SHA-256 for anything security-related.
- Should I use uppercase or lowercase hex?
- They represent the same value. Most tools print lowercase; turn on uppercase output only when you need to match a checksum written in capitals.