file hash checkersha256file integrityverify download

Verify a File's Integrity With Its SHA Hash

Calculate a file's SHA hash in your browser, compare it with the one published by its source, and understand what a mismatch means.

August 22, 2026·4 min read

You download an operating system ISO, a software installer from a mirror, or a large file over an unstable connection. In any of these cases the file can arrive corrupted from a connection that dropped mid-download, or tampered with if someone intercepted the transfer. Comparing its SHA hash with the one published by the source catches both.

What a hash is and why it works for this

A hash is the result of applying a mathematical function to a file. It produces a fixed-length string (SHA-256 always gives 64 hexadecimal characters) and changes completely if a single bit of the original is modified. Two files that are identical byte for byte always produce the same hash; any difference, however small, produces a completely different one.

This makes integrity verification possible: if the hash you calculate matches the one published by the official source, your copy is, with practically total certainty, identical byte for byte to the original. If you want to see how MD5 and SHA-256 differ, read the MD5 and SHA-256 hash guide.

How to verify a file's integrity

  1. Select the file in the file hash checker or drag it onto the page. It is calculated in your browser: nothing is uploaded to a server.
  2. Choose the same algorithm as the published hash: SHA-1, SHA-256, SHA-384 or SHA-512. If you pick a different one, the comparison will fail even if the file is fine.
  3. Compare by pasting the published hash into the comparison field. It accepts the hash alone or a line from a SHA256SUMS file, such as hash file-name.
  4. If they match, the file is identical to the original. If not, something changed along the way: download it again before using it.

Why this matters beyond "the file wasn't corrupted"

  • Incomplete downloads: a connection that drops mid-download can leave a file that looks complete but has corrupted content. The hash catches it.
  • Unofficial mirrors: if the hash comes from the same page as the file, a tampered mirror may have changed both. Take the hash from the official source, through a channel other than the download itself.
  • Integrity after a transfer: when moving large files between drives or servers, comparing the hash before and after confirms the copy has no corruption. If you make backups, the backup strategy with verified hashes explains how to use them.
  • Security verification: if the published hash is trustworthy, it detects whether a file was altered (for example, with injected malware) between the original server and your download.

Why the calculation should happen on your own device

A file whose hash you need to verify can be sensitive (licensed software, documents, backups) or very large. Calculating the hash in your browser, without uploading the file to a server, keeps it away from third parties and does not depend on upload speed. With files of several gigabytes, the tool reads them in chunks and shows progress while it calculates.

Frequently asked questions

Which algorithm should I use, MD5 or SHA-256? SHA-256. MD5 and SHA-1 have known collisions: two different files can be built with the same hash, so they are no use if someone wants to replace a file without changing its hash. RFC 6151 explains why MD5 is not acceptable where collision resistance is required, and SHAttered shows the first real collision for SHA-1. They still work for detecting accidental corruption. The checker does not compute MD5: it offers SHA-1, SHA-256, SHA-384 and SHA-512.

If the hashes don't match, does it mean the file has a virus? Not necessarily: it may be an incomplete or corrupted download, or you may have chosen a different algorithm. It is a reason not to trust the file until you download it again and verify it once more.

Where do I find a file's official hash? Usually on the same download page, next to the link, or in an additional text file (SHA256SUMS, file.sha256).

Is my file uploaded to a server to calculate the hash? No. The calculation runs in your browser, reading the file in chunks.


Verify any file's integrity with the file hash checker, in your browser and without uploading it.

Try it without code

File Hash Checker

Calculate and compare a file's SHA hash.

Open File Hash Checker

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me