A SHA-256 checksum computed on the spot, without uploading the file
A hash, or checksum, sums up a file in a short string of characters: the same file always gives the same hash, and changing a single byte gives a completely different one. To verify a file hash, you compare the checksum of the file you received with the one its publisher lists: if they are equal, the file arrived intact.
Your browser reads the file into memory and computes the hash with its built-in cryptography module (Web Crypto). The page is not allowed to make a single network request: the file stays on your device, whatever it contains. Only the content goes into the calculation: renaming the file leaves its hash unchanged.
Algorithms and output formats
SHA-256 is selected by default: it is the algorithm most publishers, Linux distributions and software repositories use today. SHA-384 and SHA-512 are there for when the reference hash uses one of them; SHA-1 remains available to check older checksums.
- Hexadecimal: the most common form, the one publishers list on their download pages.
sha256sum-style line: the hash, two spaces, then the file name (<hash> name). Pasted into aSHA256SUMSfile, it can be checked withsha256sum -con Linux orshasum -a 256 -con macOS.- Base64: the same bytes written more compactly, for tools that expect the hash in that form.
Compare with the published checksum
Paste the expected hash into the comparison field: the page accepts hexadecimal in upper or lower case
(PowerShell prints upper case, sha256sum lower case), Base64, a whole sha256sum line
or a prefixed value such as sha256:…. The length tells you the algorithm:
| Algorithm | Bytes | Hex characters |
|---|---|---|
| SHA-1 | 20 | 40 |
| SHA-256 | 32 | 64 |
| SHA-384 | 48 | 96 |
| SHA-512 | 64 | 128 |
If the pasted hash has the length of another algorithm, the page tells you so: pick that algorithm from the list and the hash is recomputed straight away.
When the hashes differ
A difference means the bytes are not the same. The most frequent causes, from the most mundane to the most serious:
- an interrupted or incomplete download: compare the file size with the one announced;
- a different version or variant (architecture, language) from the one whose checksum is published;
- for a text file, line endings converted along the way (Windows writes CRLF, Linux and macOS LF);
- a modified file: in that case, download it again from the official site before opening it.
Send the hash by a different route from the file
When you are the one sending a file, the hash lets your recipient check what they receive. It is worth the most when it travels separately: “Send with onlyU” hands them the reference hash, along with the file name and size. The hash goes from the kit to onlyU tab to tab in your browser; onlyU encrypts it in your browser and creates a link that opens only once, valid for 24 hours, then disappears. It is free, with no sign-up. To understand what a checksum proves and how to check it from the command line, read our guide on how to verify a file's integrity.