File hash calculator (SHA-256)

Drop a file: its hash is computed on the spot and compared with the one the publisher lists, to check that the file is intact.

Hash
sha256sum-style line
Base64

Send with onlyU — Your recipient gets a link they can open only once, then the link is gone. onlyU opens in a new tab with the secret already filled in: all you have to do is create the link. Free, no sign-up. How does it work?

“Send with onlyU” passes on the reference hash through a different channel from the file: your recipient can check that the file they receive is intact.

Compare with an expected hash

Computed in your browser. Nothing is sent unless you choose onlyU.

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 a SHA256SUMS file, it can be checked with sha256sum -c on Linux or shasum -a 256 -c on 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:

AlgorithmBytesHex characters
SHA-12040
SHA-2563264
SHA-3844896
SHA-51264128

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.

Frequently asked questions

Is the file uploaded?

No. Your browser reads the file and computes the hash with Web Crypto; the page is not allowed to make network requests. You can check this in the Network tab of the developer tools.

Which algorithm should I choose?

The one used by the hash you are comparing against, most often SHA-256. SHA-1 is only offered to check older hashes: it no longer protects against deliberate tampering.

What does a matching hash prove?

That your file is exactly, byte for byte, the one whose hash was published. It says nothing about its content, and the hash itself still has to come from a trusted source.

Is there a maximum file size?

The browser reads the whole file into memory: a few hundred megabytes work everywhere, several gigabytes depend on the device. For very large files, your system's command is better suited.

Why send the hash with onlyU?

So that it travels through a different channel from the file: if someone modifies the file on the way, they cannot also modify the hash your recipient receives separately.