File Hash Check Guide
A reference for the desktest.net File Hash Check. It computes a file's SHA-256, SHA-1, and SHA-512 in your browser and compares them against a hash a vendor published, so you can confirm a downloaded driver or installer is the exact file the vendor released and was not corrupted or tampered with on the way to you. The file never leaves your machine.
What does File Hash Check do?
A cryptographic hash is a fixed-length fingerprint of a file. Change a single byte anywhere in the file and the hash changes completely. Vendors publish the hash of each release next to the download so you can confirm the copy you received is byte-for-byte identical to the copy they built.
This tool reads the file you choose or drop, and computes three hashes locally with the browser's built-in Web Crypto API:
- SHA-256 - the modern standard and the one most vendors publish.
- SHA-1 - shown for legacy comparison when a vendor still lists only a SHA-1 checksum.
- SHA-512 - a longer, equally strong member of the SHA-2 family that some projects publish instead of SHA-256.
Paste the vendor's published hash into the compare box and the tool checks it, case-insensitively, against all three. If it equals any of them you get a green MATCH; if it equals none you get a red NO MATCH.
How to verify a download against a vendor's hash
The typical case: you downloaded a driver, a firmware image, or an installer, and the vendor's download page lists a SHA-256 checksum next to it. Here is the full flow.
- Find the vendor's published hash. On the official download page look for a value labelled SHA-256, SHA256, or "checksum". It may be on the page itself, in a linked
.sha256orSHA256SUMSfile, or in the release notes. Copy it. Only trust a hash served over HTTPS from the vendor's own site, never one that arrived in the same email as the file. - Open the File Hash Check. Go to the tool.
- Load the file you downloaded. Drag it onto the drop zone, or click Browse for a file and pick it. Hashing starts immediately and shows a "hashing" state for large files.
- Paste the vendor's hash into the compare box. A label prefix such as
sha256:and any surrounding whitespace are ignored, so you can paste straight from a checksums file. - Read the result. Green MATCH means the file is exactly what the vendor released. Red NO MATCH means it is not - stop and do not run it.
Reading the results
After a file is hashed the tool shows three panels.
The File panel shows the name, size (human-readable and exact byte count), and the MIME type the browser reported. Check the byte count against what the vendor lists; a wildly different size is an early sign you have the wrong file.
The Computed hashes panel lists SHA-256, SHA-1, and SHA-512 as lowercase hexadecimal. Each has a Copy button. When a pasted hash matches one of them, that row is highlighted green.
The Compare panel is where you paste the expected hash. The result updates as you type: a grey prompt before you paste anything, a green MATCH when your hash equals any computed hash, or a red NO MATCH with the warning that the file does not match the expected hash and should not be trusted.
The verdict panel at the top summarises the outcome with a plain next step. Copy Diagnostic Report copies a plain-text record - file name, size, all three hashes, the expected hash, and the compare result - to paste into a ticket or an email.
Why it matters: tampered downloads and supply chain
Checking a hash defends against two different problems.
Corruption. A download interrupted by a flaky connection, a full disk, or a proxy that mangled the bytes produces a file that will not install cleanly or will crash later. The hash catches this instantly, before you waste time on a broken install.
Tampering and supply-chain attacks. This is the security case. Attackers have repeatedly swapped legitimate installers for trojaned versions - by compromising a mirror or CDN, by hijacking a download link, or by a man-in-the-middle on the network path. A user who runs the swapped installer hands the attacker whatever privileges the installer requests, which for a driver or system tool is usually everything. If the vendor published the hash on a channel the attacker did not also control, comparing it catches the substitution: the tampered file's hash will not match.
This is exactly why the comparison hash must come from a trustworthy place. A hash sitting in the same compromised mirror as the file, or in the same phishing email, proves nothing - the attacker could regenerate it. Get the hash from the vendor's HTTPS site, their signed release notes, or an official package index.
SHA-256 vs SHA-1 vs MD5
Not all hash algorithms are equally safe. The difference that matters here is collision resistance: whether an attacker can craft two different files with the same hash. If they can, the hash can no longer prove a file was not swapped.
| Algorithm | Status for security | Use it for |
|---|---|---|
| SHA-256 / SHA-512 | Strong. No practical collision attacks. This is the current standard. | Verifying downloads, anything security-sensitive. |
| SHA-1 | Broken. Practical collisions were demonstrated in 2017. Do not rely on it to prove a file was not tampered with. | Legacy comparison only, when a vendor still lists only a SHA-1 checksum. |
| MD5 | Badly broken. Collisions are trivial to generate. Not offered by this tool. | At most a corruption check against a legacy source. Never for security. |
The tool shows SHA-1 for legacy comparison because some older vendor pages still publish only a SHA-1 value, and matching it is better than nothing for catching accidental corruption. But if a vendor offers a SHA-256, always compare against that instead.
MD5 is deliberately not available. The browser's Web Crypto API (crypto.subtle.digest) does not implement MD5 at all, and there is no reason to add it: MD5 collisions can be produced on a laptop, so a matching MD5 does not prove a file was not tampered with. If a vendor publishes only an MD5, treat it as a corruption check at best and ask them for a SHA-256. SHA-256 is the modern standard.
For IT admins
Hash verification belongs in any process where a binary is downloaded and then run with elevated rights: driver rollouts, firmware updates, imaging tools, and third-party installers deployed through your management stack.
- Record the expected hash in the change ticket. When you approve a piece of software for deployment, capture the vendor's SHA-256 in the ticket. Every later download can be checked against that recorded value, so a swapped or corrupted copy is caught before it reaches endpoints.
- Verify once, at intake. Hash the file when it enters your environment, before it goes into your software repository or deployment share. Everything downstream then trusts your internal copy.
- This tool for ad-hoc checks, the command line for scripting. The page is handy for a quick one-off check on any workstation with a browser and no admin rights. For automated pipelines use the built-in OS tools: Windows
certutil -hashfile <file> SHA256or PowerShellGet-FileHash <file> -Algorithm SHA256; macOS and Linuxshasum -a 256 <file>orsha256sum <file>. All produce the same lowercase hex you can compare against this tool. - It runs where uploads are not allowed. Because the file is hashed entirely in the browser with no network calls, this works on locked-down or air-gapped-ish workstations and for confidential files that must not be sent to an online hashing service. The page and its CSP make no outbound requests at all.
- Prefer signatures where you can enforce them. On Windows, WDAC or AppLocker publisher rules and Authenticode checks give a stronger, automatable guarantee than a manual hash compare. Use hashing as the universal fallback for anything unsigned.
Related
- File Hash Check - the tool itself
- Email Header Check Guide - inspect a suspicious email locally
- Browser Test Guide - what your browser supports, including Web Crypto
- About desktest.net
- desktest.net home
Elsewhere on the web:
- VirusTotal - paste a hash to see whether a known-bad file with that fingerprint has been reported (uploading a file, unlike this tool, does send it to a third party).
- NIST Hash Functions - the standards behind SHA-2 and the status of older algorithms.
- SHAttered - the 2017 demonstration of a practical SHA-1 collision, and why SHA-1 is no longer safe for verification.