JWT Decoder
A JWT is three Base64url segments: header, claims, signature. This page splits and reads the first two. It does not verify the signature, so a token that decodes here is not proven genuine. Use it to see expiry, issuer, and scopes when a client misbehaves, not as an auth gate.
Storing passwords in your own app? Check new ones the way NIST asks, in the browser and on your server: add the password field SDK.
What the JWT decoder is for
A JSON Web Token looks opaque but its header and payload are only Base64URL-encoded, not encrypted. Decoding them reveals exactly what claims a system is asserting — user id, roles, issuer, and expiry.
That makes decoding the fastest way to diagnose authentication failures: an expired token, a wrong audience, or a missing scope is visible immediately.
Common uses
- Working out why an API keeps returning 401 or 403
- Checking a token's expiry and issued-at times
- Confirming which roles or scopes a token actually carries
- Inspecting the issuer and audience during an OAuth integration
What the output means in the real world
You get JSON for the header and payload plus a note that the signature is unread. Copy claims into a ticket when debugging 'invalid token' errors. If the payload holds personal data or a secret, treat the whole JWT as sensitive: it is only encoded. Never paste production access tokens into a public chat.
How this fits into real work
alg:none and confused-deputy bugs come from libraries that trust the header. A decoder that does not verify is the right tool for inspection and the wrong tool for login. Verification belongs on the resource server with a pinned algorithm and key.
exp, nbf, and iat are Unix seconds. A token that 'looks fine' is often five minutes dead because the laptop clock drifted. Convert those claims with the timestamp tool before you blame the IdP.
Refresh tokens and ID tokens leak through front-end logs. If this page showed you a live production JWT, rotate it at the issuer and scrub the log line.
How to use this tool
- Paste the complete token, including both dots that separate its three segments.
- Read the header to see the signing algorithm and key id.
- Read the payload for the claims — check exp for expiry and iat for when it was issued.
- Compare the claims against what the failing system expects.
Tips
- Decoding is not verification. This tool reads the token; it does not check the signature, which requires the signing key.
- exp and iat are Unix timestamps in seconds — our timestamp converter turns them into readable dates.
- A token with alg set to none should be rejected outright; accepting it is a well-known vulnerability.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. That said, a JWT is a live credential for as long as it is valid. Prefer expired or test tokens, and revoke anything you paste anywhere you did not intend.
Frequently asked questions
- Does decoding a JWT prove it is valid?
- No. Anyone can decode and even alter a token's payload. Only verifying the signature with the correct key proves it is genuine and untampered.
- Is it safe to paste a JWT here?
- The decoding happens entirely in your browser and nothing is transmitted. Even so, treat any unexpired token as a password — use test tokens where you can.
- Why is my token rejected even though it decodes fine?
- Usually expiry, or a mismatch on the audience or issuer claim. Clock skew between servers also causes tokens to appear not-yet-valid.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.