Hash Generator
Server-side hashing via Python hashlib — SHA-1/256/512, SHA3, MD5, HMAC.
Input Text
HMAC Secret (Optional)
Standard Hashes
...
...
...
...
...
...
Generate SHA-256 and SHA-512 hashes online — locally
Compute SHA-256 and SHA-512 hashes of any text instantly using your browser's Web Crypto API. Nothing is transmitted, making this safe for hashing values you would never paste into a server-side tool.
Frequently Asked Questions
- What is the difference between SHA-256 and SHA-512?
- Both are SHA-2 family functions. SHA-256 outputs 256 bits (64 hex chars) and SHA-512 outputs 512 bits (128 hex chars). SHA-256 is the de facto default; SHA-512 offers a larger security margin.
- Can a hash be reversed to get the original text?
- No — cryptographic hashes are one-way. The only attack is guessing inputs and comparing outputs, which is why short or common inputs (like passwords) need salting and slow hashes instead.
- Should I use SHA-256 for password storage?
- No. Fast hashes are wrong for passwords because attackers can try billions of guesses per second. Use bcrypt, scrypt, or Argon2 — see our Bcrypt Generator.
- Is MD5 still safe to use?
- MD5 is cryptographically broken (collisions can be manufactured) and should not be used for security. It survives only as a non-security checksum in legacy systems.