Local File Hash Generator (SHA-256/SHA-1/MD5)

Drop any file and compute its SHA-256, SHA-1, and MD5 checksums entirely in-browser

Ad placeholder (leaderboard)

A file checksum is a fixed-length fingerprint computed from every byte of a file. If even one bit changes, the checksum changes completely, which makes hashes the standard way to confirm a download is intact and unmodified. This tool computes SHA-256, SHA-1, and MD5 for any file you select — entirely inside your browser, with nothing uploaded.

How it works

When you choose a file, the browser reads its raw bytes into an ArrayBuffer:

  1. SHA-256 and SHA-1 are produced by the native Web Crypto API call crypto.subtle.digest(...), which is fast and constant-time.
  2. MD5 is not offered by Web Crypto, so it is computed with a pure-JavaScript implementation of the RFC 1321 algorithm (padding, 64-round compression, little-endian output).
  3. Each digest is rendered as a lowercase hexadecimal string.

Because the bytes never leave the page, you can safely hash confidential files without exposing them to a server.

Example and notes

A download page lists SHA-256: e3b0c442.... Drop the downloaded file here, read the SHA-256 value, and compare. If they match character-for-character, the file is authentic and undamaged. If they differ, re-download or treat the file as untrusted.

Prefer SHA-256 whenever you have the choice — collisions have been demonstrated for both MD5 and SHA-1, so they should only be used to verify legacy artifacts that publish nothing stronger.

Ad placeholder (rectangle)