About the Hash Generator
A hash function turns data of any size into a fixed-length fingerprint. Change a single character and the hash changes completely, which makes hashes ideal for checksums (verifying that a download matches the original), tamper detection and signing API requests with HMAC.
SHA hashes are computed with your browser’s Web Crypto API and MD5 with a built-in implementation. Large files are read in 4 MB chunks with a progress bar, and nothing is uploaded to a server.
How to use
- Type text in the Text tab or pick a file in the File tab. All five hashes are calculated immediately.
- If you need a keyed signature (e.g. for an API or webhook), turn on HMAC and enter the secret key.
- Choose the output format: lowercase hex, uppercase HEX or Base64.
- Paste the checksum from the download page into Hash to compare to see which algorithm it matches.
Worked examples
How one trailing newline changes the hash
- Input
hellovshello+ Enter- Result
- hello (5 bytes) MD5 5d41402abc4b2a76b9719d911017c592
hello + newline (6 bytes) MD5 b1946ac92492d2347c6235b4d2611184
echo hello | md5sum on Linux includes the newline, so it prints the second value; echo -n gives the first. When two tools disagree, compare the byte count first.
Verify a webhook signature (HMAC-SHA256)
- Input
- HMAC on, key
my_secret_key
Body{"event":"payment.completed","amount":4900} - Result
- HMAC-SHA-256 c02dcefe947cd23404d223a8b93ed32a32646c8d7ded744d48ddfa18a20f3bbb
If this equals the signature header sent by the payment provider, the request is genuine. Paste the raw body exactly as received; re-formatting it in a JSON formatter first changes the result.
Check a download against a published checksum
- Input
- After hashing, paste the published value into the compare box, e.g.
5D41402ABC4B2A76B9719D911017C592 - Result
- ✓ Matches the MD5 hash. The file or text has not been altered.
A wrong value shows "✗ No matching hash. By its length it looks like a SHA-256 hash, but the value differs."
Case, surrounding spaces and prefixes such as "sha256:" are ignored, and Base64-encoded digests are matched too.
Hash algorithms: length and use
| Algorithm | Hex chars | Security | Typical use |
|---|---|---|---|
| MD5 | 32 | Collisions possible | Simple checksums, cache keys |
| SHA-1 | 40 | Collisions possible | Git object IDs, legacy systems |
| SHA-256 | 64 | Secure | File verification, blockchain, JWT |
| SHA-384 | 96 | Secure | TLS, Subresource Integrity (SRI) |
| SHA-512 | 128 | Secure | High-security signatures |
Example: SHA-256("abc") = ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Don’t store passwords with a plain hash
MD5 and SHA-256 are very fast, so plainly hashed passwords fall quickly to brute-force attacks. Store passwords with a dedicated, deliberately slow and salted function such as Argon2id, scrypt or bcrypt, as recommended by the OWASP Password Storage Cheat Sheet.
FAQ
Why does another website give a different hash for the same text?
Usually because of encoding or line endings. This tool hashes UTF-8 text; an extra trailing newline or Windows line endings (CRLF) produce a completely different hash.
Can I recover the original text from a hash?
No, hashes are one-way functions and cannot be reversed by calculation. Short or common strings can, however, be looked up in precomputed tables (rainbow tables), which is why plain hashes are unsuitable for passwords.
Does it work with large files?
Yes, up to 1 GB. The file is read in 4 MB chunks with a progress bar; a 100 MB file usually takes only a few seconds. Everything happens on your device.
How is HMAC different from a normal hash?
HMAC mixes a secret key into the calculation, so only someone who knows the key can produce the same value. It is used to sign payments, webhooks and API requests so they can’t be forged (RFC 2104).
Why does capitalisation matter so much?
Hashes work on bytes, and "H" and "h" are different bytes. "hello" gives SHA-256 2cf24dba… while "Hello" gives 185f8db3…: completely different, not just one digit off. That avalanche effect is exactly what makes a hash useful for spotting changes.