JWT Decoder
Read the header, payload and time claims of a JSON Web Token. The token is decoded in your browser. The signature is shown but not verified.
Signature NOT verified This tool does not check the signature. Anyone can make a token with any contents, so the decoded fields do not prove who issued the token or that it was not changed.
Time claims
Expiry checks use the clock on your device.
| Claim | Value as received | UTC time | Status |
|---|
Decoded header
-
Decoded payload
-
Signature (as received)
Not verified
-
How to use
- Paste the whole token into the box. It looks like three blocks of letters and digits joined by two dots.
- Read the Algorithm, Expires, Not before and Issued at figures above the tables. A status flag shows whether the token has expired or is not yet valid, using your device clock.
- Scroll to Decoded header and Decoded payload to read the JSON claims.
- Remember the red "Signature NOT verified" badge. The page shows the signature exactly as pasted and does not check it.
- Clear the box when you finish. The page does not store the token.
Worked example
This token was built for the example. It is not a real credential:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSIsImlhdCI6MTcwMDAwMDAwMCwiZXhwIjoxNzAwMDAzNjAwfQ.c2lnbmF0dXJl
The header decodes to {"alg":"HS256","typ":"JWT"}. The payload decodes to {"sub":"1234567890","name":"Ada","iat":1700000000,"exp":1700003600}. The tool shows the algorithm as HS256, Issued at as 2023-11-14T22:13:20Z and Expires as 2023-11-14T23:13:20Z, exactly one hour later. The last block, c2lnbmF0dXJl, is only the text "signature" in base64url, so no key could ever verify it.
How it works
The token is decoded in your browser. Nothing is sent to a server, and the page does not store the token. Close the page or clear the box and it is gone.
The token is split at its two dots into a header, a payload and a signature. The header and payload are decoded from base64url, read as UTF-8 text and parsed as JSON objects. The time claims exp, nbf and iat are shown as UTC times, and the algorithm is taken from the header. The signature is shown exactly as you pasted it.
A decoded token does not prove who issued it. Checking a signature needs the issuer's key, which this page does not have, so it does not verify the signature. Only your own server should accept a token, and only after it has verified the signature and the claims it relies on.
Expiry and not-before flags compare the claims with the clock on your device, so a wrong clock gives a wrong flag.
The format is the JSON Web Token standard, RFC 7519. The signed container is a JSON Web Signature, RFC 7515, and base64url is defined in RFC 4648 section 5. It replaces + and / with - and _ and drops the = padding, so a token can sit safely in a URL or header. The registered time claims are NumericDate values: whole seconds since 1970 in UTC.
Common mistakes
- Treating decoding as verification. Base64url is an encoding, not encryption. Anyone can read a token's contents, and anyone can write a token that claims to be from you. Trust comes only from checking the signature with the right key.
- Putting secrets in the payload. A normal signed token is readable by everyone who holds it, including browser scripts and anyone who sees a log line. Keep passwords and private data out.
- Accepting alg none. A server that lets the token pick its own algorithm, including
none, can be fooled. The server should decide which algorithms it accepts. - Confusing seconds with milliseconds in exp. JWT time claims are in seconds. A value of 1700003600000 is a bug in whatever issued the token.
- Pasting live tokens into unknown sites. A valid access token is a password until it expires. Prefer an expired or test token when you can.
Frequently asked questions
Why does the tool not verify the signature?
Verification needs the issuer's secret or public key, and that belongs on your server, not in a pasted web page. Showing the signature as received keeps the page honest about what it knows.
What do exp, nbf and iat mean?
Exp is the time after which the token must not be accepted. Nbf is the time before which it must not be accepted. Iat is when it was issued. All three are in seconds since 1970.
Does the token have to be in a particular format?
It must have three parts separated by two dots, and the first two must be base64url text that decodes to JSON objects. Otherwise the tool shows a message saying what is wrong.
Is an encrypted token (JWE) supported?
No. An encrypted token has five parts, and its contents cannot be read without the key.
Why do I see an expired flag on a token that works for me?
The flag compares the claim with your device clock. If your clock is wrong, or the server allows some clock skew, the two will disagree.
Related tools
- Unix Timestamp Converter for checking any claim value.
- Base64 and URL Encoder/Decoder for base64 and URL encoding.
- JSON Formatter and Validator to tidy a decoded payload.