Hash Generator

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text instantly.

MD5 ⚠ Broken
SHA-1 ⚠ Deprecated
SHA-256 ✓ Secure
SHA-512 ✓ Secure
⚠️ MD5 and SHA-1 are cryptographically broken. Use SHA-256 or SHA-512 for security-sensitive applications.

Frequently Asked Questions

What is a hash function?
A hash function is a mathematical algorithm that takes an input of any size and produces a fixed-size output called a hash or digest. Hash functions are deterministic (the same input always produces the same output), fast to compute, and designed so that even a tiny change in input produces a completely different hash. They are one-way functions — you cannot reconstruct the original input from the hash alone. Hashes are used for data integrity verification, digital signatures, password storage, and file identification.
What is the difference between MD5, SHA-1, SHA-256, and SHA-512?
These algorithms produce hashes of different lengths: MD5 produces 128-bit (32 hex character) hashes, SHA-1 produces 160-bit (40 hex character) hashes, SHA-256 produces 256-bit (64 hex character) hashes, and SHA-512 produces 512-bit (128 hex character) hashes. Longer hashes are generally more secure. MD5 and SHA-1 are cryptographically broken and should not be used for security-sensitive purposes. SHA-256 and SHA-512 (part of the SHA-2 family) remain secure and are recommended for cryptographic applications.
Can hashes be reversed?
Hashes are designed to be one-way functions and cannot be mathematically reversed. However, attackers can use precomputed "rainbow tables" of common inputs and their hashes, or simply brute-force short inputs. For this reason, passwords should never be stored as plain hashes — instead, use a slow, salted key derivation function like bcrypt, scrypt, or Argon2. MD5 and SHA-1 have additional weaknesses: it is possible to find two different inputs that produce the same hash (a collision), making them unsuitable for security applications.