How to use it
- On the download page, find the checksum published next to the file. It is usually labelled SHA-256 or SHA256SUMS.
- Choose your downloaded file above, or drag it onto the box. The hash is calculated on your device.
- Paste the published checksum into the compare box. The tool picks the algorithm from its length.
- Read the result. Match means your copy is identical. No match means do not run the file: download it again and check the source.
When to use it
- Verifying an installer, disk image or archive against the SHA-256 shown on the publisher’s download page.
- Confirming that a backup or a copied file is identical to the original.
- Checking a file someone sent you against a hash they gave you through a different channel.
- Getting a file’s SHA-256 or SHA-512 without uploading it anywhere or installing software.
What a checksum proves
A checksum is a hash of a file’s contents. If even one byte of a download is different, because the transfer was interrupted, the disk was faulty or someone altered the file, its hash changes completely. Comparing your file’s hash with the one the publisher lists shows whether you have exactly the file they hashed.
The file is read from your device by the browser and hashed using Web Crypto for the SHA algorithms. MD5 is calculated by this page’s own code, in chunks, so the page stays responsive. No part of the file is uploaded.
Worked example. A text file containing the five letters hello and nothing else has this SHA-256 hash:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
If the same file is saved with a new line at the end (hello followed by Enter), it is six bytes long and its SHA-256 hash is completely different:
5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03
A single invisible character changed the result, which is exactly why a checksum can catch tiny differences.
What a matching checksum does not prove
A match shows your file equals the one the checksum was made from. It does not show the file is safe. If an attacker can change both the download and the checksum on the same web page, a match proves nothing. Take the checksum from the publisher’s official site over HTTPS, preferably from a different place than the download link, and use a digital signature when the publisher provides one.
| System | SHA-256 command | MD5 command |
|---|---|---|
| Windows PowerShell | Get-FileHash .\file.iso -Algorithm SHA256 | Get-FileHash .\file.iso -Algorithm MD5 |
| Windows Command Prompt | certutil -hashfile file.iso SHA256 | certutil -hashfile file.iso MD5 |
| macOS | shasum -a 256 file.iso | md5 file.iso |
| Linux | sha256sum file.iso | md5sum file.iso |
Frequently asked questions
How do I verify a downloaded file’s checksum?
Find the checksum on the publisher’s download page, calculate the hash of your downloaded file with this tool or a command in the table, and compare the two. They must be identical, character for character. This tool does the comparison for you when you paste the published hash.
What should I do if the hashes do not match?
Do not open or install the file. Delete it and download it again, ideally on a different network, and make sure you are comparing the right algorithm and the right version of the file. If it still fails, report it to the publisher.
Does a matching hash mean the file is safe?
No. It means your file is identical to the one the checksum was calculated from. The checksum is only as trustworthy as where you got it, so use the publisher’s official site and verify signatures when they are offered.
Which algorithm should I choose?
Use whichever the publisher lists, and prefer SHA-256 or SHA-512 when you have the choice. MD5 and SHA-1 can detect accidental corruption but should not be trusted against deliberate tampering.
How large a file can I check?
Roughly up to 2 GB, because the browser must hold the file in memory to hash it. For larger files, use a command from the table above, which streams the file from disk.
Is my file uploaded to your server?
No. The file is opened by your browser and hashed on your device. You can confirm this in your browser’s network panel: no file data is sent.
Sources and further reading
- NIST FIPS 180-4: Secure Hash Standard (opens in a new tab) – SHA-1 and SHA-2 specifications
- RFC 1321: The MD5 Message-Digest Algorithm (opens in a new tab) – the MD5 specification
- Microsoft Learn: Get-FileHash (opens in a new tab) – PowerShell checksum command
- GNU Coreutils: SHA-2 utilities (opens in a new tab) – sha256sum and related commands
- Ubuntu: How to verify your download (opens in a new tab) – a worked example of checksum and signature checks
- MDN: File API (opens in a new tab) – how browsers read local files without uploading them