Hash Generator — MD5, SHA-1, SHA-256, SHA-512
Type or paste text to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes side by side.
Text Tools
Type or paste text to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes side by side.
A cryptographic hash function turns any input — a word, a document, a whole file — into a short, fixed-length fingerprint. The same input always gives the same hash, and changing even one character gives a completely different one. You cannot reverse a hash to get the input back; you can only hash a candidate input and compare.
For example, the SHA-256 of hello is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824, while Hello gives 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969.
| Algorithm | Output | Status | Use it for |
|---|---|---|---|
| MD5 | 128 bits (32 hex) | Broken for security | Legacy checksums, cache keys, de-duplication |
| SHA-1 | 160 bits (40 hex) | Broken for security | Git object IDs, legacy systems only |
| SHA-256 | 256 bits (64 hex) | Secure | File checksums, signatures, APIs, blockchains |
| SHA-384 | 384 bits (96 hex) | Secure | TLS cipher suites, Subresource Integrity |
| SHA-512 | 512 bits (128 hex) | Secure | High-security applications, often faster on 64-bit CPUs |
Practical collisions have been demonstrated for both MD5 and SHA-1, which means an attacker can create two different inputs with the same hash. They are still fine for detecting accidental corruption, but use SHA-256 or stronger whenever security matters.
General-purpose hashes are designed to be fast, which makes them bad for storing passwords: an attacker can try billions of guesses per second. Password storage should use a slow, salted algorithm built for the job — Argon2id, scrypt, bcrypt or PBKDF2.
Paste a published hash into Compare with and the tool tells you whether it matches any of the five algorithms, ignoring upper/lower case. Note that this page hashes text, encoded as UTF-8. A file's checksum is computed from its raw bytes, so to verify a downloaded file use shasum -a 256 file (macOS/Linux) or certutil -hashfile file SHA256 (Windows).
Hashing runs locally: SHA algorithms use your browser's Web Crypto API and MD5 is computed in JavaScript. Your text is never uploaded.
Password Generator, Base64 Encode/Decode, Text to Hex, UUID Generator.