Hash Generator
Client-sidePopularFeaturedNewGenerate SHA-1 / SHA-256 / SHA-384 / SHA-512 digests of text with Web Crypto - fully client-side.
Hash Generator computes SHA-1, SHA-256, SHA-384, or SHA-512 digests of text in your browser with Web Crypto. Digests are not encryption.
Examples
Key takeaways
- SHA-1 and SHA-2 family via SubtleCrypto
- Hex digest output
- Input stays in the browser
- Not a substitute for password hashing KDFs
What is a cryptographic hash?
A hash function maps input to a fixed-length digest. Small input changes produce very different outputs; the original input cannot be recovered from the digest alone.
Hashes are for integrity checks and fingerprints, not confidentiality. Do not store passwords as raw SHA digests - use a dedicated password KDF. MD5 is not offered here because Web Crypto does not expose it.
Features
Multiple algorithms
Switch between SHA-1 and the SHA-2 family in one workspace.
Hex output
Lowercase hexadecimal digests ready for configs and comparisons.
Input limits
Enforces shared character limits to keep the tab responsive.
Private by default
Hashing stays on-device via SubtleCrypto.
How it works
Paste text
Enter the string you want to hash (UTF-8 bytes).
Pick an algorithm
Choose SHA-1, SHA-256, SHA-384, or SHA-512.
Hash & copy
Generate the digest and copy the hex string.
Example walkthroughs
Hello
SHA-256 of “hello” is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.
hello
Pangram
A longer ASCII sample - SHA-256 is d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 when the algorithm is set to SHA-256.
The quick brown fox jumps over the lazy dog
Supported algorithms
| Algorithm | Digest size (bits) | Typical use |
|---|---|---|
| SHA-1 | 160 | Legacy checksums only |
| SHA-256 | 256 | Common integrity / fingerprints |
| SHA-384 | 384 | Higher-security SHA-2 |
| SHA-512 | 512 | Higher-security SHA-2 |
Use cases
Cache keys
Derive stable keys from request bodies or query strings.
Integrity checks
Compare digests when verifying copied payloads.
Debug pipelines
Confirm hashing matches between services during local testing.
Code snippets
SHA-256 with Web Crypto
jsHash Generator uses SubtleCrypto the same way for SHA algorithms.
const data = new TextEncoder().encode(text); const digest = await crypto.subtle.digest("SHA-256", data); const hex = [...new Uint8Array(digest)] .map((b) => b.toString(16).padStart(2, "0")) .join("");
Common errors
Digest does not match another service
Cause: Different algorithms, encodings, or trailing newlines in the input.
Fix: Confirm UTF-8 text, trim consistently, and match SHA-1 vs SHA-256.
Looking for MD5
Cause: Web Crypto does not expose MD5.
Fix: Prefer SHA-256 for new work; MD5 is intentionally not offered here yet.
About Hash Generator
Hash Generator computes cryptographic digests of text using the Web Crypto API - SHA-1, SHA-256, SHA-384, or SHA-512 - and prints lowercase hex ready for configs and comparisons. Use it for checksums, cache keys, and cross-service debugging.
Hashes are one-way fingerprints, not encryption. Small input changes produce very different outputs; you cannot recover the original text from the digest alone. Do not store passwords as raw SHA digests - use a dedicated password KDF. MD5 is intentionally omitted because Web Crypto does not expose it.
Digest computation stays in the browser via SubtleCrypto. Paste request bodies or fixture strings without uploading them to a hosted hash site. Match encodings carefully: trailing newlines and UTF-8 vs other encodings are common reasons two “identical” strings disagree.
Best practice: prefer SHA-256 or stronger for new integrity checks; treat SHA-1 as legacy only. Align algorithm and normalization with the other service before debugging mismatches. Use UUID Generator for random IDs and Base64 when you need reversible encoding instead of a digest.
Frequently asked questions
Is hashing encryption?
No. Hashes are one-way digests. Do not use raw SHA for password storage without a proper KDF.
Why no MD5?
Web Crypto does not expose MD5. Prefer SHA-256+ for new work; MD5 may arrive later via a pure implementation if needed.
Is my text uploaded?
No. Digests are computed in your browser with SubtleCrypto.
Related tools
Popular tools
JSON Formatter
Format, beautify, and minify JSON in your browser. Free, private, and instant - no upload to a server.
JSON Validator
Validate JSON instantly in your browser. See type, size, and node counts - or exact parse errors with line and column.
JSON Viewer
Explore JSON as an interactive tree with paths, types, and expandable nodes - all processed locally in your browser.
URL Encode / Decode
Percent-encode text for URLs or decode encoded query strings - private and instant.
Newest tools
HTML Email Preview
Preview HTML email with estimated client compatibility - private sandbox, no upload.
Gmail Email Preview
Preview HTML email with Gmail-focused estimated compatibility checks - private browser sandbox.
Outlook Email Preview
Preview HTML email with Outlook-focused estimated warnings for Word-based rendering risks.
Email Dark Mode Tester
Test HTML email dark-mode risks with light/dark preview chrome and color heuristics - private and client-side.
Explore more
Guides & articles
Privacy model (client-side tools)
How Toolverse by RS handles data: browser-first processing, what we do not upload, and how that claim maps to product behavior.
SHA digests on the RS Roshi blog
Checksum and digest guidance related to sha digests.
Privacy & client-side hashing
How digests stay on-device with Web Crypto.