About Hash Generator
You downloaded an installer and the vendor publishes a SHA-256 next to it. Or an old system stores MD5 values and you need to reproduce one. Drop in the file or type the text, and you see all five common digests together, without having to find the right command for your operating system.
Paste the checksum you were given into the compare box, and the tool works out which algorithm it belongs to and marks that card. You do not need to know whether a 64-character string is SHA-256 or to compare it by eye, and uppercase, lowercase or a trailing filename all work.
How it works
SHA-1, SHA-256, SHA-384 and SHA-512 are computed by the browser's Web Crypto API. Web Crypto leaves out MD5 because it is broken, so MD5 is computed by a small routine on this page, for people matching old checksums. All five results have been checked against published test vectors.
Text is hashed as UTF-8 bytes, and a chosen file is hashed from its exact bytes, read into memory on your device. The file never leaves it. This is why the page limits files to 512 MB: browsers must hold the whole thing in memory to hash it through this API. For larger files, a command such as sha256sum reads in pieces and is the better choice.
How to use Hash Generator
- Type or paste in the Text to hash box, or press Hash a file. You can also drop a file on the box. Try an example hashes
abc. - To verify something, paste the published value into Compare with a checksum you were given. A note says which algorithm matched, or that none did.
- Tick Uppercase if the place you are pasting into expects capitals.
- Press Copy on one digest, Copy all, or Download to save
hashes.txt.
One line break changes everything
abcMD5: 900150983cd24fb0d6963f7d28e17f72
SHA-1: a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-256 of abc with a line break after it:
edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cbThe values for abc are the published test vectors, and SHA-384 and SHA-512 appear on the page as well. The last line is the classic surprise: the output of echo abc | sha256sum includes that line break, so it does not match.
When it helps
- Checking a downloaded installer or ISO against the SHA-256 on the vendor's page
- Reproducing an MD5 or SHA-1 value that an older system stores
- Confirming that two copies of a file are byte-for-byte the same
- Generating a digest to use as a cache key or fixture value in a test
Tips for a better result
- When a text hash will not match, suspect invisible characters first: a trailing line break, Windows line endings or a different encoding each change the result completely.
- A matching checksum proves the file is intact, not that it is trustworthy. If an attacker can replace the download, they may be able to replace a checksum on the same page, so a signature is stronger.
- Use SHA-256 for new work. MD5 and SHA-1 are marked as broken here because collisions can be made deliberately.
Good to know
- These are plain digests. Do not use them to store passwords, which need a slow salted function such as Argon2 or bcrypt that this page does not offer.
- It does not compute HMACs, SHA-3 or BLAKE family digests.
- Files over 512 MB are refused, and large files near that limit depend on your device's memory.
- Web Crypto needs a secure connection, so on plain HTTP the page reports that it cannot hash.
Questions people ask
Why is my hash different from the one a command gave me?
Almost always the input differs by a character you cannot see. echo adds a line break unless you use echo -n, and Windows editors may add CRLF endings or a byte order mark.
Can a hash be turned back into the original text?
Not by calculation. Short or common inputs can be found by trying guesses, though, which is why a bare hash is no way to protect a password.
Is MD5 still safe to use?
Not for security, since anyone can build two inputs with the same MD5. It still works as a check against accidental corruption, or for matching a value in an older system.
How does the compare box know which algorithm I pasted?
It lowercases your value, ignores spaces around it, and compares it with all five digests. A pasted line such as abc123... file.iso works too, because only the first word is used.
What to use next
- UUID Generator: when you need a random ID and not a digest of data
- Base64 Encode Decode: if a system gives you its checksum in Base64
- Diff Checker: to find what changed once two hashes disagree
- Password Strength Checker: if the secret itself is what you are unsure about
Learn more
Last reviewed . Read our editorial policy.