Hash Generator
Client-sidePopularFeaturedNewGenerate SHA-1 / SHA-256 / SHA-384 / SHA-512 digests of text with Web Crypto — fully client-side.
El Generador de Hash calcula digests criptográficos de texto (SHA-1 a SHA-512) en tu navegador con SubtleCrypto. El texto no se sube a un 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
El Generador de Hash calcula digests criptográficos de texto con la Web Crypto API — SHA-1, SHA-256, SHA-384 o SHA-512 — e imprime hex en minúsculas listo para configs y comparaciones. Úsalo para checksums, claves de caché y depuración entre servicios.
Los hashes son huellas unidireccionales, no cifrado. Pequeños cambios de entrada producen salidas muy distintas; no puedes recuperar el texto original solo del digest. No almacenes contraseñas como digests SHA en bruto — usa un KDF de contraseñas dedicado. MD5 se omite a propósito porque Web Crypto no lo expone.
El cálculo del digest se queda en el navegador vía SubtleCrypto. Pega cuerpos de petición o cadenas de fixture sin subirlos a un sitio de hash alojado. Alinea bien las codificaciones: saltos de línea finales y UTF-8 frente a otras codificaciones son motivos habituales de desacuerdo entre dos cadenas “idénticas”.
Buena práctica: prefiere SHA-256 o superior para nuevas comprobaciones de integridad; trata SHA-1 solo como legado. Alinea algoritmo y normalización con el otro servicio antes de depurar desajustes. Usa el Generador UUID para IDs aleatorios y Base64 cuando necesites codificación reversible en lugar de un digest.
Frequently asked questions
¿Hashear es cifrar?
No. Los hashes son digests unidireccionales. No uses SHA en bruto para almacenar contraseñas sin un KDF adecuado.
¿Por qué no hay MD5?
Web Crypto no expone MD5. Prefiere SHA-256+ para trabajo nuevo; MD5 podría llegar después vía una implementación pura si hace falta.
¿Se sube mi texto?
No. Los digests se calculan en tu navegador con SubtleCrypto.
¿Qué algoritmos están disponibles?
SHA-1, SHA-256, SHA-384 y SHA-512. Elige el que coincida con el otro extremo de tu 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.