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 text | Result |
|---|---|
e3b0c442...b855, the plain hex | Match |
| The same hex in capitals | Match |
sha256:e3b0c442... | Match |
SHA-256 = e3b0c442... | Match |
0xe3b0c442... | Match |
| The hex split by spaces or a line break | Match |
e3b0c442... file.iso, a line from a SHA256SUMS file | Match |
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
Step 1
Choose the file
Any file type. The name and size show beside it, with a warning once it passes 750 MiB.
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.
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:
| Algorithm | 100 MiB | 400 MiB |
|---|---|---|
| MD5 | 2.2 s | 9.0 s |
| SHA-1 | 0.10 s | 0.35 s |
| SHA-256 | 0.09 s | 0.29 s |
| SHA-512 | 0.11 s | 0.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:
| Engine | MD5 | SHA-1 | SHA-256 | SHA-512 |
|---|---|---|---|---|
| Chrome 156 | 1,597 | 88 | 64 | 80 |
| Chromium 153 | 1,552 | 84 | 70 | 82 |
| Firefox 155 | 1,409 | 129 | 121 | 192 |
| The WebKit build | 923 | 88 | 67 | 121 |
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 text | Result in our test |
|---|---|
| The hash with a full stop after it | No match |
| The hash inside quotation marks | No match |
| The hash inside backticks, as copied from a Markdown page | No match |
| Two copies of the hash joined by a comma | No match |
| Only the first 16 characters | No match |
| The last character changed | No match |
| The SHA-1 of the same empty file while SHA-256 is selected | No match |
| An invisible zero-width space before the hash | No 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.