JWT Decoder
Paste a three-part JWT to decode its header and payload, view the signature string, and check expiration when an exp claim is present. This is an inspection tool only; it does not verify the token signature.
How to Use JWT Decoder
- Copy your JWT token from your application, API response, or browser developer tools.
- Paste the token into the text area. The decoder processes it automatically as you type.
- View the decoded header, payload, and signature. If an expiration claim is present, the tool shows whether the token is still valid.
How It Works: JSON Web Token Architecture & RFC 7519 Decoding
What is a JSON Web Token (JWT)?
A JSON Web Token (JWT) is a compact, URL-safe container format defined by RFC 7519 specification that securely transmits cryptographic claims between parties as a JSON object. It consists of three base64url-encoded segments separated by dots: a JOSE header, a payload of claims, and a cryptographic signature claims verification segment.
How It Works in the Browser
AnyConverter unpacks and inspects tokens entirely on the client side using standard cryptographic string decoding without secret exposure:
- Segment Splitting: The compact string is validated and split into its three constituent segments:
header.payload.signature. - Base64URL Decoding & Normalization: Each segment undergoes Base64URL decoding, converting from URL-safe Base64URL to standard Base64 by substituting
-with+,_with/, and calculating required=padding. - Binary UTF-8 Deserialization: Decoded bytes are converted through a UTF-8 decoder and parsed into typed JSON objects via
JSON.parse(). - Cryptographic Signature Claims & Timestamps: Standard cryptographic signature claims (
iss,sub,aud,exp,nbf,iat,jti) are parsed from Unix epoch seconds into human-readable ISO 8601 timestamps with active expiration status flags.
Key Specifications & Claim Definitions
The decoder implements specifications from RFC 7519 specification (JWT), RFC 7515 (JSON Web Signature / JWS), and RFC 7516 (JSON Web Encryption / JWE). It performs Base64URL decoding on standard cryptographic signature claims including iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not before), iat (issued at), and jti (JWT ID). All decoding executes locally in browser memory, ensuring sensitive auth tokens and private credentials are never leaked.
Features
- Decodes any standard JWT with three Base64url-encoded parts
- Pretty-prints header and payload as formatted JSON
- Automatic expiration check with color-coded valid/expired indicator
- Real-time decoding as you type or paste
- Clear error messages for malformed tokens
- Decodes with JavaScript in the browser tab
- Decoder only: signature verification must happen in your application or auth system
JWT Decoder: inspect header, payload, and exp
Use JWT Decoder to inspect a three-part JSON Web Token by decoding its Base64url header and payload. The page also displays the signature segment and can show whether an exp claim is already expired.
Example workflow
Paste a token from an API response, read the formatted payload claims, and check the expiration status. Treat the decoded values as readable data, not proof that the token is valid or trusted.
Limits to check
- Token shape: The decoder expects exactly three dot-separated JWT parts.
- Signature: The signature string is shown but not verified.
- Trust: Verify the signature with the correct key in your application or authentication system before relying on the token.
For the next step, try JSON Formatter & Validator, Regex Tester & Log Extractor, Base64 Encoder & Decoder, Hash Generator.