#️⃣ Hash Generator
Generate cryptographic hashes from text or files
✓ Free Forever · ✓ No Signup · ✓ No Upload · ✓ Works Offline
🔒 Your data never leaves your device. All processing happens locally in your browser using Web Crypto API (SHA-1 and SHA-2 of text) + my own MD5, SHA, BLAKE3, CRC32 and HMAC code in Web Workers (files, read in 8 MB pieces). No upload, no server, no tracking.
Features
- Multiple Algorithms — MD5, SHA-1 and SHA-256/384/512 at once. Tick CRC32, SHA3-256, SHA3-512 or BLAKE3 when you need them, or switch to HMAC with your key.
- Text & File Input — Hash text, one file or a whole set. Save the list as SHA256SUMS, or drop a checksum file together with the files to check each one.
- 100% Private — Hashing runs in your browser — Web Crypto for text, my own code in background workers for files. Nothing is sent to any server.
- One-Click Copy — Copy any hash value to your clipboard with a single click.
How It Works
- Enter text or drop a file — Type or paste text, or drop a file to hash its contents.
- View hash results — See MD5, SHA-1, SHA-256, and SHA-512 hashes computed instantly.
- Copy the hash you need — Press Copy next to the value you need, or Copy all for every one.
Use Cases
- Verify file integrity by comparing checksums
- Check a download against the checksum on the project’s page — paste their line in as it is
- Compute checksums for file distribution
Frequently Asked Questions
Which algorithm should I use?
SHA-256 is the most widely used for security purposes. MD5 and SHA-1 are common for checksums but are not recommended for security-sensitive applications.
How big a file can it hash?
Any size your browser can open. The file is read 8 MB at a time by background workers, one per algorithm, so memory stays low and the page keeps working; a progress bar and Cancel show while it runs. On a recent laptop it reads about 80 MB a second, so a 4 GB ISO takes under a minute. The command line (shasum, Get-FileHash) is still faster for multi-gigabyte files.
What can I paste into the compare box?
The bare value, or the whole line your tool printed: macOS md5 and shasum --tag ("SHA256 (file) = …"), sha256sum ("… file"), a PowerShell Get-FileHash row, certutil (with or without spaces), or several lines of a SHA256SUMS file — every checksum in it is compared. Upper or lower case doesn’t matter.
Why doesn’t my text’s hash match the one from the command line?
Usually a line break: `echo hello | sha256sum` hashes "hello" plus a newline. The page notices that and says so; use `echo -n` or `printf "%s"` to hash the text alone.
Is MD5 computed by Web Crypto?
No — Web Crypto has no MD5, so MD5 is my own code, and so are CRC32, SHA-3, BLAKE3 and HMAC. For text the plain SHA-1 and SHA-2 hashes come from Web Crypto; for files every hash is my own code, because Web Crypto needs the whole file in memory at once. Each one is checked against something that isn’t mine: Node’s crypto, zlib for CRC32, the official BLAKE3 test vectors, and the published RFC examples for HMAC.
Can I hash several files, or check them against a SHA256SUMS file?
Yes. Drop or pick several files and each gets its own row (they're read one after another, all in your browser). Choose which of the ticked checksums the list shows, and Download writes it in sha256sum's format as SHA256SUMS (MD5SUMS, B3SUMS…), which `sha256sum -c`, `md5sum -c` or `b3sum -c` reads back; CRC32 is saved as an .sfv. To check files, drop the SHA256SUMS, .sha256, .md5 or .sfv file together with them, or paste its lines under the list: every file is checked by name and value, and it matches, it's different, or it isn't in the list.
What are CRC32, SHA-3 and BLAKE3 for?
They're off until you tick them under “Compute”, and each visit starts with MD5, SHA-1 and SHA-256/384/512. CRC32 (zip, gzip, .sfv files) spots accidental damage but isn't security: anyone can make a different file with the same CRC32. SHA3-256 and SHA3-512 are the final SHA-3 standard (FIPS 202), not the older Keccak-256 that Ethereum uses, which gives a different value. BLAKE3 is the 256-bit hash b3sum prints. SHA-256, SHA3-256 and BLAKE3 values all have 64 hex digits, so the page names the one that matched and offers the ones it hasn't computed. CRC32 and BLAKE3 are the quickest here; SHA3-512 is the slowest, at about 40 MB a second on a recent laptop.
Can I compute an HMAC?
Yes. Tick HMAC and enter the secret key as text, hex or Base64. It works for text and files, with MD5, SHA-1, SHA-256, SHA-384 or SHA-512. To check a webhook signature such as GitHub's X-Hub-Signature-256, enter the exact body and key, then paste the signature into the compare box. The key stays in this tab's memory: it's never saved, sent or put in the address, and it's gone when you reload. One extra space or line break in the key or the body changes the result.
Notes from Milo 🐨
More checksums, but only if you ask for them: tick CRC32, SHA3-256, SHA3-512 or BLAKE3 next to the usual five, or untick what you don't need so a big file reads faster. There's an HMAC switch too, for checking webhook signatures; type the key as text, hex or Base64, and it stays in the tab's memory, never saved. And if a project hands you a SHA256SUMS, .sha256, .md5 or .sfv file, drop it in with the downloads: it's used as the list instead of being hashed like one more file. While I was in there I fixed something that bothered me: a paste with a right MD5 line and a wrong SHA-256 line for the same file used to say "match". It says no match now.
Drop five files here and it used to hash the first one and quietly forget the rest. Now several files make a list — one row each, read one after another — and you can save it as SHA256SUMS (or MD5SUMS…) in the format `sha256sum -c` reads back. Paste a release's SHA256SUMS under the list and every file gets its own verdict: matches, different, or not in the list. With a single file, a pasted SHA256SUMS now points at the line for that file when it doesn't match.
I tried to check a Linux ISO here — the exact thing my own guide sends people to do — and it failed: anything over about 512 MB came back "Couldn't read the file", blaming iCloud, and a 400 MB file froze the tab for ten seconds. My fault: the whole file went into memory at once. Now it's read 8 MB at a time in background workers, with a progress bar and Cancel; a 2 GB file takes about 25 seconds on my laptop. The compare box also takes whatever your terminal printed now — macOS's "MD5 (file) = …", a Get-FileHash row, certutil's spaced pairs, a whole SHA256SUMS file — and if your text doesn't match because `echo` added a line break, it tells you that instead of just "no match". And when your browser blocks the clipboard, it says so and selects the value instead of pretending it copied.
Two things bugged me when I used this to check a download. A file dropped on the home page arrived here with its hashes listed under an empty text box, so it looked like the hash of nothing, and the file was never named. And after editing text, the old text's hashes stayed on screen until you pressed Generate again. Now a dropped file switches to File mode and shows its name and size, text hashes update as you type, and there's a box to paste the checksum from the download page: it tells you straight away whether it matches, and which algorithm. The long hashes are shown in full too, instead of being cut off with "...".
I have to own this one: when you hashed a FILE, the MD5 that came back was wrong. Every non-empty file, since the day I shipped it. The SHA hashes were always right — the file-mode MD5 had its own copy of the code with a bug in how it pads the last block, and I never checked it against a known value. It does now, and I check it against a real one in the tests. If you ever compared a download's MD5 here and it didn't match, that was me, not the download. Sorry.
From the blog
- 📖 How to Generate an MD5 or SHA-256 Hash (and Verify a Download) — Generate MD5, SHA-1, or SHA-256 hashes in your browser and verify a downloaded file matches the publisher's checksum. Plus an honest note on which are broken.
Related Tools
- > Image to Base64 — Turn an image into a Base64 data URI, or encode and decode Base64 text — and turn Base64 back into a file
- 🔗 URL Encoder / Decoder — Encode or decode URLs and query strings instantly
- { } JSON Formatter & Beautifier — JSON pretty-print, beautifier, minifier, and validator — all in your browser
💬 Bug, idea, or just to say hi? Tell Milo 🐨 · [email protected]