Check that a file, image or text is what it claims to be

Hands-on steps for Windows, Mac and Linux, from file checksums to content credentials.

Published digestSHA-256 of an empty file

Equal in all eight groups. One changed byte would change every one of them.

Your copyprinted by the command on your machine

Published digest: e3b0c442 98fc1c14 9afbf4c8 996fb924 27ae41e4 649b934c a495991b 7852b855. Your copy: e3b0c442 98fc1c14 9afbf4c8 996fb924 27ae41e4 649b934c a495991b 7852b855. All 64 characters agree.

Checking an image or text instead?
SHA-256, 64 of 64Match

Every character agrees. Your file is the one that was published.

Flat geometric drawing of a workbench: a downloaded file beside its published fingerprint, a photo under a magnifier with a provenance label, and a document with a dated seal.
The same bench, three kinds of object. Each one has a label you can check it against.

The evidence ladder

Six kinds of evidence, strongest first. The top rungs can prove a fact; the bottom rungs can only tell you where to look.

  1. Digital signature

    Proves the file came from the holder of a signing key and has not changed since it was signed.

    Strength: Proof of origin
  2. File hash

    Proves your copy is identical, bit for bit, to the copy the published hash was taken from.

    Strength: Proof of sameness
  3. Content credential

    Records who made or edited an image and with what, signed so that later changes show.

    Strength: Signed history
  4. Metadata

    Says which camera, app or date produced a file. Anyone with an editor can rewrite it.

    Strength: Claim, editable
  5. Watermark

    Can suggest a known AI tool made it, if the mark survived editing and you have a way to read it.

    Strength: Hint
  6. Detector score

    A statistical guess. It can tell you to look closer; on its own it proves nothing.

    Strength: Estimate

1 is proof6 is an estimate

The original check: compute a file's fingerprint and compare it with the one the publisher posted.

  • Diagram of a file passing through a disc and coming out as a short fingerprint strip.
    Explainer

    What is a checksum?

    A short fingerprint computed from every byte of a file, and why one changed byte changes all of it.

  • Diagram of two files side by side with an equals disc between them.
    How-to

    How to verify a download

    Find the published hash, compute your own on your system, and compare every character.

  • Diagram of two files with a not-equal disc between them.
    How-to

    Checksum mismatch

    What a different hash means, the harmless causes, and when to delete the file.

  • Diagram of three bars of different lengths.
    Explainer

    MD5, SHA-1, SHA-256 compared

    Which algorithm to rely on today, and which only catch accidents.

The same habit for photos, documents and drafts: look for signed records first, and treat guesses as guesses.

What happened to HashTab

HashTab put a file's hashes in a tab of the Properties dialog, and many old forum posts still say to check with it.

There is no HashTab download on this site, and you do not need one.

Windows, macOS and Linux each ship a command that prints the same SHA-256.

The full HashTab story HashTab alternatives compared

Built in, nothing to install. Replace file.iso with the name of your file.

WindowsPowerShell
Get-FileHash .\file.iso -Algorithm SHA256
MacTerminal
shasum -a 256 file.iso
LinuxTerminal
sha256sum file.iso
Diagram: on the left a download and its published SHA-256; on the right a photo inside a credential frame with the SHA-256 of the image stored beneath it; an equals disc joins the two digests.
  1. Teal square: a download, with the digest its publisher posts.
  2. Orange square in a frame: a photo inside its content credential.
  3. Black bars: the SHA-256 digest in each case.
  4. Equals disc: the same function, so the same rule applies.

One hash, two jobs

The SHA-256 that checks a download is also the core of a content credential. Learn the first and you already understand the second.

Check a download

The publisher posts a digest. You compute yours. Equal means your file is the one they published.

Same function, same rule: change one byte and the digest changes.

Anchor a content credential

The credential stores a digest of the image and signs it. A validator recomputes it. Equal means the content is what was signed.

From checksums to content credentials

New and updated

Recently added or updated guides.
DateEntryFigure
Check a file's hash on Windows 10 and 11

PowerShell and Command Prompt, with the output you should see.

Diagram of a command window printing a fingerprint next to a published one.
Check a hash on a Mac

One Terminal command, and how to compare the result without squinting.

Diagram of a terminal window with a fingerprint line.
Check content credentials

See who signed an image, which edits it records, and what a broken credential means.

Diagram of a photo with a seal and a list of recorded edits.
Perceptual hash vs SHA-256

Why a resized photo still matches one kind of hash and not the other.

Diagram of an original and a resized photo, one matching and one not.

From the archive

Older sysadmin notes from this domain, refreshed and kept at the addresses old links expect.

A manual for checking things

Every guide shows the exact command, the system it applies to and the sources behind it. Strong evidence is called strong; a guess is called a guess.

About Implbits