Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text. Shows all four algorithms at once in hex or Base64 — powered by the Web Crypto API.
Enter text and generate hashes
A cryptographic hash turns arbitrary input into a fixed-length digest. The same input always produces the same result, while a tiny input change produces a substantially different digest.
| Algorithm | Digest size | Guidance |
|---|---|---|
| SHA-1 | 160 bits | Legacy integrity checks only |
| SHA-256 | 256 bits | General integrity and signatures |
| SHA-384 | 384 bits | Higher security margin |
| SHA-512 | 512 bits | Large security margin |
const bytes = new TextEncoder().encode("hello");
const digest = await crypto.subtle.digest("SHA-256", bytes);
Hex is convenient for logs and checksums. Base64 is shorter for transport. Hashing is not encryption: digests are not designed to be decrypted, and passwords require a salted password-hashing function such as Argon2 or bcrypt.
The tool calls the browser Web Crypto API. Text is not uploaded or stored by this page.
This tool is provided for general informational and utility purposes only. Results may be inaccurate, incomplete, outdated, or contain errors. Always verify results before relying on or using them.
Some tools may use AI, automated processing, third-party services, or server-side processing. Do not rely on these tools as a substitute for professional advice.
Use at your own risk. BestToolOnline makes no guarantees regarding the accuracy, reliability, completeness, availability, or suitability of results, to the maximum extent permitted by applicable law.
See our Terms of Service and Privacy Policy for complete details.