How to check a download

  1. Find the checksum on the publisher's own site, usually beside the download link or in a file named SHA256SUMS or checksums.txt.
  2. Drop the downloaded file on this page, or press Choose a file.
  3. Paste the published checksum into Expected hash. The calculator works out the algorithm from its length, or from a name such as SHA256 in what you paste, and tells you whether the two match.

You can paste a bare hash, a line from a checksum file (<hash> file.iso), the BSD form (SHA256 (file.iso) = <hash>), or the output of PowerShell or certutil as it is. Upper or lower case and spaces between bytes do not matter.

What a match proves

A match means the file you have is byte for byte the file the checksum was made from. A download that stopped early, a disk error, or a single changed byte gives a completely different hash.

It proves who made the file only as far as you trust where the checksum came from. If an attacker can change the download, they may be able to change a checksum published next to it too. Take the checksum from the publisher's own HTTPS page, and where the publisher signs its checksum file, check that signature as well. Ubuntu's guide shows how for its SHA256SUMS.gpg.

Why MD5 and SHA-1 are offered

Many publishers still list only an MD5 or a SHA-1 checksum, so the calculator can produce both. For spotting a corrupted or incomplete download they still work: an accidental change that keeps the same MD5 is, in the words of the GNU coreutils manual, "vanishingly" unlikely.

Neither one is safe against someone who changes a file on purpose:

When the publisher offers SHA-256 or SHA-512, compare that one: no one has published two different files that share a SHA-256 or a SHA-512.

Large files and your privacy

The file is read by your browser in 8 MB pieces inside a background worker, so the page stays responsive and memory use stays flat whatever the file size. A progress bar shows the speed and the time left, and Cancel stops at once. Ticking several algorithms hashes them in one pass over the file.

Nothing is uploaded: no request carries the file, its name or its hash, which you can confirm in the browser's network panel. Once the page has loaded it keeps working with the connection off.

On the command line

The same checks without a browser:

  • Windows (PowerShell): Get-FileHash .\file.iso prints SHA-256, its default. Add -Algorithm SHA512, SHA1 or MD5 for another.
  • Windows (Command Prompt): certutil -hashfile file.iso SHA256.
  • macOS: shasum -a 256 file.iso, or md5 file.iso for MD5.
  • Linux: sha256sum file.iso. To check every file listed in a checksum file at once, run sha256sum -c SHA256SUMS in the folder that holds them.