Checking a Download Actually Arrived Intact
By toolbelt maintainers ·
Updated
The vendor publishes a SHA-256 and you have a file. Comparing them takes ten seconds and prevents a very bad afternoon.
What is this tool?
A hash turns any input into a fixed-length fingerprint. Same input, same fingerprint, every time. Change one byte and the fingerprint is unrecognisable.
How it works
SHA-1, SHA-256 and SHA-512 use the browser crypto API. MD5 needs its own implementation because browsers removed it, so it runs as local JavaScript. CRC-32 detects accidental corruption and is not a security hash at all.
Example
sha256("hello") = 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
sha256("hellp") = 99cf3f64c38ee34e8f0c1e5d5ff7b9cc5b19a7b90f8e6f9d5f8fa6b2f7e6f2e9
One character different, nothing recognisable in common.When to use it
Verifying a download. Comparing a config file with a published checksum. Checking that two large documents are identical without opening both.
Optimization Tips
Beware line endings. A file checked on Windows and the same file on Linux can produce different digests if the tool normalised CRLF. If your hash does not match, check that before assuming the download was corrupted.
Frequently Asked Questions
Can I reverse a hash?
Is SHA-1 still safe?
Why is my MD5 different from the website?
Can I use this for passwords?
Related tools
- Diff CheckerCompare two blocks of text line by line and see exactly what was added or removed. Useful for config files, migrations and reviewing edits before committing.
- Text Case ConverterConvert text between camelCase, PascalCase, snake_case, kebab-case, Title Case, slug and more. Handles existing identifiers by splitting on word boundaries first.
- QR Code GeneratorTurn any URL or text into a QR code and download it as an SVG. Choose the error-correction level for logos or rough printing, entirely in your browser.
- Markdown PreviewWrite Markdown and see it rendered live, then copy the generated HTML. Supports GitHub-flavoured tables, task lists, code fences and blockquotes.