Text Hash Generator
Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 digests of any text instantly.
Enter text to compute its digest.
MD5 is broken for security use. Prefer SHA-256 or stronger.
A cryptographic hash function maps data of any size to a fixed-length digest. The same input always produces the same output, but the output reveals nothing about the input and cannot be reversed.
MD5 and SHA-1 are considered broken for collision resistance and must not be used for passwords, signatures, or certificates. SHA-256 and above remain the recommended choices for integrity checks and fingerprints.
A hash is deterministic: identical input always yields identical output. That is why hashes are used to verify file integrity without sending the file itself.
Common uses
- Verifying that a downloaded file matches the checksum published on the vendor's site.
- Generating a deterministic content fingerprint for caching or deduplication, where cryptographic strength is not the goal.
Frequently asked questions
- Is MD5 safe to use?
- Only for non-security purposes such as quick checksums or cache keys. It is trivially broken for collision resistance, so never use it for passwords or integrity verification.
- Can I recover the original text from a hash?
- No. A hash is one-way by design. If the input space is small, an attacker can brute-force it, which is why passwords must be hashed with a slow, salted function like Argon2 or bcrypt.
- Why does the same text always give the same hash?
- That is the point of a hash: deterministic output lets you compare values without storing the original. Adding a random salt breaks this property for password storage.