Hash Generator
Generate cryptographic hashes using SHA-1, SHA-256, SHA-384, and SHA-512. All computation happens locally via Web Crypto API.
About the Hash Generator
This hash generator runs entirely in your browser. Paste any text into the box above and click Generate Hash to compute SHA-1, SHA-256, SHA-384, and SHA-512 hashes simultaneously. All computation is performed locally with the Web Crypto API — your input never leaves your device.
What is a hash function?
A cryptographic hash function takes arbitrary input and produces a fixed-size string of bytes called a digest or hash. A good hash function is deterministic (same input always produces same output), fast to compute, infeasible to invert, and resistant to collisions (different inputs rarely produce the same hash). Even a one-bit change in the input causes a completely different output — the avalanche effect.
The SHA family
- SHA-1 — Produces a 160-bit (40 hex character) digest. Originally designed by the NSA. No longer considered secure against collision attacks; do not use for security-sensitive applications.
- SHA-256 — Produces a 256-bit (64 hex character) digest. Part of SHA-2 family. Widely used in TLS, Bitcoin, code signing, and digital certificates.
- SHA-384 — Produces a 384-bit (96 hex character) digest. A truncated variant of SHA-512 with different initial values.
- SHA-512 — Produces a 512-bit (128 hex character) digest. Designed for 64-bit platforms and high-security contexts.
Common use cases
- Data integrity — Verify a file or message has not been altered by comparing hashes before and after transmission.
- Password storage — Store hashes of passwords instead of plaintext. (For real applications, use a slow KDF like bcrypt, scrypt, or Argon2 rather than plain SHA.)
- File verification — Checksum downloads against published SHA-256 values to detect corruption or tampering.
- Digital signatures — Hash documents before signing for efficiency and security.
- Content addressing — Git, IPFS, and similar systems use hashes as unique identifiers for content.
Frequently asked questions
Are hashes reversible? No. Cryptographic hashes are one-way functions. You cannot recover the input from the hash, only verify whether a given input produces that hash.
Is my input sent to a server? No. All hashing happens locally through your browser's Web Crypto API. Nothing is uploaded.
Can I hash files with this tool? This version hashes text input only. For files, you would read them as an ArrayBuffer and pass them to crypto.subtle.digest.
Which algorithm should I use? For new applications, use SHA-256 or SHA-512. SHA-1 is deprecated for security use due to known collision vulnerabilities.