Checksum Verifier

Published Updated

Drop a file, choose MD5, SHA-1, SHA-256 or SHA-512, and paste the publisher's checksum to see whether they agree. Letter case, spaces and a prefix like sha256: are ignored, and so is the file name in a whole line from a SHA256SUMS file.

What you can paste into the box

The tool strips spaces, a leading 0x or label such as md5:, and capitals before comparing. Tested against the SHA-256 of an empty file:

Pasted textResult
e3b0c442...b855, the plain hexMatch
The same hex in capitalsMatch
sha256:e3b0c442...Match
SHA-256 = e3b0c442...Match
0xe3b0c442...Match
The hex split by spaces or a line breakMatch
e3b0c442... file.iso, a line from a SHA256SUMS fileMatch
SHA256 (file.iso) = e3b0c442...Match
Bytes joined by colons, e3:b0:c4:42...Match

The last three also match: the page takes the hash out of a SHA256SUMS or BSD line and ignores the file name, and it reads colon-separated bytes. When the box holds several lines, a match on any line counts. Only the hexadecimal digits are compared.

A match proves less than it seems

Ubuntu's verification tutorial splits the job in two: a GPG signature on the SHA256SUMS file shows who published it, and the sha256 comparison shows the download is intact. This page performs the second step only. A matching hash from a page an attacker could also edit tells you the copy is complete, not that it is genuine.

Verifying a download

  1. Step 1

    Choose the file

    Any file type. The name and size show beside it, with a warning once it passes 750 MiB.

  2. Step 2

    Pick the algorithm, paste the checksum

    SHA-256 is preselected. Match the choice to what the publisher printed, then paste the hex digits or the whole line from the checksum file.

  3. Step 3

    Press Verify

    A green card says the checksum matches. A red one shows the computed and the expected value for a close look.

How long hashing takes

Random-data files hashed in Google Chrome 156, through the tool's own code:

Algorithm100 MiB400 MiB
MD52.2 s9.0 s
SHA-10.10 s0.35 s
SHA-2560.09 s0.29 s
SHA-5120.11 s0.56 s

MD5 costs about 22 ms per MiB, so a 4 GiB image would take over a minute and a half. To see all four hashes of a file at once, use Hash Generator.

Checked against the command-line tools

We ran the tool's own hashing code (lib/checksumVerifier.ts) in Node 22.23.1 on generated files and compared each result with macOS shasum (for SHA-1, SHA-256 and SHA-512) and md5. The 12 file sizes were 0, 1, 55, 56, 64 and 1,000 bytes, 1 MiB, 4 MiB minus 1 byte, 4 MiB and 4 MiB plus 1 byte, 8 MiB and 25 MiB. The sizes around 4 MiB are where the tool cuts MD5 into chunks. All 48 results (12 sizes times 4 algorithms) were identical to the command-line output.

Changing one bit of a 1 MiB file changed 30 of the 32 hexadecimal digits of the MD5, 35 of 40 for SHA-1, 60 of 64 for SHA-256 and 117 of 128 for SHA-512, and the comparison reported no match for all four. A small change therefore does not produce a hash that looks nearly right.

Four engines, same files

We hashed generated files of 1, 16 and 64 MiB in Chrome 156, Chromium 153.0.8010.12 (the build that ships with Playwright, headless, not Google Chrome), Firefox 155.0 and Playwright's WebKit build (user agent Version/26.6, not the Safari app). The first 16 hexadecimal digits of every hash were the same in all four engines. Times in milliseconds for the 64 MiB file, one run each:

EngineMD5SHA-1SHA-256SHA-512
Chrome 1561,597886480
Chromium 1531,552847082
Firefox 1551,409129121192
The WebKit build9238867121

MD5 was the slow one in all four engines we tried, as the table above shows, because it is computed by the page's own code in chunks. The three SHA algorithms use the browser's built-in function and finished the 64 MiB in under 200 ms. We did not test files over 64 MiB in these engines.

Pasted text that does and does not match

Beyond the formats in the first table, we tried more pasted forms against the SHA-256 of an empty file. These were accepted: a line ending in a Windows line break, a line from a checksum file whose file name has spaces in it (e3b0c442... my file (1).iso), a non-breaking space before the hash, and a label that names a different algorithm than the one selected (sha1: in front of a SHA-256). The last one shows that the label is dropped, not checked: only the hexadecimal digits are compared with the file's hash.

Pasted textResult in our test
The hash with a full stop after itNo match
The hash inside quotation marksNo match
The hash inside backticks, as copied from a Markdown pageNo match
Two copies of the hash joined by a commaNo match
Only the first 16 charactersNo match
The last character changedNo match
The SHA-1 of the same empty file while SHA-256 is selectedNo match
An invisible zero-width space before the hashNo match

When the result is a mismatch, look first at what you pasted: remove quotation marks, backticks and trailing punctuation, and confirm the algorithm.

Checksum questions

Why does a correct checksum say it does not match?

The usual cause is that the algorithm button differs from the one the publisher used, which you can tell from the length: 32 hex digits is MD5, 40 SHA-1, 64 SHA-256, 128 SHA-512. The page picks the hash out of a whole sha256sum or BSD line and out of colon-separated bytes, so a file name or colons are not the problem. A hash that stops one byte short, or text that is not a checksum, will not match.

Which algorithm should I pick?

The one the publisher lists. If several are offered, take SHA-256: in the test it ran 25 to 30 times faster than MD5, which is computed by JavaScript on the page.

Does a match mean the file is safe?

It means the file is the one the checksum describes, nothing more. Ubuntu's verification guide separates integrity, checked with sha256, from authenticity, checked with a GPG signature. A checksum served from the same page as the file proves little.

How large a file can I check?

Nothing stops you at a set size. The page warns above 750 MiB, because the whole file is read into memory first. A file the browser cannot hold fails with the message Something went wrong reading or hashing this file.

Does case or spacing matter?

No. Digits are compared in lowercase with all spaces and line breaks removed, so a checksum copied in capitals or wrapped over two lines still works.

Is the file uploaded to compare it?

No. The browser reads the file and hashes it in the page, using Web Crypto for SHA and the site's own code for MD5. No request carries the file.

Did the tool agree with the command line?

Yes, in our test. We hashed 12 generated files of 0 bytes to 25 MiB with MD5, SHA-1, SHA-256 and SHA-512 and compared with macOS shasum and md5: all 48 results were identical. We did not compare files above 25 MiB with the command line.

Why does it say no match when the hash looks right?

Extra characters around the hash are the usual cause. A trailing full stop, quotation marks, backticks and an invisible zero-width space each caused a mismatch, while spaces, a 0x prefix, capitals, a Windows line break and a non-breaking space were accepted.

Does it check that I picked the right algorithm?

No. A label such as sha1: in front of the pasted hash is removed and ignored. If the algorithm you selected differs from the one the hash was made with, you get no match, which is the correct outcome for a different algorithm.

Is MD5 slower than SHA-256 in every browser?

In our test it was. For a 64 MiB file MD5 took 923 to 1,597 ms and SHA-256 64 to 121 ms across four engines, one run each. The speed depends on the device.

Related Tools