JWT Decoder
Instantly decode and inspect JSON Web Token (JWT) headers, payload claims, and expiration timestamps directly in your browser without exposing tokens.
Detalhamento do Cálculo
Sobre JWT Decoder
A JSON Web Token (JWT, defined in RFC 7519) is a compact, URL-safe means of representing claims to be transferred between two parties. JWTs are widely used in modern web applications, microservices, and mobile backends for stateless user authentication and authorization.
A JWT consists of three distinct parts separated by dots ("."): the Header (specifying the token type and cryptographic algorithm like HS256 or RS256), the Payload (containing claims such as user ID, role, and expiration timestamp), and the Signature (used to verify that the sender is who it says it is and to ensure that the message wasn't changed along the way).
Important Security Distinction: Decoding a JWT simply unpacks the Base64URL-encoded JSON payload so you can inspect claims. Merely decoding a token DOES NOT verify its cryptographic signature or prove authenticity. True verification requires the secret HMAC key or public RSA/ECDSA key on a trusted server.
Como usar esta ferramenta
- Insira o texto ou valor no campo de entrada.
- Configure as opções ou direções de conversão conforme desejado.
- O resultado convertido é gerado instantaneamente em tempo real.
- Clique no botão Copiar para salvar o resultado.
Structure of a JSON Web Token
A standard JWT appears in the compact serialized format: xxxxx.yyyyy.zzzzz
Part 1: Header — Base64URL-encoded JSON containing algorithm (alg) and token type (typ).
Part 2: Payload — Base64URL-encoded JSON containing standard claims (iss, sub, exp, nbf, iat) and custom user metadata.
Part 3: Signature — Cryptographic hash computed by taking the encoded header, encoded payload, a secret key, and passing them through the specified algorithm (e.g., HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)).
JWT Decoding Examples
Decoded Header
Algorithm and token type specification.
Decoded Payload Claims
Standard authentication claims showing user identity and timestamp.
Decoding vs Verification Clarification
- Decoding vs Verification: Decoding reveals the JSON claims inside a token, but it CANNOT verify whether the token was signed with a legitimate secret key. Never trust an unverified token in a backend security check.
- All decoding runs 100% locally in browser memory. Sensitive bearer tokens and session keys are never transmitted to any external server.