JWT Decode
Client-sidePopularFeaturedNewDecode JWT header and payload in your browser — inspect claims without uploading tokens.
Decodificar JWT inspeciona o header e o payload de um JSON Web Token no seu navegador. A assinatura não é verificada e o token não é enviado a um 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 inspeciona o header e o payload de um JSON Web Token para depurar fluxos de auth, expiração, audience e claims personalizados sem sair do navegador. Cole tokens compactos de DevTools, logs ou headers Authorization (prefixos Bearer são removidos).
Decodificar não é verificar. O segmento de assinatura aparece apenas como metadados — nunca trate exp, roles ou outros claims de um token não verificado como autoritativos em lógica de produção. JWTs criptografados (JWE) e strings de sessão opacas estão fora do escopo; esta página foca em formas JWS compactas.
Tokens são decodificados localmente. Isso reduz o risco de colar credenciais de produção em um decoder de terceiros, embora você ainda deva evitar máquinas compartilhadas e compartilhamento de tela quando os tokens estiverem ativos. Combine com o Formatador JSON quando quiser reformatar um blob de payload copiado.
Boa prática: confirme algoritmo e emissor na sua biblioteca de auth, não aqui. Use ferramentas Base64 para experimentos ad hoc com segmentos, e Gerador de Hash só ao comparar digests — não como substituto da verificação de assinatura. Prefira tokens de curta duração e rotacione qualquer um que possa ter sido exposto.
Frequently asked questions
Isso verifica a assinatura?
Não. Apenas decodifica. Nunca confie em claims de um token não verificado em lógica de produção.
Meu JWT é enviado?
Não. A decodificação roda no navegador. Ainda assim evite colar segredos de produção em máquinas compartilhadas.
E JWTs criptografados (JWE)?
Esta ferramenta foca em JWS compacto (três segmentos). Tokens criptografados não são suportados.
Posso colar “Authorization: Bearer …”?
Sim. O prefixo Bearer é removido automaticamente antes de decodificar o 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.