Decodificador de JWT
Codificação e Criptografia · Ferramenta online gratuita
Decodificar tokens JWT e inspecionar cabeçalho e payload.
Estrutura de Três Partes
Um JWT é cabeçalho.payload.assinatura, cada um codificado em base64url. Esta ferramenta divide e decodifica os três.
Claims de Tempo
As claims padrão exp, iat e nbf são exibidas como datas legíveis com status de validade.
Apenas Decodificação
Esta ferramenta decodifica e exibe o token — ela não verifica a assinatura. Nunca confie em claims sem verificar primeiro.
Como usar Decodificador de JWT
- 1Enter or paste your data into the input field.
- 2Select the desired encoding, hashing, or encryption options.
- 3Click the action button to process your data.
- 4Copy the result from the output field.
Recursos
- ✓100% gratuito — sem cadastro, sem assinatura, sem anúncios
- ✓Funciona inteiramente no navegador — seus dados nunca saem do seu dispositivo
- ✓Rápido e leve — resultados instantâneos
- ✓Multiplataforma — funciona em computador, tablet e celular
O que é Decodificador de JWT?
JSON Web Token (JWT), defined by RFC 7519, is a compact, URL-safe token format for securely transmitting claims between parties. A JWT consists of three Base64URL-encoded parts separated by dots: Header.Payload.Signature. It is widely used for API authentication, OAuth 2.0, and SSO.
Como funciona Decodificador de JWT?
The Header specifies the signing algorithm (e.g., HS256, RS256). The Payload contains claims (registered, public, private) — statements about an entity. The Signature is computed over the encoded Header and Payload using the algorithm and a secret/private key. To verify, recompute the signature and compare.
Casos de uso comuns
- ✓API authentication — bearer tokens in Authorization headers
- ✓OAuth 2.0 — access tokens and ID tokens
- ✓SSO — share identity across multiple services
- ✓Stateless sessions — store user info without server-side sessions
JWT vs Session Cookies
Sessions store state server-side; JWTs are stateless and self-contained. JWTs scale better (no session store) but are harder to revoke before expiry. Sessions are more secure for sensitive apps (can revoke instantly); JWTs suit distributed/microservice architectures. Always use HTTPS for both.
Segurança e privacidade
This tool decodes JWTs locally in your browser — your token never leaves your device. IMPORTANT: Decoding a JWT only reads its contents; it does NOT verify the signature. Never trust JWT claims without server-side signature verification. JWTs are visible to anyone who intercepts them — use HTTPS.
Detalhes técnicos
Standard: RFC 7519. Structure: Base64URL(Header).Base64URL(Payload).Base64URL(Signature). Header: alg (HS256/RS256/ES256/none), typ. Registered claims: iss (issuer), sub (subject), aud (audience), exp (expiry), nbf (not before), iat (issued at), jti (JWT ID). Signature: HMAC(SHA-256) for HS256, RSA for RS256. 'alg: none' tokens must always be rejected.
Perguntas frequentes
Is decoding a JWT the same as verifying it?
No. Decoding reads the payload; verification checks the signature cryptographically. Anyone can decode a JWT; only the server with the secret can verify it. Never trust unverified JWT claims.
What is the 'alg: none' vulnerability?
If a server accepts 'alg: none' tokens, attackers can forge tokens without a signature. Always reject 'none' algorithm and use a hardcoded allowed-algorithms list.
How long should a JWT live?
Access tokens: 15-60 minutes. Refresh tokens: days to weeks. Short-lived access tokens limit damage if leaked. Use refresh tokens to maintain sessions.
Ferramentas relacionadas
Base64
Codificar e decodificar Base64 com suporte a UTF-8.
Codificador de URL
Codificar e decodificar URLs com percent-encoding.
Conversor de Unicode
Converter texto para escapes Unicode e vice-versa.
Entidade HTML
Codificar e decodificar entidades HTML.
Conversor de Base Numérica
Converter entre binário, octal, decimal e hexadecimal.
Gerador de Hash
Gerar hashes MD5, SHA-1, SHA-256, SHA-512.