JWT Decoder
Paste a JSON Web Token to read its header and payload and check when it expires.
- Runs in your browser
- Expiry check
- No signup
This tool decodes only. It does not verify the signature.
Did this save you some time?
aiml.site costs $20 a year to run and every tool stays free. If it helped, you can buy me a dosa.
Loading…Need a custom web app?
I built every tool here and take freelance work: fast, focused tools for your business.
Email hello@aiml.siteHow to use JWT Decoder
Paste your JWT. A leading 'Bearer ' is removed for you.
Read the decoded header and payload.
Check the exp, iat and nbf times and whether the token has expired.
How it works
A signed JWT has three parts separated by dots: header, payload and signature. The first two are JSON encoded with Base64URL. This tool splits the token, decodes those two parts with the browser's atob and TextDecoder, and formats the JSON. Time claims are Unix timestamps in seconds, so it converts them to your local time and compares exp and nbf with the current time. The signature is shown but not verified, because that needs the server's secret or public key.
Why use it
- Decodes header and payload instantly
- Shows expiry status in plain words
- Handles Unicode payloads
- Nothing leaves your browser
- Free, no signup
Questions
Is it safe to paste my token here?
Decoding happens entirely in your browser and nothing is sent to a server. Still, treat production tokens like passwords and prefer test tokens.
Does this verify the signature?
No. It only decodes the header and payload. Anyone can decode a JWT; only a server with the secret or public key can verify it. Never trust a token just because it decodes.
What do exp, iat and nbf mean?
exp is when the token expires, iat is when it was issued and nbf is the time before which it must not be accepted. All are Unix timestamps in seconds.
Why can't it read my token?
Encrypted tokens (JWE, 5 parts) can't be read without the key. Also check that you copied the whole token without extra spaces.
Is a JWT encrypted?
A normal signed JWT (JWS) is only encoded, not encrypted. Do not put secrets in a JWT payload.