Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text instantly, with clean lowercase hex output. Free, fast and private: your data never leaves your device.
How to generate a hash online
- Type or paste your text into the box above.
- Pick an algorithm — SHA-256, SHA-512, SHA-384 or SHA-1 — from the dropdown.
- The lowercase hex digest updates live; click Copy to grab it or Clear to start over.
Why use a hash generator?
Hashing turns any text into a fixed-length fingerprint, so it is perfect for verifying file integrity, building checksums, comparing values, or storing non-reversible tokens. A SHA-256 or SHA-512 hash will change completely if even one character differs, which makes it ideal for detecting tampering or accidental corruption. Because everything runs in your browser with the native WebCrypto engine, even sensitive strings such as API payloads or config secrets stay on your machine and are never sent over the network.
Choosing an algorithm: SHA-1 vs SHA-256 vs SHA-512
All four options produce a deterministic hex digest, but they differ in digest length and security posture. For anything new, prefer SHA-256 — it is the modern default for checksums, Git object IDs, TLS certificates and content addressing. Step up to SHA-512 when you want a larger digest and slightly better performance on 64-bit hardware. Reach for SHA-1 only when you must match a legacy system; it is considered broken for collision resistance and should not be used for new security work.
| Algorithm | Digest size | Hex chars | Recommended for |
|---|---|---|---|
| SHA-256 | 256-bit | 64 | Default choice — checksums, integrity, fingerprints |
| SHA-512 | 512-bit | 128 | High-assurance hashing, fast on 64-bit CPUs |
| SHA-384 | 384-bit | 96 | Truncated SHA-512; common in TLS suites |
| SHA-1 | 160-bit | 40 | Legacy compatibility only — avoid for security |
Common use cases
- Verify a download. Hash a file's text or paste the published value to confirm a SHA-256 checksum matches before you trust an artifact.
- Detect changes. Store a digest of a config file or document and re-hash later — any difference flags tampering or corruption.
- Cache keys & deduplication. Use a hash as a stable, fixed-length key for caching, content addressing or spotting duplicate records.
- Idempotency & signatures. Generate request fingerprints for idempotency keys or to feed into webhook signature checks.
Tips & gotchas
Hashes are case-sensitive in input but rendered as lowercase hex here, matching sha256sum and Git. Watch invisible differences: a trailing newline, a space, or CRLF versus LF line endings will produce a completely different digest, so normalize whitespace before comparing. Hashing is one-way — there is no "decode" — and a SHA hash on its own is not encryption and not safe for storing passwords without a dedicated, salted algorithm such as bcrypt or Argon2.