Skip to content

Explainers

What is a SHA-256 checksum?

A SHA-256 checksum is a short fingerprint calculated from every byte of a file. If the file changes in any way, the fingerprint changes. That makes it the simplest honest test of whether a document is still the one you were given. It is also easy to over-read, so this page covers what it proves and what it does not.

Updated · 5 min read

Signavos: send a PDF for signature, pay only per document. Credits never expire.Try it free

What a SHA-256 checksum is, in plain English

SHA-256 is a standard recipe, called a hash function. You feed it any file, of any size, and it returns exactly 256 bits. Written out in hexadecimal that is always 64 characters made of the digits 0 to 9 and the letters a to f. A one-line text file and a 40 MB PDF both produce a string of the same length.

Think of it as a fingerprint, not a summary. The 64 characters tell you nothing about what is inside the file. What they do is identify it: the same file always gives the same checksum, on any computer, today or in ten years. People also say "hash", "digest" or "SHA256 sum". For this purpose they all mean the same thing.

The empty file has a famous checksum, e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. If your tool prints that for a file you thought had content, the file is empty. That is a quick sanity check that the tool works.

Why one changed byte changes everything

A good hash function is built so that a tiny change in the input scrambles the output beyond recognition. There is no such thing as a nearly matching checksum. Here are two text files that differ by a single character.

Two inputs, one character apart
TextSHA-256 checksum
Pay the invoice by 1 March.cab00a1ea8351c18ff2354609f6469d58d660160d2122d171b02ecef7653f403
Pay the invoice by 2 March.b621bbc444275a56382483922f08cedb3df066f5662711184f594ccddd87137c

Nothing about the two results hints that the inputs were close. So you never compare "roughly". You compare the whole string, and either every character matches or the file is different. This is why a checksum catches a changed date, a swapped page, an extra space, or a file that was quietly re-saved by a PDF editor.

What a checksum is not

  • Not encryption. Nothing is hidden and nothing can be unlocked. The checksum is one way: you cannot rebuild the file from it, and it does not protect the file from being read.
  • Not a signature. A checksum says nothing about who made the file or who agreed to it. Anyone can compute one for any file.
  • Not a timestamp. It does not say when the file existed. A checksum is only as dated as the record you stored it in.
  • Not secret. It is safe to print on a certificate, paste into an email or read out over the phone. That is the point.

A related worry is collisions, two different files with the same checksum. For SHA-256 no one has found one, and finding one by accident or by effort is not a realistic concern for contracts. The practical risk is never the maths. It is comparing against the wrong value or the wrong file.

What a match proves, and what it does not

If the checksum of your file equals a checksum that was recorded at the time something happened, you can say one thing with confidence: your file is byte for byte the same as the one that was recorded. Nothing was added, removed or altered since.

That is a narrow claim, and it is worth being exact about. A match does not tell you who signed, when they signed, or whether they understood what they signed. Those answers live in the audit trail: the sequence of events, with timestamps, IP addresses and the signer's emailed-link authentication. See what is an electronic signature audit trail for how that record works. The checksum ties the record to one exact file. The audit trail tells the story around it.

A Signavos Certificate of Completion lists both: the SHA-256 checksum of the final PDF and a chain summary hash of the audit log. The certificate of completion article shows what else is on it. Signavos does not embed a PKI digital certificate in the PDF, so the checksum is how you check the file, not a badge in your PDF reader.

How to get the checksum of a file

Two routes, both free. The first is your computer's built-in commands. The second is a browser tool.

  1. macOS or Linux: open Terminal and run shasum -a 256 file.pdf. The 64 characters appear before the file name.
  2. Windows Command Prompt: run certutil -hashfile file.pdf SHA256. The hash is on its own line.
  3. Windows PowerShell: run Get-FileHash file.pdf -Algorithm SHA256. The hash is in the Hash column.
  4. In a browser: open the free SHA-256 checksum tool, pick any file up to 50 MB, and it computes the SHA-256 on your device. To check a Signavos-signed PDF against its certificate, use verify a signed PDF. The file is not uploaded to Signavos and nothing is stored on our servers.

The browser tool can also read the final-PDF checksum from a Signavos Certificate of Completion, or take a checksum you paste in from another certificate, ignoring case and spaces, and tell you match or mismatch. It checks file integrity only. It does not check PKI digital signatures. The full walk-through, including what a mismatch usually means, is in how to verify a signed PDF has not been changed.

Where checksums help with contracts

  • Proving a stored copy is untouched. Record the checksum when a contract is completed, then compare years later.
  • Checking a copy someone sent you. Ask for the checksum from the certificate and hash what you received.
  • Verifying backups and migrations. Hash before and after you move a folder of agreements.
  • Settling a dispute about the version. If both sides hash their copy and one differs, you have found the problem in seconds. See what happens when an electronic signature is disputed.

Check a file with the free tool, or send a document for signature with Signavos and get a certificate with a checksum you can verify yourself.

Frequently asked questions

Is a checksum the same as a hash?
In everyday use, yes. A hash is the output of a hash function such as SHA-256, and a checksum is a hash used to check that a file has not changed. People use the words interchangeably.
Why are SHA-256 checksums always 64 characters?
SHA-256 always produces 256 bits. Each hexadecimal character stands for 4 bits, so 256 divided by 4 gives 64 characters, whatever the size of the original file.
Can you get the original file back from its checksum?
No. The checksum is a one-way fingerprint. It does not contain the file and cannot be reversed into it, so it is safe to share.
Does uppercase versus lowercase matter?
No. Some tools print the hexadecimal in uppercase and others in lowercase, and both are the same value. The free Signavos tool ignores case and spaces when you paste a checksum.
Does a matching checksum prove who signed?
No. It proves the file is identical to the one that was recorded. Who signed and when comes from the audit trail and certificate, not from the checksum.

Send your next document without a subscription.

Upload a PDF, place the fields, send. Your recipient signs without an account and you pay per signature. Nothing renews and credits never expire.

Create a free account