JWT Decoder
Paste a JSON Web Token to see its header and claims, when it was issued and whether it has expired. The signature is not verified.
Decoded on your device. The token is not sent anywhere, stored or logged.
About JWT Decoder
A JSON Web Token (JWT) is a compact string made of three parts separated by dots: a header, a payload and a signature. The header and payload are JSON encoded with base64url, so anyone holding the token can read them. JWT Decoder turns those two parts back into readable JSON and explains the time claims that decide whether the token is still usable.
The decoder does not verify the signature. Checking it needs the issuer’s secret or public key, and that check belongs on the server that accepts the token. Treat everything you see here as unconfirmed until your server has verified it.
When to use it
- An API call fails with “401 Unauthorized” and you want to know whether the token has simply expired.
- You are building a login flow and need to confirm which claims (user ID, roles, audience) your identity provider puts in the token.
- You want to check the signing algorithm before configuring a library.
Worked example
Paste the well-known sample token published on jwt.io, which starts eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9. The header decodes to {"alg": "HS256", "typ": "JWT"} and the payload to a subject 1234567890, the name John Doe and iat 1516239022. The time claims table shows that iat value as 2018-01-18T01:30:22Z, plus the same moment in your own time zone. Because the payload has no exp claim, the status reads “No expiry time”.
Good to know
- A leading
Bearercopied from an Authorization header is ignored. expis treated as exclusive: a token is expired from that second onwards.nbf(not before) is checked too.- Tokens with
algset tononeor an empty signature get a warning, because anyone can forge them. - Encrypted tokens (JWE, five parts) cannot be read without the key, and the tool says so.
- The token stays in this page. It is not sent, stored or logged, but a live token still grants access, so prefer test tokens.
- For other Base64 text, try Base64 Encode and Decode.
How to use JWT Decoder
- Paste the token (a leading "Bearer " is ignored).
- Read the decoded header and payload.
- Check the time claims and the expiry status.
Privacy: how it works
The token is decoded in your browser. It is not sent to any server, stored or logged.
Frequently asked questions
Does this check that the token is genuine?
No. It only decodes the token. Verifying the signature needs the secret or public key of whoever issued it, and that check belongs on your server.
Is it safe to paste a real token?
The token is decoded by JavaScript in this page and is not sent, stored or logged. A live token still grants access, so prefer expired or test tokens when you can.
Can it read encrypted tokens (JWE)?
No. An encrypted token has five parts and its payload cannot be read without the key. The tool tells you when it sees one.