md5check

File checksum

Drop in an installer, an ISO, an archive or a database dump. All three checksums are computed in a single streaming pass, so a 4 GB file costs one read rather than three.

Any file type

Read locally in 64 KB chunks

Pick a file to see its checksums.

What happens when you drop a file

The browser hands the file to a background worker, which reads it as a stream and feeds each 64 KB chunk into three hash functions running side by side: MD5, SHA-1 and SHA-256. Memory use stays flat, so a 20 MB photo and a 20 GB disk image take the same amount of RAM. The only thing that grows is the time it takes.

Because it is one pass, generating all three digests costs almost the same as generating one. That matters when you do not know in advance which algorithm the publisher used.

Comparing the result with the published checksum

A checksum is only useful if you compare it. The fastest route is the verifier: paste the published value and select the same file, and it will work out which algorithm the value belongs to from its length, then tell you match or no match. Doing it by eye is where most people go wrong, because a single transposed character looks identical at a glance.

If you are comparing manually, remember that these are equivalent:

  • 9e107d9d372bb6826bd81d3542a419d6
  • 9E107D9D372BB6826BD81D3542A419D6
  • 9e 10 7d 9d 37 2b b6 82 6b d8 1d 35 42 a4 19 d6

Case does not matter and spacing does not matter. A different number of characters does, because that usually means a different algorithm.

Publishing a checksum for your own file

If you distribute software or data, publishing a digest is the cheapest integrity signal you can give your users. The conventional format on Unix-like systems is a file named archive.tar.gz.sha256 containing the digest, two spaces, an asterisk and the filename:

# generate
sha256sum archive.tar.gz > archive.tar.gz.sha256

# the file then contains
9f2c1b0d8e4a...  archive.tar.gz

# users verify it with
sha256sum -c archive.tar.gz.sha256

On Windows, certutil -hashfile archive.zip SHA256 prints the digest in the same hex form. Document which algorithm you used in the filename or the page text, otherwise people will guess wrong.

A checksum proves integrity, not authorship. Anyone who can replace your file can also replace the checksum next to it. To prove the file came from you, sign the checksum file with GPG or ship a signature alongside it. See checksum verification.

Frequently asked

Why does my browser ask permission to read the file?

That is the browser's own file picker confirmation, not a network upload. Once you select a file, the page can read its bytes but cannot send them anywhere you have not approved.

Can I hash several files at once?

This tool takes one file at a time. For a folder of files, the command line is faster: md5sum * or sha256sum * prints one line per file. On Windows, Get-FileHash .\* -Algorithm SHA256 does the same in PowerShell.

Does the file name affect the checksum?

No. Only the file's bytes are hashed. Renaming a file does not change its digest, which is why checksums are a good way to detect a renamed duplicate.

Why is MD5 offered for files if it is insecure?

Because many distributors still publish MD5 only, and comparing against what exists is more useful than refusing. For anything you control, publish SHA-256. The reasoning is in is MD5 still safe?

Related