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.
Processed in your browser — data stays on your device
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
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, SHA-512).
Use it for checksums, cache keys, and debugging — your input never leaves the browser.
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
JWT Decode
Decode JWT header and payload in your browser — inspect claims without uploading tokens.
Base64 Encode Text
Encode plain text notes, messages, and Unicode strings to Base64 in your browser — private and instant.
Base64 Encode JSON
Encode JSON payloads to Base64 for APIs, JWTs, and transport — decode back to UTF-8 JSON in your browser.
Base64 Encode HTML
Encode HTML fragments and markup to Base64 for data URLs, emails, and embeds — decode back in your browser.
Explore more
Guides & articles
Privacy model (client-side tools)
How Tools by RS Roshi 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.