By Relwick · Published
Two files can share a name and look the same in a preview while containing different bytes. Conversely, a renamed copy can be identical to its source. A checksum is useful when the specific question is whether a transfer preserved the file.
This is an optional verification step for a known source and destination. It complements visual inspection; it does not replace checking that you selected the correct original.
Quick answer & key takeaways
Calculate a SHA-256 checksum for the source file and the received copy using the same local tool and algorithm. Matching values provide a practical check that the bytes match, even if the filenames differ. Different values mean the copies differ and need investigation. A checksum comparison does not establish that a document is genuine, safe, or accepted by a recipient.
- Compare hashes of the source and received copy using the same algorithm.
- Keep the source unchanged while you perform the comparison.
- Treat a match as a consistency check, not proof of document authenticity.
Identify the exact pair you mean to compare
Before transferring, finish any edits and save the source you intend to send. After transfer, locate the actual downloaded copy rather than a preview or screenshot. Note the two paths privately. If you compare the wrong pair, even a correct checksum calculation answers the wrong question.
For example, a copy called “certificate (1).pdf” may be identical to “certificate.pdf,” while a file retaining the original name may have been rewritten by another application. Neither the suffix nor the shared name settles the comparison.
Calculate the checksum locally
In PowerShell, an example command is Get-FileHash -LiteralPath 'C:/Files/output.pdf' -Algorithm SHA256. Replace the example path with the file you want to inspect. Run the same command for the other copy and compare the complete Hash values. Microsoft documents this read-only file-hashing command and its algorithm option.
Use a local method rather than uploading a private document to an unfamiliar checksum website. Keep the resulting record with your own files if you need it. There is normally no reason to include a full personal file path in a public support request.
Interpret a match or mismatch appropriately
| Result | Next interpretation |
|---|---|
| Same algorithm and matching hash | The copies pass this byte-consistency check. |
| Different algorithms | Repeat with the same algorithm before comparing. |
| Different hashes | Investigate whether transfer, editing, or selection changed the file. |
| File could not be read | Resolve the path or access issue; no comparison has been completed. |
A mismatch is not automatically evidence of malicious alteration. A program may have re-encoded an image, rewritten PDF metadata, or produced a new export. Decide whether you needed an exact copy or merely a suitable derivative, then inspect the relevant difference.
Combine byte checks with content checks
Open the received file and confirm the right document, complete pages, and readable content. The Application file checker can inspect supported file properties such as format, dimensions, bytes, and page count, but it does not currently calculate a transfer checksum for you.
If an issuer’s signature or verification process matters, use that process separately. Two identical copies of an incorrect source remain incorrect. Likewise, matching bytes do not prove that a receiving portal has processed or approved the document.
Frequently asked questions
Does renaming a file change its content checksum?
Changing only the filename does not change the file’s content. Make sure the operation truly was only a rename.
Can two files with the same byte count still differ?
Yes. Length alone does not identify the sequence of bytes, so equal sizes are not an exact-copy check.
Should I use this after intentionally compressing a file?
Expect the compressed derivative to differ. Use checksums to compare copies of the same intended version, not to demand that a deliberate transformation preserve identical bytes.
Sources and further reading
- Microsoft Learn: Get-FileHash — Documents local file hashing, literal paths, and supported algorithm selection.
Summary
Use a checksum when you need to verify an exact transfer, then use visual and recipient-specific checks for the document’s meaning and suitability. Keep those questions separate.