Privacy tool

File Checksum Calculator

Choose a file to calculate its SHA-256 checksum without uploading it.

Runs in your browser. No upload.

Your file is processed on this device and is not uploaded.

Choose a file to begin.

About this tool

File Checksum Calculator made simple.

The checksum is calculated locally with the Web Crypto API. It can help compare a file with a trusted published hash, but does not prove who created the file.

Guide

Using File Checksum Calculator

The File Checksum Calculator makes a SHA-256 checksum for one file from your device. A checksum is a code of 64 letters and digits that changes if even one byte of the file changes. You can paste a value published by the file's maker and see whether the two match. The file is read in your browser and is not uploaded. A match shows the contents are the same. It does not show who made the file or that the file is safe.

How to use it

  1. Press the file picker and choose one file from your device. Its name and size appear under the picker, with the size shown in KB or MB.
  2. Press Create SHA-256 checksum. The page reads the file in pieces and then fills the checksum box with 64 characters. Reading a very large file can take a while.
  3. If you have a published checksum, paste it into the compare box. A line under the box says whether the two values match. A start such as sha256: or SHA-256= is accepted and ignored.
  4. Press Copy checksum to copy the result. Press Clear to remove the file choice, the checksum and the compare box.

Worked examples

A three-byte text file

You enter
File content
abc (3 bytes, no line break)
Compare box
SHA256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
You get
Checksum
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Comparison
The checksums match.

The hash was made by running the page's own hashing code on these three bytes and was identical to Node's built-in SHA-256. The compare box ignores capital letters and the SHA256: start, so the pasted value matches. The file picker itself was not driven.

Not run through the tool. Treat it as an illustration.

An empty file

You enter
File content
nothing (0 bytes)
You get
Checksum
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

A file of zero bytes still has a checksum. This well-known value is a handy test: if you see it, the file you chose was empty. The value comes from the page's hashing code run on zero bytes, not from the file picker.

Not run through the tool. Treat it as an illustration.

One extra line break changes everything

You enter
File a
hello (5 bytes)
File b
hello followed by a line break (6 bytes)
You get
Checksum of a
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Checksum of b
5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03

The two files look almost the same on screen, but the checksums share nothing in common. A text editor that adds a line break at the end is enough to make a published checksum fail. Values come from the hashing code, not the file picker.

Not run through the tool. Treat it as an illustration.

When it helps

  • Check that a downloaded installer or disk image matches the checksum shown on the maker's page.
  • Check that a copy on a backup drive or a USB stick is the same as the original file.
  • Show a colleague that the file you sent is the file they received, by both writing down the checksum.
  • Notice that a file has changed by saving its checksum today and making a new one later.

Limits to keep in mind

  • It makes SHA-256 only. MD5, SHA-1 and SHA-512 are not offered, so a source that publishes one of those cannot be checked here.
  • One file at a time, and only after you press the button. Choosing another file clears the old checksum. There is no progress bar and no cancel button while a file is being read.
  • The code sets no file-size cap. It reads the file in 8 MiB slices, so memory use stays small, but a huge file simply takes longer and the browser can still fail to read it.
  • A match only says the bytes equal the value you pasted. It does not say who published that value or whether the file is safe to open.

Tips

  • Copy the published checksum from the project's own website, not from the same unofficial page that gave you the file.
  • Paste only the 64 characters. A .sha256 file often has a file name after the code, and that extra text makes the comparison fail.
  • Compare the checksum before you open or install a downloaded file, and delete the file if the values differ.

Sources

Common questions

About File Checksum Calculator.

What is a SHA-256 checksum?

It is a fixed-length code made from the bytes of a file by the SHA-256 method. It has 64 hexadecimal characters, which are the digits 0 to 9 and the letters a to f. Any change to the file gives a very different code, so it works like a fingerprint for the contents.

Is my file uploaded?

No. The file is read on your device in slices, and the page's own code works out the checksum there. The page says the file is processed on this device and is not uploaded. Nothing about the file or its checksum is sent to a server.

Is there a limit on the file size?

The tool sets none. It reads the file 8 MiB at a time and keeps only a small amount in memory, so large files are possible. They take longer, and your browser or device can still run out of time or memory. If reading fails, a message asks you to choose the file again.

Why do the two checksums not match?

The file may be damaged, a different version or a different file. The pasted value may have extra text, a missing character or a different method, such as MD5, which is shorter. The pasted value must be exactly 64 hexadecimal characters, or the tool reports no match.

Does a match mean the file is safe?

No. It means the file has the same bytes as the file that the pasted value was made from. If the pasted value came from the wrong place, or the original file was harmful, a match still happens. Trust comes from where you got the checksum.

Can I use a checksum made with MD5 or SHA-1?

No. This tool compares SHA-256 only, and it accepts only a 64-character hexadecimal value. A checksum made with another method has a different length or a different result, so it can never match, even for the same file.

Does renaming the file change its checksum?

No. Only the bytes inside the file count, not its name, folder or date. A renamed copy gives the same checksum. Opening the file in a program and saving it again can change some bytes, and then the checksum changes.

How do I create a SHA-256 checksum for a file?

Choose a file up to 25 MB. The checksum is calculated in your browser and shown as hexadecimal text.

How can I verify a downloaded file?

Compare its checksum with a value published by a source you trust. Matching hashes show the file contents match, but do not prove who published it.