About the JWT Decoder & Builder
A JSON Web Token has three parts separated by dots: header, payload and signature. This decoder shows the first two as formatted JSON and turns the exp, iat and nbf timestamps into readable dates so you can see when a token expires.
JSON Web Tokens carry login sessions and API permissions in many modern apps. A JWT looks like random text, but its first two parts are just Base64URL-encoded JSON: a header that names the signing algorithm and a payload with claims such as the user ID, roles, issuer and expiry time. Being able to read them quickly is essential when an API keeps returning 401 Unauthorized.
This decoder splits the token, decodes both parts and shows them as formatted JSON. Time claims (iat, nbf and exp) are converted from Unix seconds to readable dates, and a coloured badge shows whether the token has already expired. It is meant for developers, QA testers and support engineers who need to inspect a token, not to create or sign one.
How to use the JWT Decoder & Builder
- 1Paste a JWT (it starts with "eyJ").
- 2Read the decoded header and payload.
- 3Check the expiry status shown below the payload.
Key features
- Header and payload shown as indented JSON.
- iat, nbf and exp claims converted to readable dates.
- Expired or valid status at a glance.
- Clear error if a part is not valid Base64URL JSON.
- No network requests while decoding.
Practical uses
- Checking why a request fails: expired token, wrong audience or missing role.
- Confirming which claims your identity provider actually sends.
- Teaching how JWTs are structured.
- Comparing tokens from staging and production.
Example
A token whose payload contains "exp": 1767225600 shows the expiry as 1 January 2026, 00:00 UTC in your local time. If today is later, the badge turns red and reads “Expired on …”, which explains a 401 response immediately.
Tips and common mistakes
- Never paste production tokens into tools that send data to a server; this one does not, but stay cautious elsewhere.
- A token with alg “none” should never be accepted by your backend.
- Remember that anyone holding a JWT can read its payload; do not put secrets in it.
Limitations
- The signature is not verified, because that needs the secret or public key.
- Encrypted tokens (JWE, with five parts) cannot be decoded.
Privacy
Tokens are decoded with JavaScript in this tab and are not sent anywhere. Close the tab when finished if you used a live token on a shared computer.
Frequently asked questions
Does this verify the signature?
No. Decoding only reads the token. Verifying the signature needs the secret or public key, which should stay on your server.
Is it safe to paste a real token?
The token is decoded in your browser and not sent anywhere. Still, treat live tokens like passwords and avoid sharing them.
What do exp and iat mean?
exp is the time the token expires and iat is the time it was issued. Both are Unix timestamps in seconds.
Why do the dates differ from my server logs?
The decoder shows dates in your device’s time zone. Servers often log in UTC, so the clock time can differ while the moment is the same.