Hash Generator
Client-sidePopularFeaturedNewGenerate SHA-1 / SHA-256 / SHA-384 / SHA-512 digests of text with Web Crypto — fully client-side.
O Gerador de Hash calcula digests criptográficos de texto (SHA-1 a SHA-512) no seu navegador com SubtleCrypto. O texto não é enviado a um servidor.
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
O Gerador de Hash calcula digests criptográficos de texto com a Web Crypto API — SHA-1, SHA-256, SHA-384 ou SHA-512 — e imprime hex em minúsculas pronto para configs e comparações. Use para checksums, chaves de cache e depuração entre serviços.
Hashes são impressões digitais unidirecionais, não criptografia. Pequenas mudanças na entrada produzem saídas muito diferentes; você não recupera o texto original só com o digest. Não armazene senhas como digests SHA crus — use um KDF de senha dedicado. MD5 é omitido de propósito porque o Web Crypto não o expõe.
O cálculo do digest fica no navegador via SubtleCrypto. Cole corpos de requisição ou strings de fixture sem enviá-los a um site de hash hospedado. Alinhe bem as codificações: quebras de linha finais e UTF-8 versus outras encodings são motivos comuns de discordância entre duas strings “idênticas”.
Boa prática: prefira SHA-256 ou mais forte para novas verificações de integridade; trate SHA-1 só como legado. Alinhe algoritmo e normalização com o outro serviço antes de depurar divergências. Use o Gerador de UUID para IDs aleatórios e Base64 quando precisar de codificação reversível em vez de um digest.
Frequently asked questions
Hash é criptografia?
Não. Hashes são digests unidirecionais. Não use SHA cru para armazenar senhas sem um KDF adequado.
Por que não tem MD5?
Web Crypto não expõe MD5. Prefira SHA-256+ para trabalho novo; MD5 pode chegar depois via implementação pura se necessário.
Meu texto é enviado?
Não. Os digests são calculados no seu navegador com SubtleCrypto.
Quais algoritmos estão disponíveis?
SHA-1, SHA-256, SHA-384 e SHA-512. Escolha o que bater com a outra ponta do seu pipeline.
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
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
Word Counter
Count words, characters, sentences, and paragraphs with reading time — live and private.
Text Diff
Compare two texts line by line — see added and removed lines with a unified-style diff.
Slug Generator
Turn titles into clean, SEO-friendly URL slugs — lowercase, hyphenated, accents stripped.
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.