Skip to main content
All Tools

File Hash Calculator

This file hash calculator gives you the SHA-256, SHA-1 and MD5 checksum of any file in one pass. It runs entirely in your browser: the file is read in small pieces on your own device and never uploaded, so there's no size limit. Paste an expected checksum below to verify a download, or use it to compare two files.

Drop a file here or click to browse

Any file type, no size limit

Paste the SHA-256, SHA-1 or MD5 checksum from the download page. You'll see whether it matches your file and which algorithm matched.

How to find the SHA-256 hash of a file

  1. Drop the file onto the box above, or click the box to pick a file from your device.
  2. Wait for the progress bar to finish. Every byte has to be read, so a large file takes as long as your disk needs to read it.
  3. Copy the 64-character SHA-256 value with the button next to it. SHA-1 and MD5 are calculated in the same pass, so all three are ready at once.

How to verify a checksum

Software publishers often list a SHA-256 or MD5 checksum next to the download link. Paste that value into the compare box and drop the downloaded file, in either order. A match means you have exactly the file the publisher released. No match means the download was corrupted or altered, so download it again from the official source and don't open it. Upper or lower case doesn't matter, and prefixes like "sha256:" are stripped, so you can paste the value as published.

If you're sending files to someone, you can skip the manual check. Share a file with SpectrShare and the recipient's download is verified automatically against a SHA-256 hash. How it works explains how the hash is checked during the transfer.

File hash FAQ

What is a file hash?

A file hash, or checksum, is a fixed-length string calculated from every byte of a file. Change a single byte and the hash changes completely. Hashes are one-way: you can't rebuild the file from its hash, which makes them safe to publish next to a download.

SHA-256, SHA-1 or MD5: which should I use?

Use SHA-256 whenever you have the choice. It produces a 64-character hex string and has no known practical attacks. SHA-1 (40 characters) and MD5 (32 characters) both have known collision attacks, meaning someone can deliberately craft two different files with the same hash. They're still fine for catching accidental corruption, and plenty of download pages only publish an MD5 checksum, but don't rely on them to detect tampering.

Is my file uploaded anywhere?

No. The file is read and hashed inside your browser using hash-wasm, a WebAssembly library. Nothing about the file, not even its name, is sent to a server.

How do I compare the hashes of two files?

Hash the first file and copy its SHA-256 value. Click "Hash Another File", paste the copied value into the compare box, then drop the second file. A match means the two files are byte-for-byte identical.

Does it work on large files?

Yes. The tool reads the file in 2MB chunks and feeds each chunk into all three hash functions as it goes, so memory use stays flat regardless of file size. Multi-gigabyte ISOs and videos work fine; the only limit is how long you're willing to wait.

How do I get a file hash on the command line?

Every major operating system has a built-in command. Each of these prints the SHA-256 hash; swap in md5sum, shasum -a 1 or -Algorithm MD5 for the other algorithms.

# Linux
sha256sum file.iso
# macOS
shasum -a 256 file.iso
# Windows (Command Prompt)
certutil -hashfile file.iso SHA256
# Windows (PowerShell)
Get-FileHash file.iso -Algorithm SHA256