A file downloaded from the internet may have been damaged in transit, come from an unclear source, or even been replaced. This guide explains how to check it with a checksum, and where that check falls short.
Why verify at all
Large files sometimes get cut off while downloading or are saved with a few bytes wrong. Such a file shows up later as an installer that stops halfway or an archive that will not open, and the cause is hard to trace.
Rarely, a different file may even have been placed on the distribution path. A checksum is the quickest way to catch these problems. The larger and more important the file, such as an installer or an operating system image, the more valuable the check. A few dozen seconds of checking can prevent hours of trouble.
Damage in transit
Errors while saving
A changed release file
What you need
First you need the checksum value that the publisher posts on its official page. It is usually a SHA-256 value listed next to the file name.
Ideally you get the value from a different page or channel than the file itself. If the file and its value are replaced together in one place, the check loses its meaning. If the official site posts no value, that fact itself is information. Look for other means such as file size, signatures or official guidance.
The checksum posted on the official site
The type of value (MD5, SHA-256 and so on) and which file it belongs to
The downloaded file itself
The comparison steps
Drop the downloaded file on the File Checksum tool and choose the same method as the posted value. The file is processed in your browser and is not uploaded to a server.
Copy the resulting value and compare it with the posted one. If they are exactly the same, the file was not damaged during the download. Calculation time grows with file size. A large file can take a few minutes, so keep the tab open while it works.
Step 1 — choose the same method
Step 2 — add the file and calculate the value
Step 3 — paste both values and compare
When the values differ
If they differ, download the file again first. Most cases are transfer damage and a fresh download fixes them.
If it still differs, check that the method is the same, that the file name is correct and that the posted value is not for a different version. If it still does not match, do not run or install the file and look at the publisher's guidance. If you suspect a transfer error, try downloading again on a different network or at another time. Sometimes the router or the connection is to blame.
Try downloading once more
Re-check method, version and file name
If it keeps differing, do not open it and contact the publisher
What a checksum does not guarantee
A match does not mean the file is safe. Whether the place that posted the value can be trusted is a separate question, so first check that the address really is the official site.
A checksum only shows that the file you have is the same as the file that was published. Combine it with trusted sources, up-to-date versions and a security scan. Making this check a habit cuts down unnecessary doubt and reinstalling, and gives you one more solid reason to trust a file.
Confirm the address is the official site
Cross-check the value on another channel when possible