Home Text Tools Math & Numbers Developer Tools Date & Time Image Tools Blog
Hash Generator (SHA-256 / MD5)

Verify a Download by Comparing Its SHA-256 Checksum

Check that a file matches the checksum published on the download page, and learn what a match proves, what it does not, and what to do on mismatch.

Software download pages often list a long string of letters and digits labeled SHA-256. It exists so you can confirm that the file you received is exactly the file the publisher released, with no corruption or tampering along the way.

Hash Generator (SHA-256 / MD5) FREE online toolRuns in your browser. No sign-up, nothing to install. Open the tool

What a checksum does

A hash function turns any input into a fixed-length fingerprint. SHA-256 produces 64 hexadecimal characters. Change a single bit of the file and the hash changes completely, so equal hashes mean the contents are identical for all practical purposes. It is the right tool for detecting damaged downloads and modified installers.

Step by step

  1. Find the published SHA-256 value on the official download page, not on a mirror or forum.
  2. Compute the hash of your downloaded file with your operating system's tool: certutil -hashfile file SHA256 on Windows, or shasum -a 256 file on macOS and Linux.
  3. Compare the result with the published one, character by character or by pasting both into a comparison.
  4. If they match exactly, the file is the same as the one published.
  5. If they differ, delete the file and download it again from the official source.

Text versus files

The hash generator on this site works on text you paste. A hash of a text string is useful for checking small values, such as comparing two configuration snippets, but a downloaded installer is a binary file, so for real downloads use the command line tools above. Calculating the hash of the text pasted from a text file only matches the file hash when the bytes are identical, including line endings.

What a match does not prove

If an attacker controls the web page, they can swap both the file and its listed checksum. A matching hash only proves integrity relative to a trustworthy source. Where available, verify a cryptographic signature from the publisher too, and get the checksum over HTTPS from the official site.

If the hash does not match

  • Re-download in case of a flaky connection.
  • Check that you copied the whole hash and not a truncated version.
  • Make sure the case is not the issue: hex digits are not case sensitive, so ABC and abc are the same value.
  • Confirm you are comparing the same algorithm, since MD5 and SHA-1 values look different in length.
  • Do not run the file until you have resolved the mismatch.

Recording hashes for your own files

You can also publish checksums for files you distribute. Generate the SHA-256 for each release, list it on the download page, and tell users how to verify it. If you later notice a file does not match the published value, you know that something changed after release, which is exactly the situation a checksum exists to reveal.

Why SHA-256 and not MD5

MD5 and SHA-1 have known collision weaknesses, meaning someone can craft two different files with the same hash. SHA-256 is still considered secure for integrity checks. MD5 remains fine for catching accidental corruption, but should not be trusted against a deliberate attacker. For storing passwords, use a dedicated slow algorithm such as bcrypt or Argon2, not a plain SHA-256 hash.

Try the free Hash Generator (SHA-256 / MD5)
Runs in your browser. No sign-up, nothing to install.

Comments (0)

No comments yet. Be the first to share a thought.