Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of any text or file, then paste a published checksum to check that a download is genuine. Everything runs in your browser: files are never uploaded.
How to verify a downloaded file
- Find the checksum on the official download page. It's often labelled SHA-256, checksum or hash, or provided in a file such as
SHA256SUMS. - Open the File tab above and choose the file you downloaded.
- Paste the published checksum into Verify a checksum. The tool detects the algorithm from its length and tells you whether it matches.
A match means your file is byte-for-byte identical to the one the publisher hashed. Get the checksum from the publisher's own site, not from the mirror you downloaded from: anyone who can replace a file can usually replace a checksum sitting next to it.
Which hash algorithm should you use?
| Algorithm | Length (hex) | Security | Where you'll see it |
|---|
| MD5 | 32 | Broken for security (collisions since 2004) | Older download pages and legacy systems |
| SHA-1 | 40 | Broken for security (practical collision in 2017) | Older software and Git object IDs |
| SHA-256 | 64 | Secure | Most download checksums, code signing, TLS |
| SHA-384 | 96 | Secure | Certificates and some security standards |
| SHA-512 | 128 | Secure | Some Linux distributions and backups |
To verify a download, use the algorithm the publisher lists. To choose one yourself, use SHA-256. MD5 and SHA-1 still catch accidental corruption, but they no longer stop deliberate tampering: researchers created a practical SHA-1 collision in 2017, and MD5 collisions have been practical for even longer.
Check a file's hash on Windows, macOS and Linux
Every operating system has a built-in checksum command, useful for files over 2 GB or for scripts.
Windows (PowerShell): SHA-256 is the default
Get-FileHash .\file.iso
Get-FileHash .\file.iso -Algorithm MD5
Compare against a published checksum. This prints True or False, and ignores upper/lower case:
(Get-FileHash .\file.iso).Hash -eq "paste-the-checksum-here"
Windows (Command Prompt)
certutil -hashfile file.iso SHA256
macOS
shasum -a 256 file.iso
md5 file.iso
Linux
sha256sum file.iso
sha256sum -c SHA256SUMS # checks every file listed, prints OK or FAILED
PowerShell prints uppercase hex and most other tools print lowercase. They're the same value, so compare them ignoring case.
Why your checksum doesn't match
The download is incomplete or corruptedThe most common cause. A dropped connection or a full disk leaves a file that looks fine but has different bytes. Download it again, ideally from the official source.
You compared different algorithmsA SHA-256 checksum will never match an MD5 or SHA-512 hash of the same file. Check the length: 32 hex characters is MD5, 40 is SHA-1, 64 is SHA-256, 128 is SHA-512. The checker above detects this for you.
You checked the wrong file or versionDownload pages often list checksums for several files (installer vs portable, x64 vs ARM, different versions). Make sure the line you copied belongs to the exact file you downloaded.
You hashed text instead of the filePasting a file's contents, or its name, into a text box gives a different result. Use the File tab. And for text, an invisible trailing newline or space changes the hash completely.
The file was modifiedIf you re-downloaded from the official site and it still doesn't match, don't run the file. It may have been replaced on a mirror, or tampered with on the way to you.
Hash test values
Hash the text abc above and you should get exactly these values. They come from the official test vectors, so you can also use them to check your own code:
| Algorithm | Hash of "abc" |
|---|
| MD5 | 900150983cd24fb0d6963f7d28e17f72 |
| SHA-1 | a9993e364706816aba3e25717850c26c9cd0d89d |
| SHA-256 | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
| SHA-512 | ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f |
Checksums are not for passwords
MD5 and the SHA family are designed to be fast, which is perfect for checking large files and terrible for storing passwords: an attacker with a stolen database can test billions of guesses per second. Passwords need a slow, salted hash. Use the bcrypt generator, and read what bcrypt isto see why it's different.
Need just one algorithm, with command-line and code examples? See the SHA-256 generator and the MD5 generator.