About Hash Generator
Hash Generator calculates the MD5, SHA-1 and SHA-2 fingerprints of any text or file. Use it to verify that a download wasn't corrupted or tampered with, to compare files, or to generate checksums for your own releases.
What is a hash?
A hash function turns any input into a short, fixed-length string, like a digital fingerprint. The same input always gives the same hash. Changing a single character gives a completely different one. Hashes are one-way: you can't reconstruct the input from the hash. That's what makes them useful for checking integrity and storing data securely.
Which algorithm should you use?
- SHA-256: the modern standard for checksums, software downloads, certificates and blockchains. Use it by default.
- SHA-384 / SHA-512: longer hashes with an even larger security margin.
- SHA-1: still seen in older systems and Git, but broken for security since 2017.
- MD5: fast and still common for quick file checks, but unsafe against deliberate tampering.
How to verify a download
Many software publishers list a checksum (often SHA-256) next to the download link. Drop the downloaded file into the File tab and paste the published checksum into the verify box. If the hash matches, the file is byte-for-byte identical to the original. If it doesn't, download it again from the official source and don't run it.
How it works
SHA algorithms use your browser's native Web Crypto API, which is fast and well tested. MD5 isn't available in Web Crypto, so it's computed with a dedicated implementation. Files are read locally and never uploaded, so you can hash private documents and large installers safely.
Worked example
You download an installer and the publisher lists a SHA-256 checksum. Drop the file into the File tab, paste the published checksum into the verify box, and the tool shows a match. If one character were different, you would know to download the file again.
Limits to know about
- A matching hash proves the file equals the one the checksum was made from. It does not prove the publisher is trustworthy or the checksum itself is genuine.
- MD5 and SHA-1 are offered for compatibility. They are not safe against deliberate tampering.
- Hashing is one-way. You cannot recover the original from a hash.
Troubleshooting
- The hash does not match: Check that you chose the same algorithm as the publisher, and that the checksum was copied completely. If it still differs, download the file again from the official source.
- The same text gives a different hash: Hashes are sensitive to every character. A trailing space or a different line ending changes the result.
Note for developers: don't store passwords as plain SHA or MD5 hashes. Use a slow, salted password hashing algorithm such as Argon2, bcrypt or scrypt.