JWT Decode
Client-sidePopularFeaturedNewDecode JWT header and payload in your browser — inspect claims without uploading tokens.
Decodificar JWT inspecciona el header y el payload de un JSON Web Token en tu navegador. La firma no se verifica y el token no se sube a un servidor.
Examples
Key takeaways
- Decode header and payload locally
- Shows iat / exp / nbf as ISO times when present
- Signature is not verified
- Tokens are not uploaded
What is a JWT?
A JSON Web Token is a compact, Base64URL-encoded structure (typically header.payload.signature) used to carry claims between parties.
Decoding reads the JSON segments. Verification checks the signature with a key and algorithm. This page only decodes. Never trust exp, roles, or other claims from an unverified token in production logic.
Features
Header & payload JSON
Pretty-prints decoded segments with algorithm and claim fields.
Claim helpers
Shows issued-at, expiry, and not-before as ISO timestamps when present.
Bearer prefix tolerant
Paste Authorization: Bearer … values; the prefix is stripped.
Private by default
Tokens stay on your device — never POSTed to a server.
How it works
Paste a JWT
Use a compact token (header.payload.signature) from logs or DevTools.
Decode
Base64URL segments are decoded to JSON. Signature bytes are not verified.
Inspect claims
Review alg, sub, exp, and custom claims in the formatted output.
Example walkthroughs
Sample HS256-shaped token
Decodes a classic demo token into header, payload, and signature metadata.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE5MTYyMzkwMjJ9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Issuer and audience claims
Shows iss, aud, iat, and exp style claims — still display-only; signature is not verified.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20iLCJzdWIiOiJ1c2VyXzQyIiwiYXVkIjoiYXBpLnJzcm9zaGkuZGV2IiwiaWF0IjoxNzAwMDAwMDAwLCJleHAiOjE4MDAwMDAwMDB9.demo-signature-not-verified
Common JWT registered claims
| Claim | Meaning |
|---|---|
| iss | Issuer |
| sub | Subject (who the token is about) |
| aud | Audience |
| exp | Expiration time (Unix seconds) |
| nbf | Not-before time |
| iat | Issued-at time |
| jti | JWT ID |
Use cases
Debug auth failures
Confirm expiry and audience claims when APIs return 401.
Inspect SSO cookies
Read payload fields from session JWTs during local development.
Document APIs
Show example claim shapes in internal runbooks.
Code snippets
Split a compact JWT
jsJWT Decode performs this split and pretty-prints header + payload.
const [header, payload] = token.split("."); // decode each Base64URL segment → JSON
Common errors
Invalid JWT format
Cause: The token is missing segments or is a JWE / opaque string.
Fix: Paste a compact JWS with header.payload.signature (two or three parts).
Claims look trusted but auth still fails
Cause: This tool does not verify signatures.
Fix: Validate signatures with your auth library; use decode only for inspection.
About JWT Decode
Decodificar JWT inspecciona el header y el payload de un JSON Web Token para depurar flujos de autenticación, caducidad, audiencia y claims personalizados sin salir del navegador. Pega tokens compactos desde DevTools, logs o cabeceras Authorization (se eliminan los prefijos Bearer).
Decodificar no es verificar. El segmento de firma se muestra solo como metadatos: nunca trates exp, roles u otros claims de un token no verificado como autoritativos en lógica de producción. Los JWT cifrados (JWE) y las cadenas de sesión opacas quedan fuera de alcance; esta página se centra en formas JWS compactas.
Los tokens se decodifican en local. Eso reduce el riesgo de pegar credenciales de producción en un decoder de terceros, aunque aún debes evitar máquinas compartidas y pantallas compartidas cuando los tokens estén vivos. Combínalo con el Formateador JSON cuando quieras reformatear un blob de payload copiado.
Buena práctica: confirma algoritmo e emisor en tu biblioteca de autenticación, no aquí. Usa herramientas Base64 para experimentos ad hoc con segmentos, y Generador de Hash solo al comparar digests — no como sustituto de la verificación de firma. Prefiere tokens de corta duración y rota cualquiera que pueda haberse expuesto.
Frequently asked questions
¿Esto verifica la firma?
No. Solo decodifica. Nunca confíes en claims de un token no verificado en lógica de producción.
¿Se sube mi JWT?
No. La decodificación se ejecuta en tu navegador. Aun así evita pegar secretos de producción en máquinas compartidas.
¿Qué pasa con los JWT cifrados (JWE)?
Esta herramienta se centra en JWS compacto (tres segmentos). Los tokens cifrados no están soportados.
¿Puedo pegar “Authorization: Bearer …”?
Sí. El prefijo Bearer se elimina automáticamente antes de decodificar el token compacto.
Related tools
UUID Generator
Generate UUID v4 identifiers in bulk — uppercase and hyphenless options, fully client-side.
Barcode Generator
Generate Code128, EAN, UPC, Code39, and QR barcodes as PNG in your browser.
Regex Tester
Test JavaScript regular expressions against sample text — matches and groups, private in your browser.
Timestamp Converter
Convert Unix timestamps to dates and back — seconds, milliseconds, and ISO strings in your browser.
Markdown Preview
Preview Markdown as HTML in your browser — private drafts, no upload.
Base64 Encode / Decode
Encode UTF-8 text to Base64 or decode Base64 back to text — instantly in your browser.
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
How to decode a JWT safely (without trusting claims)
Inspect JWT header and payload in your browser. Learn why decoding is not verification, and which claims matter when debugging auth.
Keyboard shortcuts
Common keyboard shortcuts for Toolverse by RS workspaces — format, copy, reset, and global search.
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.
JWT inspection notes on the RS Roshi blog
Practical write-ups around jwt inspection.
Platform documentation
Shortcuts, limits, and how client-side tools work.