Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text. All hashing runs locally in your browser using the Web Crypto API — your data never leaves your device.
A hash function takes an input of any length and produces a fixed-length output (the digest). Good hash functions are deterministic (same input always produces the same output), fast to compute, and practically impossible to reverse. Changing even a single character in the input produces a completely different hash — this is called the avalanche effect.
MD5 produces a 32-character hex digest. It was widely used for checksums and password storage but is now considered cryptographically broken due to collision vulnerabilities. Still useful for non-security purposes like file integrity checks where collision resistance is not required.
SHA-1 produces a 40-character hex digest. Also considered broken for security use — Google demonstrated a practical SHA-1 collision in 2017 (the SHAttered attack). Avoid for digital signatures, certificates, and password hashing.
Part of the SHA-2 family, SHA-256 is the current industry standard for most security applications. Used in TLS certificates, Bitcoin mining, JWT signatures (HS256/RS256), and Git commit IDs. No known practical attacks.
SHA-512 provides a larger digest and is often faster than SHA-256 on 64-bit hardware due to wider word sizes. Used in password hashing schemes (PBKDF2-SHA-512), high-security file verification, and archival integrity checks.
MD5 produces a 128-bit (32 hex character) digest and is extremely fast. It was standard for checksums and file integrity through the early 2000s, but practical collision attacks have been demonstrated — meaning two different inputs can produce the same hash. It remains useful for non-security purposes like detecting accidental file corruption or generating cache keys, but should never be used for passwords, certificates, or digital signatures. SHA-1 (160-bit, 40 hex chars) is similarly broken — Google's 2017 SHAttered attack produced a real SHA-1 collision. Avoid it for any new security-sensitive work.
SHA-256 is the current default for most security applications: TLS certificates, JWT signatures (HS256/RS256), Bitcoin proof-of-work, and Git object IDs all use it. No practical attacks are known. SHA-512 provides a larger 512-bit (128 hex char) digest and is often faster than SHA-256 on 64-bit CPUs because it operates on 64-bit words instead of 32-bit words. It is preferred for high-security archival, HMAC-SHA-512 message authentication, and PBKDF2-SHA-512 key derivation. A practical rule: use SHA-256 by default; upgrade to SHA-512 if your threat model demands a larger security margin or if your target hardware benefits from 64-bit word operations.
Never use a raw hash function to store passwords — hashes are designed to be fast, which makes them easy to brute-force. Use a purpose-built password hashing algorithm like bcrypt, Argon2, or scrypt instead, which add computational cost and per-user salts. For data integrity verification (file downloads, API payloads), HMAC-SHA256 is preferable to a bare SHA-256 hash because the secret key prevents an attacker from forging a matching hash for a modified payload.