Hash Generator
About this tool
Generate MD5, SHA-1, SHA-256, or SHA-512 hashes of any text, in hex or base64 encoding, and optionally compare the result against a hash you already have.
How to use it
- Enter the text you want to hash.
- Choose the algorithm (MD5, SHA-1, SHA-256, or SHA-512) and encoding (hex or base64).
- Optionally provide an existing hash to compare against - you'll get a match/no-match result.
Frequently asked questions
- Is the comparison secure against timing attacks?
- Yes - comparisons use a constant-time algorithm so the response time can't leak how many characters matched.
- Should I use MD5 or SHA-1 for security-sensitive purposes?
- No - both are included for compatibility/checksum use cases, but are considered cryptographically broken for security purposes. Use SHA-256 or SHA-512 for anything security-sensitive.