JWT Decoder
Paste a JSON Web Token below to decode its header, payload, and signature. Check expiration status instantly — everything runs in your browser.
How to Use the JWT Decoder
JSON Web Tokens (JWTs) are the industry-standard method for securely transmitting information between parties as compact, URL-safe tokens. They are widely used for authentication, authorization, and information exchange in modern web applications, APIs, and microservices. This free online JWT decoder lets you quickly inspect the contents of any JWT without writing code or installing tools.
- Paste your token: Copy a JWT from your browser's developer tools, API response, authorization header, or server logs and paste it into the input field.
- Click Decode: The tool splits the token into its three parts and Base64URL-decodes the header and payload, displaying them as formatted, syntax-highlighted JSON.
- Check expiration: If the payload contains an
expclaim, the tool shows whether the token is currently valid or expired, along with the exact expiration date and time. - Inspect claims: Review the payload claims such as
sub(subject),iss(issuer),iat(issued at), and any custom claims your application uses.
Understanding JWT Structure
A JWT is composed of three Base64URL-encoded sections separated by dots (.):
| Part | Contains | Example Fields |
|---|---|---|
| Header | Algorithm & token type | alg: HS256, typ: JWT |
| Payload | Claims (data) | sub, exp, iat, roles |
| Signature | Verification hash | HMAC-SHA256 or RSA signature |
Common JWT Claims
| Claim | Name | Description |
|---|---|---|
iss | Issuer | Who issued the token (e.g. your auth server) |
sub | Subject | The user or entity the token represents |
aud | Audience | Intended recipient of the token |
exp | Expiration | Unix timestamp after which the token is invalid |
iat | Issued At | Unix timestamp when the token was created |
nbf | Not Before | Unix timestamp before which the token is not valid |
jti | JWT ID | Unique identifier to prevent token replay |
Security Considerations
JWTs are not encrypted by default — they are only signed. Anyone with the token can decode and read the header and payload. Never store sensitive secrets like passwords or credit card numbers inside a JWT payload. Always transmit JWTs over HTTPS, set reasonable expiration times, and validate signatures on your server before trusting the claims. Use refresh tokens to allow short-lived access tokens that minimize the window of exposure if a token is compromised.
Frequently Asked Questions
How do I decode a JWT token?
Paste your JWT into the input textarea and the tool instantly splits it into its three parts — header, payload, and signature. The header and payload are Base64URL-decoded and displayed as formatted JSON with syntax highlighting. The signature section shows the algorithm used and raw signature data.
Is it safe to paste my JWT here?
Yes. This tool runs entirely in your browser. Your JWT is never sent to any server. However, remember that JWTs often contain sensitive information such as user IDs, roles, and email addresses, so avoid sharing them publicly regardless of the tool you use.
What does the expiration status mean?
JWTs often include an 'exp' (expiration) claim in their payload. This tool compares that timestamp to the current time and displays whether the token is still valid, has expired, or has no expiration set. An expired token will typically be rejected by the server.
Can this tool verify a JWT signature?
This tool decodes and displays JWTs but does not verify the cryptographic signature. Signature verification requires the secret key or public key used to sign the token, which should remain on your server. Use this tool for inspection and debugging, not for security validation.
What are the three parts of a JWT?
A JWT consists of three Base64URL-encoded parts separated by dots: the Header (specifying the algorithm and token type), the Payload (containing claims like user data and expiration), and the Signature (a cryptographic hash ensuring the token has not been tampered with).