SHA-256 and SHA-512 Hash Generator — SHA-1 and SHA-384 Too
Compute SHA-1, SHA-256, SHA-384 & SHA-512 hexadecimal digests via Web Crypto.
- SHA-256 and SHA-512 are used for download checksums, signatures and certificates. Text is hashed as UTF-8 bytes, and Windows line breaks (CRLF) are read as LF.
- Do not store passwords as fast hashes like these; use bcrypt, scrypt or Argon2.
When to use the SHA-256 & SHA-512 Web Crypto Hash Generator
Four hashes at once
Type or paste text and see SHA-1, SHA-256, SHA-384 and SHA-512 at once. The result can be written as lower-case hex, upper-case hex, Base64 or Base64url to match what an API or config file expects.
Clear about the bytes
Text is hashed as UTF-8 bytes, and Windows line breaks are read as LF so the result is the same on every system. The box can also be read as hex or Base64 to hash binary data such as keys or signatures.
One hash per line
The per-line option hashes every line separately, useful for token lists, e-mail addresses for anonymous matching or test data. The result is written as the hash followed by the original text.
Tested against Python's hashlib
The implementation is tested against Python's hashlib on hundreds of random inputs, from zero bytes to hundreds of kilobytes, including ones split at the 64- and 128-byte block boundaries.
Frequently asked questions
Why is my hash different from the terminal's?
echo adds a line break at the end. Use echo -n or printf so the hashed text is exactly the same.
Is SHA-1 still safe?
Not for signatures or certificates, because collisions have been produced. SHA-1 is still fine for non-security identifiers such as older Git commits.
Can a hash be turned back into the text?
No. A hash is one-way; only short or common text can be guessed through word lists.
Is my text sent anywhere?
No. The hash is computed in your browser.
Similar tools
- AES-256-GCM + PBKDF2 Browser Text EncryptorEncrypt plaintext using Web Crypto AES-256-GCM authenticated passphrase key.
- AES-256-GCM Browser Ciphertext DecryptorDecrypt Base64 AES-256-GCM payloads using your passphrase locally.
- Bcrypt ($2a$ / $2b$) Cost 4–14 Password Hash GeneratorGenerate salted PBKDF2-HMAC-SHA256 hashes with adjustable cost iterations.
- Bcrypt Hash vs Plaintext Password VerifierVerify plaintext passwords securely against generated salted hashes offline.