Hash Generator
Type any text and all hash algorithm results are generated in real-time.
MD5—
SHA-1—
SHA-256—
SHA-384—
SHA-512—
About Cryptographic Hash Functions
A hash function converts arbitrary data into a fixed-length string (one-way). The same input always produces the same hash, but it is computationally infeasible to reverse the hash back to the original data.
Common uses:
• File integrity verification
• Digital signatures
• Data deduplication
• Password storage (use bcrypt/argon2 in practice)
Hash Algorithm Comparison
| Algorithm | Output | Security | Best For |
|---|---|---|---|
| MD5 | 128-bit | Broken | Checksums only (not security) |
| SHA-1 | 160-bit | Weak | Legacy systems (deprecated) |
| SHA-256 | 256-bit | Strong | Digital signatures, Bitcoin, TLS |
| SHA-384 | 384-bit | Strong | TLS certificates, high-security |
| SHA-512 | 512-bit | Strong | High-security applications |
Hash Examples
FAQ
What is the difference between hashing and encryption?
Hashing is a one-way function — the original data cannot be recovered. Encryption is two-way and can be reversed with a key. Use hashing (bcrypt, argon2) for password storage and encryption (AES) for data protection.
Is it safe to use MD5 or SHA-1?
No, for security purposes. Both have demonstrated collision attacks. Use them only for non-security tasks like file checksums. For security, use SHA-256 or stronger.
Why do I get a different hash for the same text?
Invisible differences like whitespace, line endings (LF vs CRLF), or encoding (UTF-8 vs other) change the byte representation. Hashes are computed byte-by-byte, so any difference produces a completely different result.
Can I use SHA-256 for password storage?
Not recommended. SHA-256 is too fast, making it vulnerable to brute-force attacks. Use slow key derivation functions like bcrypt, scrypt, or argon2 for passwords.
Related Tools
UUID Generator
Generate UUID v4 (random) and UUID v7 (timestamp-based).
Password Generator
Generate secure random passwords with customizable length, character types, and quantity.
Base64 Encoder/Decoder
Encode and decode Base64 strings.
QR Code Generator
Generate QR codes from text and URLs. Customize size, colors, and error correction.
String Escape / Unescape
Escape and unescape strings for JSON, HTML, URL, SQL, and more.