Hash Generator Converter
Compute SHA-1, SHA-256, SHA-384 and SHA-512 digests.
Text
Digest
About the Hash Generator converter
A cryptographic hash turns any input into a fixed-length fingerprint. The same input always gives the same digest, and changing a single character changes the result completely.
Hashing here uses the Web Crypto API, the browser's native implementation, so it is both fast and correct.
Which algorithm
SHA-256 is the sensible default for integrity checks and fingerprints. SHA-384 and SHA-512 give longer digests with no practical downside beyond size.
SHA-1 is included because it is still used for Git object IDs and legacy checksums, but it is broken for security purposes — practical collisions have been demonstrated. Never use it to verify anything an attacker could influence.
Hashing is not password storage
A plain SHA digest is far too fast to protect a password: modern hardware computes billions per second, so a leaked table falls quickly to a brute-force attack.
Passwords need a deliberately slow, salted algorithm — Argon2id, scrypt or bcrypt. Those are not offered here, because they belong on your server and not in a browser tab.
Frequently asked questions
Can I hash a file?
Not in this tool yet. For file checksums use shasum on macOS or Linux, or Get-FileHash in PowerShell.
Why is MD5 not offered?
The Web Crypto API does not implement it, deliberately. MD5 has been considered broken for two decades.
Does the text leave my browser?
No. Web Crypto runs locally. Note that it requires a secure context, so the tool needs https or localhost.