#️⃣ Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes from text or a file. Computed entirely in your browser.
Enter text above to see its hashes.
About the Hash Generator
A cryptographic hash function turns any input — a password, a message, or an entire file — into a fixed-length string of hexadecimal characters called a digest. The same input always produces the same digest, but even a one-character change produces a completely different one. Hashes are used to verify file integrity (checksums), store passwords safely, and detect tampering. This tool computes the four most common digests — MD5, SHA-1, SHA-256 and SHA-512 — for any text or file, entirely in your browser.
SHA-1, SHA-256 and SHA-512 are computed with your browser's native SubtleCrypto (Web Crypto) API, which is fast enough to hash large files. MD5 is computed with a small JavaScript library because the Web Crypto API deliberately omits it.
How to use it
- Choose Text or File mode using the tabs.
- Text mode hashes as you type, with a short debounce. File mode lets you drag-and-drop a file or click to browse.
- Toggle Uppercase to switch the hex output between lowercase and uppercase.
- Copy any hash with the copy button next to it. The input byte size is shown so you can confirm what was hashed.
Features
⚡ Live text hashing
Hashes update as you type — no button to press, with a short debounce for performance.
📁 File drag-and-drop
Drop any file to compute its checksum. Great for verifying downloads and detecting corruption.
🔒 100% client-side
Uses the Web Crypto API in your browser. Files and text never leave your machine.
🔠 Case toggle
Show digests in lowercase or uppercase to match whatever format you're comparing against.
🧮 Four algorithms
MD5, SHA-1, SHA-256 and SHA-512 computed simultaneously from the same input.
📋 One-click copy
Each hash has its own copy button so you grab exactly the digest you need.
Frequently Asked Questions
Which hash should I use?
For verifying file integrity, SHA-256 is the modern default. MD5 and SHA-1 are fast and still widely used for checksums, but they are cryptographically broken — never use them for security-sensitive purposes like password storage or digital signatures. SHA-512 offers a larger digest and is common in high-assurance contexts.
Why is MD5 computed differently from the SHA hashes?
Browsers' built-in Web Crypto (SubtleCrypto) API supports SHA-1, SHA-256 and SHA-512 natively, but intentionally does not include MD5 because it is insecure. To still offer MD5 for checksum use, this tool computes it with a small, well-established JavaScript library — all locally, still without any server.
Can I verify a file download's checksum?
Yes. Switch to File mode, drop the downloaded file, and compare the generated hash against the checksum published by the software vendor. If they match exactly, the file is intact and untampered.
Is there a file size limit?
This tool accepts files up to 100 MB. Larger files are read entirely into memory in the browser, which can be slow or crash the tab, so the limit keeps the experience responsive. For very large files, a command-line tool like sha256sum is more suitable.
Are my text and files private?
Completely. All hashing happens in your browser using the Web Crypto API and a local library. Nothing you enter or upload is transmitted to any server or stored anywhere.