Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes for text.
Select Algorithms
Input
Drop a file here or click to browse
Output Options
Results
Hash Comparison
Verify a hash by comparing it with the generated hash.
Generate MD5, SHA-1, SHA-256, SHA-512 hashes for text.
Drop a file here or click to browse
Verify a hash by comparing it with the generated hash.
A hash generator turns any text into a fixed-length fingerprint using MD5, SHA-1, SHA-256, and SHA-512. This tool computes all four at once, in real time as you type, entirely in your browser. Use it to confirm two pieces of data are identical, to compute a checksum before publishing a file, to reproduce a signature during integration testing, or to see how a value will appear once hashed.
Example 1 — verifying a download. A vendor publishes SHA256SUMS next to a release file. You download the file, run sha256sum locally, and compare with the published value. If a single byte changed in transit — corruption or tampering — the hashes differ completely. Pasting a short sample into the tool is a quick way to confirm you are comparing the right length of string, though a full ISO should be checked with the command-line tool.
Example 2 — comparing two payloads. Two API responses look identical in a diff viewer that is hiding whitespace. Hash both and compare: if the SHA-256 values match, the payloads are byte-for-byte identical; if they differ, something changed. It is a five-second check that beats scrolling through a thousand lines.
Example 3 — the avalanche effect. Type hello, note the SHA-256 digest, then capitalize the H and watch it change entirely. There is no shared prefix or suffix. This property is what lets a small checksum stand for an entire document.
A cryptographic hash function has four defining properties:
Because the output space is finite, collisions (two inputs with the same hash) must exist. What separates a secure algorithm from a broken one is whether collisions can be constructed on purpose. MD5 collisions became practical in 2004 and SHA-1 in 2017, which is why neither is trusted for signatures or certificates today. SHA-2 (SHA-256, SHA-512) remains unbroken after two decades of scrutiny.
hello and hello\n hash completely differently. If two values should match but do not, check for an invisible newline or trailing space.Cryptographic hash functions exhibit the avalanche effect: changing a single bit of input changes roughly half of the output bits, with no visible relationship between the two digests. That is what makes hashes useful for detecting any change, even a one-character edit. 'hello' and 'Hello' differ in one bit, so their SHA-256 values share no prefix at all.
For files you control and download from a trusted source, MD5 and SHA-1 still detect accidental corruption, which is their common use. But both are broken for security: practical MD5 collisions appeared in 2004 and a SHA-1 collision in 2017, so they cannot prove authenticity. Prefer SHA-256 — it costs almost nothing and removes the debate. Verify against the vendor's published checksum, not one from the same page as the download.
SHA-256 has no key, so anyone can compute it. HMAC-SHA-256 mixes a secret key into the hash, so only someone holding the key can produce the same value. Use plain hashing for integrity checks, and HMAC for authenticating messages such as webhook payloads or signed API requests.
Hashes map an infinite set of inputs to a finite set of outputs, so collisions must exist. For a healthy algorithm they are impractical to find — roughly one in 2^128 for SHA-256. Historically broken algorithms are those where researchers learned to construct collisions deliberately, which is why MD5 and SHA-1 were retired from security work.
This tool hashes text you paste or type. To verify a downloaded file, compute its hash with a command-line tool — sha256sum on Linux/macOS, certutil -hashfile on Windows — and compare the result with the vendor's published value, character by character.
No. Hashing runs entirely in your browser with JavaScript, and the field is cleared by simply reloading the page. Nothing is transmitted or logged, which makes it safe for input values you would not paste into a third-party service.
Reviewed by the HandyTools Hub team · Last updated