dev
How to Decode and Inspect a JWT Online for Free: Step-by-Step Guide
A clear, step-by-step walkthrough to decode and inspect a JWT online for free with the YaaftAi JWT Decoder — settings, checks and pro tips included.
2026-10-11 · 3 min read
Your API returns 401 and you suspect the token. You need to see the user ID, roles and expiry inside a JWT — without writing code.
This guide shows exactly how to decode and inspect a JWT with the free JWT Decoder — step by step, with the settings that matter and the checks professionals do before sharing the result.
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.
- It takes 5 quick steps and works on phones and computers.
- Biggest mistake to avoid: trusting decoded data.
- No sign-up and no upload — the JWT Decoder tool runs in your browser.
What does it mean to decode and inspect a JWT?
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.
Why people decode and inspect a JWT
- Debug authentication problems quickly.
- Check expiry, issuer and audience claims.
- Understand what data your tokens expose.
- Learn how token-based auth works.
How to decode and inspect a JWT with YaaftAi (5 steps)
Step 1: Open the JWT Decoder
Go to the YaaftAi JWT Decoder.
Step 2: Paste the token
Paste the full eyJ… token (without "Bearer ").
Step 3: Decode
Click Decode to see header and payload.
Step 4: Check claims
Look at exp (expiry), iat (issued at), sub, iss and aud.
Step 5: Verify on the server
Remember decoding is not verification — your backend must check the signature.
Example: how it works in practice
Backend developers: Debug auth flows and inspect claims.
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.
Pro tips for better results
- Never put secrets or passwords in a JWT payload — anyone can decode it.
- Check exp first when debugging 401 errors.
- Use test tokens rather than production ones in online tools.
- Keep tokens short-lived and refresh them.
- Make sure your server rejects alg: none tokens.
If something does not look right, our guide to 5 Common JWT Mistakes (and How to Fix Them) covers the usual causes.
If something goes 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.
Terms worth knowing
- Header: Describes the token type and signing algorithm.
- Payload / claims: The data inside the token, such as sub, exp and roles.
Try it now
Ready to put this into practice? The JWT Decoder on YaaftAi is free, works on phones and laptops, and never asks you to sign up.
Frequently asked questions
Does decoding verify the signature?
No, it only reads the header and payload.
Is it safe to paste a JWT here?
Decoding is local, but use test tokens rather than production ones.
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.
Keep learning
- 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?
- JSON Web Tokens Explained: A Beginner-Friendly Explainer
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