What is a file hash and how do you verify integrity?

Learn how checksums detect changed downloads, what SHA-256 can prove and what a matching hash cannot guarantee.

Published: 2026-07-31 · Updated: 2026-11-09 · SwiftlyKit

A hash is a content fingerprint

A cryptographic hash function converts file bytes into a fixed-length value. Changing even a small part of the file normally produces a different value. SHA-256 is commonly published beside software downloads so recipients can detect corruption or unexpected modification.

Compare against a trusted value

Obtain the expected hash from the software publisher's official HTTPS page or another authenticated channel. Select the downloaded file in SwiftlyKit File Hash Verifier, choose the same algorithm and compare every character. Uppercase and lowercase formatting is not meaningful for hexadecimal hashes, but every digit must otherwise match.

Know what a match proves

A matching value shows that your file has the same bytes as the file used to produce the expected hash. It does not prove that the publisher itself is trustworthy. If an attacker can replace both a download and the hash displayed beside it, the comparison will not expose that compromise.

Local verification and large files

SwiftlyKit reads the selected file in the browser and calculates its digest without uploading the file. Large files still take time to read and use device resources. Keep the tab open until calculation finishes and obtain a fresh copy if the values differ unexpectedly.

Check a concrete example

These examples explain expected behavior, not measured speed or compression savings. Check the output separately using your own file.

Example inputExpected behaviorCheck
File bytes containing abc, SHA-256ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adCompare every digit using the same algorithm
Identical digestSame bytes as the referenceThis does not prove that the publisher or file is safe

Try the related SwiftlyKit tools

File Hash Verifier

Hash Generator

Text Encryptor

Sources and further reading

NIST FIPS 180-4 Secure Hash Standard