Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text, live, entirely inside your browser. Built for learning and quick verification — not an endorsement of MD5/SHA-1 for security use.
Type or paste text to generate its hashes
This hash generator computes MD5, SHA-1, SHA-256, and SHA-512 digests from any text you type or paste, updating live as you type. It's built for learning how hash functions behave and for quick one-off verification tasks — checking that two pieces of text are byte-identical, generating a checksum-style fingerprint, or seeing exactly how sensitive these algorithms are to even a single-character change. It is not intended as an endorsement that all four algorithms are equally suitable for security work — the notes under each hash explain which ones are still considered secure today.
For SHA-1, SHA-256, and SHA-512, the page calls the browser's native Web Crypto API (crypto.subtle.digest), which runs the hash directly in the browser's own optimized, audited implementation — no external library needed. The Web Crypto API does not expose MD5, since it's considered obsolete for the security-sensitive use cases the API targets, so this page includes a compact, self-contained JavaScript implementation of the classic MD5 algorithm, run entirely client-side. In all four cases, your input text is converted to bytes, processed through the algorithm's fixed sequence of bitwise operations, and the output is rendered as a hexadecimal string — the standard way hash digests are displayed.
Hash functions turn arbitrary-length input into a fixed-length fingerprint, and a good cryptographic hash makes it computationally infeasible to find two different inputs that produce the same output (a "collision") or to reverse the hash back to the original input. That property is what makes hashes useful for verifying file integrity, detecting tampering, and — when combined with salting and a slow, purpose-built algorithm — storing passwords safely. But not every hash function keeps that property forever: as computing power grows and cryptanalysis improves, older algorithms like MD5 and SHA-1 have been broken for security purposes, even though they remain fast and useful for non-adversarial tasks like deduplication.
Both algorithms have practical, demonstrated collision attacks. They're still fine for non-adversarial checksums, but must never be used for passwords, certificates, or signatures.
Part of the SHA-2 family, both remain secure against known attacks and are the standard choice for general-purpose cryptographic hashing today, including TLS certificates and blockchain applications.
Even a secure general-purpose hash like SHA-256 is too fast for password storage — attackers can try billions of guesses per second. Use bcrypt, scrypt, or Argon2, which are deliberately slow.
Common questions about hashing algorithms
Explore other developer & tech tools