Hash Generator
Compute MD5, SHA-1, SHA-256, and SHA-512 digests of text, for example to compare checksums or build test fixtures.
Your input stays in your browser. Nothing is uploaded.
About this tool
The text is encoded as UTF-8 and hashed. SHA-1, SHA-256, and SHA-512 use the browser's Web Crypto API; MD5 is computed by a JavaScript implementation because Web Crypto does not include it. Results are lowercase hexadecimal. MD5 and SHA-1 are broken for collision resistance and should not be used for signatures or certificates. None of these fast hashes is suitable for storing passwords; use a password-hashing function such as Argon2, scrypt, or bcrypt for that.
Limits
- These are fast checksums, not password hashes. Do not store passwords as MD5, SHA-1, SHA-256, or SHA-512. Use Argon2, scrypt, or bcrypt for that.
- MD5 and SHA-1 are not collision-resistant. Do not use them for signatures or certificates.
- Only the text in the box is hashed, as UTF-8. A file with different line endings will not match.
How to use it
- Type or paste the text to hash.
- Choose the algorithm.
- Copy the hex digest, or compare it with the checksum you were given.
Examples
SHA-256 of an empty string
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
MD5 of "hello"
5d41402abc4b2a76b9719d911017c592.
Whitespace matters
"hello" and "hello " (with a trailing space) produce completely different digests.
Digest lengths
| Algorithm | Bits | Hex characters | Status |
|---|---|---|---|
| MD5 | 128 | 32 | Broken; checksums only |
| SHA-1 | 160 | 40 | Broken for collisions |
| SHA-256 | 256 | 64 | Recommended |
| SHA-512 | 512 | 128 | Recommended |

