JWT Decoder
Paste a JSON Web Token to decode its header, payload, and inspect claims.
What is a JWT?
A JSON Web Token (JWT) is a compact, URL-safe token format defined in RFC 7519. It consists of three Base64URL-encoded parts separated by dots: a header (algorithm and token type), a payload (claims such as user identity and expiry), and a signature used to verify authenticity.
Header
Describes the token type (JWT) and signing algorithm, e.g. HS256 or RS256.
Payload
Contains claims: registered ones like exp, iat, sub, plus any custom application data.
Signature
Ensures the token hasn't been tampered with. Verified server-side using the secret or public key.
How to decode a JWT
- Copy the token, typically from an
Authorization: Bearer …header in your browser's network tab, or from local storage. - Paste it into the box above. Only the token itself; drop the word
Bearer. - Read the decoded header and payload. Timestamp claims are shown as readable dates next to the raw number.
- Check the status badge to see whether the token has expired.
Claims you'll see most often
| Claim | Meaning |
|---|---|
iss | Issuer: who created the token, usually your identity provider's URL. |
sub | Subject: the user or client the token is about, as a stable ID. |
aud | Audience: which API the token is meant for. Your API should reject tokens with someone else's audience. |
exp | Expiration time (Unix seconds). |
iat | Issued-at time. |
nbf | Not valid before this time. |
jti | A unique token ID, useful for revocation lists. |
scope / scp | Permissions granted (OAuth 2.0), e.g. read:orders. |
Anything else is a custom claim added by your identity provider or application: roles, tenant IDs, email addresses and so on.
Debugging with a decoder
Most "401 Unauthorized" mysteries come down to one of these, and every one is visible in the decoded token:
- Wrong audience. A token issued for your front-end's client ID sent to an API that expects its own identifier in
aud. - Expired token. The front-end isn't refreshing, or the server clock has drifted.
- Missing scope or role. The user authenticated, but the token doesn't carry the permission the endpoint checks.
- Wrong issuer. A token from your staging identity provider sent to production.
- Unexpected algorithm. The header says
HS256but the API is configured forRS256, or vice versa.
Security: what decoding doesn't tell you
The fact that anyone can read a JWT is by design, but it has consequences. Don't put secrets or sensitive personal data in the payload. And never make an authorization decision based on a token you've only decoded; the server must verify the signature, check exp, aud and iss, and refuse "alg": "none". Libraries do all of this if you configure them with an explicit list of allowed algorithms.
For a deeper walk through a real token, including how the signature is computed, read What's inside a JWT (and what decoding won't tell you).
Frequently asked questions
Does this tool verify the JWT signature?+
No. It decodes the header and payload so you can read them, and shows whether the exp claim has passed. Verifying the signature requires the secret or public key, and that check belongs on your server. A token that decodes fine here may still be forged or revoked.
Is it safe to paste a real token here?+
Decoding happens entirely in your browser and the token is never sent anywhere. Even so, treat a live access token like a password: anyone who has it can use it until it expires. Prefer expired or test tokens when debugging, and never paste tokens into tools that send them to a server.
Is a JWT encrypted?+
A standard signed JWT (JWS) is not. Its header and payload are only Base64URL-encoded, which is why this page can read them. Encrypted JWTs (JWE) exist and have five parts instead of three; their contents can't be decoded without the key.
What do exp, iat and nbf mean?+
They're timestamps in seconds since 1 January 1970 (UTC). exp is when the token expires, iat when it was issued, and nbf the time before which it must not be accepted. This page converts them to your local date and time.
Why does my token show as expired when it should be valid?+
The status is computed from your computer's clock. If the clock is off, or the server issued the token with a very short lifetime (5 to 15 minutes is common for access tokens), it may already have expired. Some servers also allow a small clock-skew tolerance that this page doesn't apply.
Last updated October 16, 2026