JWT Decoder
Decode a JSON Web Token, check its expiry and claims in plain language, and verify the signature in your browser.
Runs in your browser. Nothing is uploaded.
| Claim | Value |
|---|
Verify the signature
How to use the JWT Decoder
- Paste a JWT into the box. A "Bearer " prefix is removed automatically. Load example shows one.
- The header and payload are decoded and formatted, with copy buttons.
- Badges show the signing algorithm and whether the token is valid, expired or not yet valid.
- Claims are listed with readable names, and time claims like exp and iat are shown as dates in your time zone.
- Open Verify the signature and enter the secret or public key to check the token is genuine.
Read any JSON Web Token
JWTs are everywhere in modern authentication: OAuth and OpenID Connect sign-ins, API access tokens and session cookies. When something goes wrong, such as a 401 Unauthorized, a missing permission or a user logged out too early, the answer is usually inside the token. This decoder shows you what’s there, in plain language.
What you see
- Header and payload as formatted JSON, ready to copy
- The algorithm, with a warning for unsigned
nonetokens - Expiry status: valid (and for how long), expired (and how long ago), not yet valid, or no expiry at all
- Claims explained: standard claims get readable labels, such as Issuer (iss), Subject (sub), Audience (aud) and Expires (exp)
- Times in your time zone:
exp,iat,nbfandauth_timeare converted from Unix seconds to dates, with “in 25 min” or “2 days ago”
Verify the signature
Decoding shows what a token says. Verifying proves who signed it and that nothing was changed. Enter the shared secret for HS256/384/512, or the issuer’s PEM public key for RS and ES algorithms, and press Verify. Verification uses your browser’s built-in Web Crypto, so the secret stays on your device.
Common findings
Most token problems come down to a few causes: the token expired, the aud doesn’t match the API, the
iss comes from a different environment, a role or scope is missing, or the server expects a different
algorithm. The claims list makes each of these quick to spot. To create test tokens, use the
JWT Generator.
Frequently asked questions
What is a JWT?
A JSON Web Token is a compact, signed way to pass claims, such as a user ID, roles and an expiry time, between systems. It has three Base64URL parts separated by dots, the header, the payload and the signature. Anyone can read the first two, and the signature proves who issued them.
Is it safe to paste a real token here?
The token is decoded in your browser and never sent anywhere. Still, a valid token works like a temporary password for its account. Treat it carefully, and prefer expired or test tokens when sharing screenshots.
Why does decoding work without the secret?
The header and payload are only encoded, not encrypted. The secret or key is needed only to check the signature. Never put passwords or other secrets in a JWT payload, because anyone with the token can read them.
Which algorithms can be verified?
HMAC (HS256, HS384, HS512) with a shared secret, RSA (RS256, RS384, RS512) and ECDSA (ES256, ES384) with a PEM public key. Tokens with alg "none" are flagged, because they're unsigned and must never be trusted.
How is the expiry calculated?
exp, nbf and iat are Unix timestamps in seconds. They're compared with your device's clock. If your clock is wrong, the status will be too.
Tutorials
How to find out why an API rejects your JWT
Decode a token to check its expiry, audience, issuer and signature, the usual reasons for a 401 Unauthorized error.