Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 checksums for text or a file — entirely in your browser.
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 checksums for a block of text or a file. Paste a published checksum to check it against your file automatically. Files are read locally and never uploaded, so this works on documents you could not send to a hosted service — and on large files, since nothing has to travel over the network.
Checksums
MD5
128 bits
—
SHA-1
160 bits
—
SHA-256
256 bits
—
SHA-384
384 bits
—
SHA-512
512 bits
—
MD5 and SHA-1 are broken for security. Practical collision attacks exist for both, so never use them for passwords, signatures or anything an attacker could benefit from forging. They remain perfectly good for their common everyday job: checking that a file downloaded intact. For security, use SHA-256 or stronger — and for passwords specifically, use a dedicated algorithm like bcrypt or Argon2, never a raw hash.
How Hash Generator works
A cryptographic hash reduces input of any size to a fixed-length fingerprint. The same input always produces the same output, and changing a single bit changes the result completely. That makes hashes ideal for answering one question very cheaply: is this file byte-for-byte identical to the one I expected?
That is the everyday use, and it is a good one. When a project publishes a SHA-256 alongside a download, hashing your copy and comparing confirms the file arrived intact and was not swapped en route. Comparing a 64-character string is far easier than comparing gigabytes.
The security picture is where care is needed. MD5 has been broken since 2004 — attackers can construct two different files with the same MD5, cheaply, on a laptop. SHA-1 fell in 2017 when researchers demonstrated a practical collision. Neither should be used where an attacker could benefit from forging a match: signatures, certificates, integrity checks on untrusted input. Both remain perfectly adequate for their common non-adversarial job of detecting accidental corruption, which is why they are still here. SHA-256 and above have no known practical attacks and are the right default for anything security-relevant.
One misuse is worth calling out plainly: **none of these algorithms is suitable for storing passwords**. They are designed to be fast, which is exactly wrong for password storage — speed is what lets an attacker try billions of guesses per second against a stolen database. Password hashing needs a deliberately slow, salted algorithm such as bcrypt, scrypt or Argon2. Adding a salt to SHA-256 helps but does not fix the underlying speed problem.
SHA hashing here uses the Web Crypto API, your browser's native implementation, so even large files hash quickly. MD5 is implemented in JavaScript because Web Crypto deliberately omits it.
How to use Hash Generator
Choose text or file
Type or paste text to hash it as you type, or pick a file to read it locally from your device.
Read the checksums
All five algorithms are computed at once, with the insecure ones clearly marked.
Compare (optional)
Paste the checksum published alongside a download and the matching row is highlighted automatically.
Frequently Asked Questions
Is my file uploaded to hash it?+
Which hash should I use?+
Why are MD5 and SHA-1 marked as insecure?+
Can I use SHA-256 to store passwords?+
How do I verify a downloaded file?+
Why does the same text give a different hash elsewhere?+
What do the bit lengths mean?+
Is there a file size limit?+
Related tools
APIs, tech stack, DNS, SSL & SEO for any URL
Beautify, minify and validate JSON
Convert JSON ↔ YAML both directions
Convert CSV ↔ JSON with type detection
Base64 with Unicode and URL-safe support
Decode a JWT and check its expiry