File Hash Checker

Calculate a SHA digest of a selected local file to compare its bytes.

Your input is processed in this browser and is not uploaded.

File Hash Checker

Hash a selected file’s bytes to compare them with a trusted checksum. The filename is not hashed; the contents are.

How to use it

  1. Choose a local file up to 100 MiB.
  2. Choose the algorithm used by the publisher’s reference.
  3. Select Run tool and compare every hexadecimal digit with the reference.

Worked example

A UTF-8 file containing exactly abc, without a final newline, has SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Renaming that file leaves the checksum unchanged.

Limits and troubleshooting

The whole file is read into memory before hashing, with a 100 MiB cap. A match establishes agreement with a reference, not that an untrusted file or reference is safe. There is no automatic expected-hash comparison or malware scan. Select SHA-256, SHA-384 or SHA-512 to match the reference, then compare the result manually.

Frequently asked questions

Does changing the filename alter the digest?

No. Content bytes determine it. Metadata stored inside the file is part of those bytes, however.

Why did resaving a text file change its checksum?

An editor may change encoding, byte-order marks, line endings or the final newline without changing the visible words.

Reference

The Web Crypto digest documentation explains supported algorithms and why this operation reads the complete input into memory.