How to Calculate and Verify a File Hash (SHA-256)

Last updated: · 2 min read

The way to know a download was not damaged or altered is to compare its hash. The tool computes SHA-256, SHA-1, SHA-384 and SHA-512 in your browser and shows whether it matches the expected value; the file is not uploaded.

Formula

SHA-256 = a 256-bit value unique to the file (64 hex digits)

Changing one bit changes the whole hash. SHA-1 is only for legacy use.

What the inputs mean

File
The file to hash.
Expected value
The published hash.

Worked example: A downloaded installer

  1. Choose the file; hashes appear.
  2. Paste the published SHA-256.
  3. The match result is shown.

Result: If it matches, the file is the published one; otherwise do not run it.

🔏 File Hash Calculator (SHA-256)

Free, no sign-up; your data stays in your browser.

Open the calculator →

How to read the result

A hash proves the file is unchanged, not that it is safe; trust the source of the hash.

Common mistakes

  • Taking the hash from the same untrusted site.
  • Relying on SHA-1 or MD5.
  • Comparing an archive with the file inside it.

Frequently asked questions

Is my file uploaded?

No.

Does letter case matter?

No, hex is the same.

How on Windows?

PowerShell: Get-FileHash file -Algorithm SHA256.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Sources

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice