64 hexadecimal characters for SHA-256, 96 for SHA-384 or 128 for SHA-512. The exact UTF-8 bytes determine the result.
BROWSER UTILITIES · FREE JAVASCRIPT TOOL
SHA Hash & Checksum Generator
Generate SHA-256, SHA-384 or SHA-512 checksums for text using the browser cryptography API.
Ready in your browser
Your processed result will appear here.
A WORKED TASK
Check exact text using a SHA digest
Choose an algorithm and process a short text string twice. The digests should match exactly. Then change one letter or add a newline. The new digest should differ. For a known test, SHA-256 of abc is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
This page hashes text with Web Crypto. It does not encrypt, sign or recover data and is not a password-hashing service. A digest does not certify that code is harmless.
What to check
- Whitespace, case and line endings matter.
- A checksum from an untrusted source does not authenticate the same source’s data.
- Use the separate file-capable hash tool in the Python collection for hashing binary files.
TESTED & REVIEWED
Know what this tool does—and where to double-check
- Reviewed by
- HTML Online Viewer project
- Last reviewed
- Processing
- Ordinary processing happens in this browser tab; the tool does not intentionally upload your source.
- Important limitation
- JavaScript checks and transformations cannot prove that application logic is correct. Test the result in its real project before publishing.
PRACTICAL EXAMPLE
Start with a small JS Hash Generator example
The built-in sample makes the accepted input visible before you use your own project data.Example input
HTML Online Viewer JavaScript toolsRun the sample first, then change one value at a time so each result remains easy to explain.
What this example demonstrates
Generate SHA-256, SHA-384 or SHA-512 checksums for text using the browser cryptography API.
Keep the original file, review the generated result and test production code in its real application before publishing.
COMMON QUESTIONS
JS Hash Generator FAQ
Is JS Hash Generator free?
Yes. It is free to use and requires no account.
Does JS Hash Generator upload my source?
No. Ordinary processing happens locally in the current browser. The JavaScript runner uses a short-lived isolated browser worker.
Can I import and export a file with JS Hash Generator?
Yes. Import a relevant JavaScript, JSON or text file, then save the input or processed result.