Hash Generator — MD5, SHA-1, SHA-256, SHA-512
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text instantly. Runs entirely in your browser using the Web Crypto API — nothing you type is ever sent anywhere.
🔒 Runs entirely in your browser — no data is ever sent anywhereWhen you need to generate a hash
A cryptographic hash gives you a short, fixed-length fingerprint of arbitrary data — useful whenever you need to verify two things are identical without comparing them byte-for-byte, or without transferring the whole thing at all. Checking a downloaded file's SHA-256 against the one published by its source confirms it wasn't corrupted or tampered with in transit; hashing a string is also a common way to generate a stable cache-busting key or a deduplication fingerprint for otherwise-large content.
MD5, SHA-1, SHA-256, SHA-512 — which one to use
All four are generated here using the browser's native Web Crypto API (crypto.subtle.digest), entirely client-side. MD5 and SHA-1 are both cryptographically broken for security purposes — collisions (two different inputs producing the same hash) can be deliberately engineered — but they're still common for non-security uses like file-integrity checksums, which is why they're included. SHA-256 is the current practical standard wherever security actually matters; SHA-512 offers a larger security margin at a small performance cost. Hashing is a one-way function by design: there's no way to reverse a hash back into the original input, which is also why hashing alone (without salting) is insufficient for storing passwords — an attacker can still guess common passwords and check whether their hash matches yours.
Frequently asked questions
Is MD5 still safe to use?
Not for security purposes — MD5 is cryptographically broken and collisions can be deliberately engineered. It's still commonly used for non-security purposes like file integrity checksums, which is why it's included here. For anything security-sensitive (password hashing, digital signatures), use SHA-256 or stronger.
What's the difference between SHA-1, SHA-256, and SHA-512?
They're different algorithm variants producing different output lengths (160, 256, and 512 bits respectively) and security margins. SHA-1 is deprecated for security use like MD5; SHA-256 is the current practical standard; SHA-512 offers a larger security margin at a small performance cost.
Can a hash be reversed back to the original text?
No — hashing is a one-way function by design. What you can do is compare a hash against known values (e.g. rainbow tables for common passwords), which is why hashing alone isn't sufficient for password storage without techniques like salting.
Related Security tools
JWT Decoder
Decode a JSON Web Token's header and payload instantly and inspect expiry.
x402 Payment Validator
Decode and validate an x402 protocol payment payload (the header AI agents and APIs exchange for HTTP 402 machine payments), including a real EIP-712/EIP-3009 ECDSA signature check against the declared sender.
Bracketly is free and open-source. If this tool saved you time, consider supporting it.
☕ Buy me a coffee