JWT decoder
Paste a JSON Web Token to see its header and payload. Time claims are shown as dates with how long until expiry. The token is decoded locally and never sent anywhere.
runs in your browser · nothing uploaded
How to use it
- Paste the token. It looks like three Base64 strings joined by dots: xxxxx.yyyyy.zzzzz.
- Read the header (which algorithm signed it) and the payload (the claims).
- Check the exp, iat and nbf rows to see when it was issued and when it expires, in your local time.
Decoding is not verifying
A JWT (RFC 7519) is Base64url-encoded JSON plus a signature. Anyone can decode the first two parts, which is all this tool does. Decoding tells you what a token claims; it does not prove the token is genuine.
Only the server that holds the secret or public key can check the signature. Your backend must always verify it with a proper library before trusting any claim, and must reject tokens whose header says "alg": "none".
The time claims
exp is the expiry, iat is when the token was issued and nbf is the time before which it must not be accepted. All three are NumericDate values: whole seconds since 1 January 1970 UTC, not milliseconds. A common bug is comparing them with Date.now(), which is in milliseconds.
Why paste it here and not anywhere
A live access token is a password for as long as it is valid. Pasting one into a site that sends it to a server hands that server your session. This page has no backend: the decoding is a few lines of JavaScript running in your tab.
Questions
Is what I paste sent to a server?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is uploaded, logged or stored by us, so it is safe to use with real data.
Can this tool verify the signature?
Not in this version. Verifying needs the secret or public key, and you should do that in your backend with a maintained JWT library, not in a web page.
Why is my token "not valid JSON"?
Either a part was cut off while copying, or it is an encrypted token (JWE, five parts), whose payload cannot be read without the key.
Should I store sensitive data in a JWT?
No. The payload is only encoded, so anyone holding the token can read it. Keep it to IDs and permissions.