A checksum is useful when you need to check whether a downloaded or handed-off file matches an expected byte sequence. The expected checksum must come from a source you trust. A file and a matching digest copied from the same compromised location can still be malicious.
Know what a match establishes
The companion file checksum tool calculates SHA-256, SHA-384, or SHA-512 for a selected local file or entered text and can compare the result with an expected digest. Choose the algorithm named by the publisher or your handoff process. Digests from different algorithms are not interchangeable.
For ordinary integrity checking, matching a trusted modern cryptographic digest is strong evidence that the file has the expected bytes. It is not a malware scan, a digital signature, or proof of who created the file. A mismatch means the expected value, selected algorithm, or input bytes do not match the comparison you intended.
Check a file against a trusted expected value
- Get the expected checksum from the publisher’s official source or another channel your process treats as trustworthy. Confirm the exact filename, release, platform, and algorithm.
- Select the local file in the checksum tool. The packaged tool accepts files up to 25 MiB; it does not upload them for processing.
- Select the matching SHA algorithm and paste the reference into Expected checksum (optional). Use hexadecimal characters only, without a filename or explanatory text.
- Choose Calculate checksum and inspect the explicit match or mismatch result. If you change the input or expected value, calculate again to obtain a fresh result.
- If it matches, record the filename, byte size, algorithm, digest, and where the expected value came from. Keep your original download until the review is complete.
Do not proceed as though a mismatch were a warning that can simply be ignored. First confirm that you selected the correct file and algorithm. If necessary, obtain a new copy from the official source and repeat the same check. A successful transfer and a valid checksum are different observations.
A final newline changes a text checksum
Input: abc
Digest:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adThe input here has no leading space, trailing space, or final newline.
Use the synthetic three-byte abc file and four-byte abc plus LF file to test file mode without relying on an editor’s save behavior.
Adding a line feed after abc produces a different byte sequence and this different SHA-256 value:
edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb
This makes text mode useful for a small demonstration, but file mode is the right choice for a byte-for-byte file check. Pasting into a browser text area may normalize line endings to LF. A text editor can also change line endings or encoding when it saves. Two documents can look identical while their bytes differ; conversely, matching a text sample does not certify any unrelated file.
Understand the browser boundary
The tool uses the browser’s Web Crypto facilities. The digest API requires a secure context and takes the complete input rather than a streaming sequence. That is why a bounded file-size policy matters even when processing is local. The encoded file, input buffer, and application state can occupy memory at the same time.
If Web Crypto is unavailable, use a supported browser over HTTPS or an established local checksum tool. Do not disable browser security warnings to make the page run. For files larger than the displayed cap, use a tool designed for larger or streaming inputs instead of assuming unlimited browser capacity.
Use a checksum in a practical handoff
Suppose you send an image archive to a collaborator. A checksum can help both sides confirm they are discussing the same archive. It will change if the archive is rebuilt with different contents or metadata. Name the exact artifact being hashed, not just the folder or the intended visual appearance.
- Hash the final artifact after export, not an earlier draft.
- Send the algorithm alongside the digest.
- Keep the expected digest associated with its source and version.
- Use an authenticated delivery or signature process when origin matters.
Selected file bytes and entered text remain in the tool’s browser processing path. A checksum is not encryption and should not be treated as a way to anonymize sensitive, guessable data. Browser extensions, saved downloads, clipboard history, and host-site analytics remain separate concerns.
