Hash Generator
Generate SHA-256, SHA-384 and SHA-512 hashes from text.
On your device. Your input is not uploaded or saved.
How to generate a SHA-256 hash
- Choose SHA-256, SHA-384 or SHA-512 under Algorithm.
- Type or paste text into Text to hash. The hexadecimal digest appears as you type.
- To get the digest of an empty string, leave the field empty and press Hash empty text.
- Copy the result and compare it with the value you expect.
What a hash is
A cryptographic hash turns any input into a fixed-length fingerprint. The same text always gives the same digest, and changing a single character changes it completely. SHA-256 produces 64 hexadecimal characters, SHA-384 produces 96 and SHA-512 produces 128, all in lowercase.
The digest is calculated by your browser's Web Crypto API (crypto.subtle.digest), which only works on pages served over HTTPS or on localhost. MD5, SHA-1 and HMAC are not available in this tool.
Why doesn't my hash match?
The tool hashes the exact UTF-8 bytes of the text, including spaces, tabs and line breaks. A trailing newline is the most common cause of a mismatch: echo "text" | sha256sum hashes the text plus a newline, while echo -n or printf does not. Invisible characters copied from documents change the result too.
This tool hashes text, not files. To check a downloaded file, use sha256sum on Linux, shasum -a 256 on macOS or Get-FileHash in PowerShell.
SHA-256 is not for storing passwords
A plain SHA hash is fast, which is exactly what you do not want for passwords, because attackers can test enormous numbers of guesses. Store passwords with a slow, salted scheme such as Argon2, bcrypt or scrypt. SHA-256 is the right choice for checksums, cache keys, content addressing and comparing data without revealing it.
Where does my data go?
Your text is hashed on your device with Web Crypto. The tool never uploads or saves it.
Like the rest of the site, this page uses Google Analytics and Yandex Metrica, including Metrica session replay. Tool events report only that the tool was opened or used.
The tool area is marked so that Metrica masks what you type and the results in its session recordings.
Also useful
No third-party trackers on JZR Tools. We count anonymous visits with country, referring site and device type only.