About the JWT Decoder
Decode a JWT token and read what's inside it. Paste a JSON Web Token, such as the bearer token from an Authorization header, and the JWT decoder splits it into header, payload and signature, pretty-prints the JSON claims and tells you in plain words when the token expires or how long ago it expired.
Reach for it when a login or single sign-on flow misbehaves, or an API keeps rejecting a token. Decoding happens in your browser and the token isn't sent anywhere. That matters, because a live token can give access to an account. The signature is displayed but not verified.
How JWT decoding works
A signed JWT is three Base64url strings joined by dots: header.payload.signature. The tool trims the input, drops a Bearer prefix or quotation marks around the token, checks there are exactly three parts, then converts the first two from Base64url (the URL-safe alphabet with - and _ and no padding) to bytes, reads them as UTF-8 and parses them as JSON. Each is shown with two-space indentation and its own copy button.
If the payload has an exp claim, its value (seconds since 1 January 1970 UTC, as a number or a string of digits) is turned into a UTC date with a relative time, for example VALID, expires in 2 hours, or EXPIRED 3 days ago. iat and nbf are converted the same way, and an nbf still in the future is flagged as not yet valid. The header normally names the signing algorithm (alg, such as HS256 or RS256) and the token type (typ).
The third part is shown as the raw Base64url signature. Checking it requires the issuer's secret (for HS256) or public key (for RS256 or ES256), which this decoder doesn't ask for, so a banner reminds you it hasn't been verified. Anyone can write a token with any payload; only a server that checks the signature can trust it.
expiry date = exp × 1000 milliseconds after 1970-01-01T00:00:00Z exp 1916239022 → Sat, 21 Sep 2030 16:37:02 GMT
Assumptions and limits
- You can paste the token straight from a header or a log: a leading Authorization: or Bearer and quotation marks around the token are removed before decoding.
- Encrypted tokens (JWE) have five parts and can't be read without the key; only signed tokens with three parts are decoded.
- exp, iat (issued at) and nbf (not before) are converted to UTC dates when they hold seconds since 1970, written as a number or as a string of digits. Any other value is left in the payload as it is, and an unreadable exp is reported instead of being treated as missing.
- VALID or EXPIRED is worked out from your device's clock, so a wrong system time gives a wrong answer.
- A token with "alg": "none" and an empty third part still decodes here. If a server accepts such a token, that's a serious security bug.
Worked examples
Decode the sample JWT token
The token already in the box decodes to the header {"alg": "HS256", "typ": "JWT"} and a payload with sub 1234567890, name John Doe, iat 1516239022 (18 January 2018, 01:30:22 UTC) and exp 1916239022. The expiry line reads Sat, 21 Sep 2030 16:37:02 GMT, marked VALID with the days remaining.
Find out why an API returns 401 Unauthorized
A token whose payload is {"sub":"u_81","iss":"https://auth.example.com","aud":"api","iat":1767225600,"exp":1767229200,"role":"editor"} shows Thu, 01 Jan 2026 01:00:00 GMT (EXPIRED …) in red. exp minus iat is 3,600 seconds, so the issuer hands out one-hour tokens: the client should refresh the token rather than retry with the old one.
exp − iat = 1767229200 − 1767225600 = 3600 s = 1 hour
Registered JWT claims and how they appear
| Claim | Meaning | Shown in this decoder |
|---|---|---|
| iss | Issuer: who created and signed the token | As text in the payload |
| sub | Subject: usually the user or account ID | As text in the payload |
| aud | Audience: the API or app the token is meant for | As text or a list |
| exp | Expiration time, in seconds since 1970 (UTC) | Converted to a UTC date with VALID or EXPIRED |
| nbf | Not before: the token isn't valid until this time | Converted to a UTC date, flagged if still in the future |
| iat | Issued at: when the token was created | Converted to a UTC date with how long ago |
| jti | JWT ID: a unique value used to stop replays | As text in the payload |
How to use the JWT Decoder
- Paste the token. Replace the sample with your token; a Bearer prefix or quotes are removed for you, and the counter under the box should read Parts: 3 / 3.
- Read the expiry and the claims. Check the Expiration Status line first, with the issued-at and not-before dates under it, then the Header and Payload panels.
- Copy what you need. Each panel, including the signature, has its own Copy button; Clear / Reset empties the box.
Frequently asked questions
How do I decode a JWT token?
Paste it into the box. The header, payload and signature appear straight away, with the JSON neatly indented and the expiry date worked out for you. No secret key is needed to read a signed JWT, because the header and payload are only Base64url-encoded, not encrypted.
Can this JWT decoder verify the signature?
No. Verifying needs the signing secret or the issuer's public key, and this tool only reads the token. Use your server's JWT library, or the provider's published keys (often at a /.well-known/jwks.json address), to check signatures. Until that's done, treat the claims as unconfirmed.
Is it safe to paste a JWT into an online decoder?
On this page, yes: the token is decoded by your browser and isn't sent to any server. Even so, a live token works like a temporary password, so prefer expired or test tokens when you can, and never share a decoded production token in tickets or chat.
Why does it say Invalid JWT token format?
The input doesn't have exactly three dot-separated parts. Often a piece of the token was cut off when copying. A different message, about failing to parse JSON components, means one part isn't valid Base64url JSON. The cause there is usually a missing or stray character picked up while copying.
How do I know when a JWT expires?
Look at the exp claim, a Unix time in seconds. The decoder converts it to a UTC date and says whether that moment has passed. A token without exp never expires by itself, and in a real system that's worth asking about.
Is the data inside a JWT encrypted?
Not in a normal signed JWT. The signature stops changes, but anyone holding the token can read the payload, as this page shows. Keep passwords, card numbers and other secrets out of JWT claims, or use an encrypted JWE token instead.
This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.