How to Check a Download With a Checksum (and Why It Matters)
Security · Published October 18, 2026 · Updated October 24, 2026 · 3 min read
Written by Akinrinmade Michael · General information, not professional advice
A checksum is a short fingerprint worked out from a file's contents. Change one byte of the file and the fingerprint changes completely. That makes it an easy way to check a download is exactly what the publisher intended.
Why check at all
- A download can be damaged on the way, which gives you a file that won't install or open.
- A file on a mirror site, or a hacked server, could have been swapped for one with malware.
- You might have two copies of a file and want to know if they're really the same.
- After copying a large backup, you want to be sure nothing was corrupted.
How to do it
- Find the checksum on the publisher's official download page. It looks like a long string of letters and digits, and the page says which type it is, usually SHA-256.
- Open the File Hash Compare tool and choose the same type.
- Choose your downloaded file and paste the checksum.
- If you see a match, the file is identical to the one the checksum came from.
The comparison ignores spaces and capital letters, because checksums are written both ways.
What a checksum looks like
Here are known checksums for the three-letter text abc, so you can see the sizes:
MD5 900150983cd24fb0d6963f7d28e17f72 SHA-1 a9993e364706816aba3e25717850c26c9cd0d89d SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Which hash to trust
SHA-256 and SHA-512 are secure. MD5 and SHA-1 are broken for security, because attackers can make two different files with the same hash. They still catch accidental damage, but they can't protect you from a deliberate swap. If a publisher offers a choice, use SHA-256.
A caution about where the checksum comes from
A checksum only helps if you got it from a trustworthy place. If an attacker can change the file on a site, they can change the checksum on the same page. Where you can, get the checksum from a different source than the file, such as the project's main site or a signed message. Some projects also sign their releases with a digital signature, which proves who published the file and is stronger than a checksum alone.
On the command line
| System | Command |
|---|---|
| Mac | shasum -a 256 file.iso |
| Linux | sha256sum file.iso |
| Windows PowerShell | Get-FileHash file.iso -Algorithm SHA256 |
| Windows Command Prompt | certutil -hashfile file.iso SHA256 |
The browser tool reads files up to 500 MB. For bigger files, such as a large installer image, use one of the commands above.
If it doesn't match
- Download the file again, preferably from the official site, and compare again.
- Check you picked the right type of hash.
- Check that you're comparing the right version. Different versions have different checksums.
- Paste only the checksum, without spaces or file names around it.
- If it still doesn't match, don't open or install the file.
- To see every hash of a file or some text at once, use the Hash Generator.
Beyond downloads
The same idea checks that a backup copied correctly, that two folders of photos are identical, or that a file you were sent is the one the sender meant. The guide to hash functions explains why a tiny change always produces a completely different checksum.
A short routine to follow
- Download the file and the checksum from the official site, over https.
- Work out the checksum of your copy with the tool or a command.
- Compare the two, ignoring capitals and spaces.
- Install or open the file only if they match.
- Keep the checksum with the file if you store it, so you can check it again later.
Checking a whole folder
Some projects publish one file listing the checksum of every download, often named SHA256SUMS. Open it, find the line with your file's name, and compare that one. Command-line tools can check the whole list at once, which is handy when you've downloaded several files or copied a large backup and want to be sure every one arrived intact.