dev
JSON Web Tokens Explained: A Beginner-Friendly Explainer
JSON Web Tokens Explained in plain English: key terms, how it works behind the scenes, and how to troubleshoot common problems.
2026-10-10 · 3 min read
You don't need to be technical to understand decoding JSON web tokens. This explainer covers the key ideas in plain language, so your results make sense and you can fix problems yourself.
The basics
A JWT decoder splits a JSON Web Token into its three parts — header, payload and signature — and shows the header and payload as readable JSON, including whether the token has expired.
A JWT is three Base64URL-encoded sections separated by dots. The header names the signing algorithm, the payload holds claims like sub, exp and iat, and the signature proves the token was issued by the server. Decoding only reads the first two parts; verifying the signature requires the secret or public key.
Key takeaways
- A JWT decoder splits a JSON Web Token into its three parts — header, payload and signature — and shows the header and payload as readable JSON, including whether the token has expired.
- A JWT is three Base64URL-encoded sections separated by dots.
- Make sure your server rejects alg: none tokens.
Why it matters
- Debug authentication problems quickly.
- Check expiry, issuer and audience claims.
- Understand what data your tokens expose.
- Learn how token-based auth works.
Key terms you should know
Header
Describes the token type and signing algorithm.
Payload / claims
The data inside the token, such as sub, exp and roles.
Signature
Proof that the token was issued by a trusted server.
Base64URL
A URL-safe Base64 variant used in JWTs.
Common questions when things go wrong
"Invalid JWT: must have 3 parts". Copy the whole token and remove "Bearer ".
Payload looks garbled. The token may be encrypted (JWE), not a signed JWT.
Token shows expired. Request a new token or refresh it.
Times look wrong. exp and iat are Unix seconds in UTC.
Example: how it works in practice
Security reviewers: Spot sensitive data leaking into payloads.
In practice that means: paste the token, then decode, then check claims — and the job is done in a couple of minutes.
Phone, tablet or laptop?
Phone and tablet: It works on mobile for emergencies, but a desktop browser is more comfortable for long strings and code.
Laptop and desktop: On a desktop, keep it open next to your editor or API client so you can paste, inspect and iterate quickly.
Whatever device you use, the JWT Decoder is free, needs no sign-up and keeps your data on the device.
Putting it into practice
Now that you know the concepts, follow How to Decode and Inspect a JWT Online for Free: Step-by-Step Guide or compare options in Online JWT Decoder vs Decoding in Code: Which Should You Use?.
Try it now
You can do everything in this guide with the JWT Decoder. It is free, private and finishes in seconds.
Frequently asked questions
What does exp mean?
The expiry time as a Unix timestamp.
Can anyone read a JWT?
Yes, the payload is only encoded. Do not store secrets in it.
Why does my API return 401?
Often the token expired or the signature/audience does not match.
What is the difference between JWT and JWE?
JWTs are signed (readable); JWEs are encrypted.
Does decoding verify the signature?
No, it only reads the header and payload.
Keep learning
- How to Decode and Inspect a JWT Online for Free: Step-by-Step Guide
- 5 Common JWT Mistakes (and How to Fix Them)
- JWT for Students, Freelancers and Small Businesses: Real Uses
- Online JWT Decoder vs Decoding in Code: Which Should You Use?
Related free tools: Base64 Encode/Decode · JSON Formatter · Hash Generator
Try the JWT Decoder
Decode and inspect JSON Web Tokens without verification
Open JWT Decoder