JWT Decoder

Use this JWT decoder to read the header and payload of any JSON Web Token as formatted JSON, with its expiry converted to a real date. Decode only — the signature is not verified.

1Paste the full JWT
2Press “Decode token”
3Read the header, payload and expiry notes

Decode only: this page shows what the token claims. It does not verify the signature, so a decoded payload is never proof that a token is genuine.

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this JWT decoder

Paste the complete token — all three segments, exactly as issued — and press Decode. The header and payload appear as neatly formatted JSON, and below them the tool translates the standard time claims into plain dates and tells you whether the token has already expired. If a segment is missing or the payload is not valid JSON, you get a specific explanation of which part failed and why, instead of a silent blank.

Read the warning on the tool once more, because it is the most misunderstood thing about JWTs: decoding is not verifying. The payload of any token can be read — and written — by anyone. The signature exists so a server holding the right key can prove the token was issued by someone trusted and has not been altered. This page deliberately performs no verification, both because the keys do not belong in a browser tool and because a green “valid” tick from a decoder would teach exactly the wrong lesson.

Example: the classic sample token

The sample loaded above is the token long used in JWT documentation. Its header decodes to:

{ "alg": "HS256", "typ": "JWT" }

and its payload to:

{ "sub": "1234567890", "name": "John Doe", "iat": 1516239022, "exp": 1890239222 }

The tool converts those numbers for you: iat 1516239022 is Thursday, 18 January 2018, 01:30:22 UTC, and exp 1890239222 is Saturday, 24 November 2029, 18:27:02 UTC — so this sample claims a very long-lived session. In real debugging, that expiry line is usually the answer: half of all “my API suddenly returns 401” mysteries are simply an expired exp that nobody converted into a date.

Anatomy of a token

A JWT is three Base64URL strings joined by dots. Base64URL is ordinary Base64 with + and / swapped for - and _ so the result survives inside URLs and headers. The header names the signing algorithm. The payload holds claims — registered ones with three-letter names (iss, sub, aud, exp, nbf, iat, jti) plus whatever custom claims the issuer added, such as roles or a name. The signature is computed over the first two segments; change one character of the payload and the signature no longer matches. Notice what is absent: encryption. If you can paste a token here, so can anyone who intercepts it — which is why tokens travel over HTTPS, live briefly, and must never carry secrets in their payload.

The standard claims, translated

Seven claim names are registered in the JWT specification, and the same handful appear in almost every real token. When the decoder shows you a payload, this is what you are looking at:

ClaimNameMeaning
issIssuerWho created and signed the token — usually a URL identifying the login service
subSubjectWho the token is about — typically the user's ID in the issuer's system
audAudienceWho the token is meant for — a token presented to the wrong audience must be rejected
expExpiryThe moment after which the token must not be accepted; the first thing to check on a 401
nbfNot beforeThe moment before which the token must not be accepted — used for scheduled access
iatIssued atWhen the token was minted; with exp it tells you the session's intended lifetime
jtiJWT IDA unique ID for this one token, used to block replay of a specific token

Everything else in a payload is a private claim added by the issuer — roles, permissions, names, tenant IDs. Two debugging habits follow from the table: compare aud with the service you sent the token to (a mismatch is a configuration error, not an attack), and compare exp minus iat with the lifetime you expected — tokens that live for years, like the sample above, are usually test tokens or a misconfiguration worth reporting.

Frequently asked questions

What is a JWT?

A JSON Web Token is a compact, standard way for two systems to pass claims — statements like 'this is user 1234' or 'this session expires at 6 pm'. It is three Base64URL-encoded parts joined by dots: a header, a payload of claims, and a signature.

Does this tool verify the token's signature?

No — and that distinction matters. This tool only decodes: it shows what the token says. Anyone can write any claims into an unsigned or re-signed token, so never trust a decoded payload as proof of anything. Real verification needs the issuer's secret or public key and must happen on a server.

Is it safe to paste a real token here?

The decoding runs entirely in your browser — the token is never sent to a server, stored or logged, so nothing leaks by using this page. Still, treat live tokens as credentials: a session token pasted into chats, tickets or screenshots can be replayed by anyone who finds it until it expires.

What do exp, iat and nbf mean?

They are registered claims about timing, stored as Unix timestamps (seconds since 1 January 1970). exp is when the token expires, iat is when it was issued, and nbf is the time before which it must not be accepted. This tool converts all three into readable dates and flags an expired token.

Why does my token fail to decode?

Usually because it was copied incompletely — JWTs are long and easy to truncate — or because extra spaces, quotes or line breaks came along from a log file or an Authorization header. Paste only the token itself, starting at eyJ and containing exactly two dots.

What is the difference between the header and the payload?

The header describes the token itself — typically the signing algorithm (alg) and the type (typ, usually 'JWT'). The payload carries the claims: who the token is about (sub), who issued it (iss), who it is for (aud), its timestamps, and any custom data the issuer added.

Is a JWT encrypted?

No. A standard JWT is encoded, not encrypted — its header and payload are readable by anyone holding the token, exactly as this page demonstrates. The signature only proves the token was not altered after signing. Never place secrets or personal data you would not print publicly inside a JWT payload.

What does 'alg: none' or an unexpected algorithm mean?

The header names the algorithm the issuer claims to have signed with — HS256 (shared secret) and RS256 (public/private key pair) are the common ones. 'none' means the token is unsigned. A token whose algorithm surprises the receiving server is a classic attack vector, which is why servers must pin the algorithms they accept.

Can I edit a token here and use it?

You can decode and read it, but editing the payload invalidates the signature, so any correctly built server will reject a modified token. That tamper-evidence is the entire point of the third segment.

Related tools