Hash generator
MD5, SHA-1, SHA-256, and SHA-512 digests of any text.
About hash algorithms
- MD5
- 128-bit. Fast but cryptographically broken; use only for checksums.
- SHA-1
- 160-bit. Deprecated for security; avoid in new applications.
- SHA-256
- 256-bit. Secure and widely used; the right default for most cases.
- SHA-512
- 512-bit. The strongest here, for high-security needs.
About the Hash generator
This hash generator computes MD5, SHA-1, SHA-256, and SHA-512 digests of any text and shows them as hexadecimal strings. Use it to compare a value against a published checksum, generate a test fixture, or see how a small change in the input produces a completely different hash.
How to use it
- Select one or more algorithms: MD5, SHA-1, SHA-256, or SHA-512. SHA-256 is selected by default.
- Type or paste text into the Input box.
- Click Generate hash. Each result lists the algorithm, its length in bits, and the hash.
- Use the copy button next to a result to copy it, or Reset to clear the input and results.
Text input only
The tool hashes the text in the Input box exactly as typed, including spaces and line breaks. All four hashes are computed over the UTF-8 bytes of the text, so results match other tools for any language; the SHA hashes use the browser's Web Crypto API.
Output format
Hashes are shown in lowercase hexadecimal: 32 characters for MD5, 40 for SHA-1, 64 for SHA-256, and 128 for SHA-512.
Privacy
Hashing runs in your browser. The text you enter is not sent to a server.
Questions
- Can a hash be reversed or decrypted?
- No. A hash function is one-way, so there is no key that turns a hash back into its input. Short or common inputs can still be found by guessing and comparing, which is why plain hashes are not safe for passwords.
- Is MD5 still safe to use?
- MD5 and SHA-1 are broken for security purposes because collisions can be produced deliberately. They are still fine for non-adversarial checks such as spotting accidental file corruption. Use SHA-256 or SHA-512 for anything security-related.
- Should I use SHA-256 to store passwords?
- No. SHA-256 is designed to be fast, which makes guessing attacks cheap. Store passwords with a slow, salted algorithm built for the purpose, such as Argon2, bcrypt, or scrypt.