Skip to content
CleanGlyph home

JWT Decoder & Claims Inspector

Decode a JSON Web Token into its header and payload, and read exp, nbf and iat as real dates. Decoding only: signatures are never verified and nothing leaves your browser.

Your text never leaves your browser.

0 / 200,000 charactersAnalyzed as you type

Paste a JWT to decode it

The header, payload and registered claims appear here. Use the Sample button to try a public demonstration token.

How to decode a JWT

Paste a token into the input, or load the sample. A leading Bearer prefix copied from an Authorization header is ignored. The header and payload are decoded as you type and shown as formatted JSON, and the registered claims are listed below them with readable dates. Copy the header or payload separately, switch between 2 and 4 spaces, and show timestamps in UTC or your local time zone.

JWT structure: header, payload and signature

A signed JWT (a JWS in compact form) has three Base64URL segments joined by dots: header.payload.signature. The header is a JSON object that names the signing algorithm in alg and often the type in typ. The payload is a JSON object of claims. The signature is binary data computed over the first two segments with a key. Base64URL uses - and _ instead of + and /, and JWTs omit = padding.

Decoded sample header and payload
{"alg":"HS256","typ":"JWT"}
{"sub":"1234567890","name":"John Doe","iat":1516239022}

Why decoding is not verification

The header and payload are only encoded, not encrypted: anyone who has the token can read them, and anyone can create a token with whatever values they like. Only the signature, checked with the right key on your server, proves who issued a token and that it was not modified. This tool never verifies signatures, never asks for secrets or keys, and never executes the algorithm named in the header. Treat everything it shows as unverified input.

Registered JWT claims

RFC 7519 defines seven registered claim names. All are optional; applications add their own claims too.

Registered JWT claims and their meaning
ClaimMeaning
issIssuer: who created the token, usually a URL or name.
subSubject: the user or entity the token is about.
audAudience: the service or services the token is intended for.
expExpiration time, as a NumericDate. The token must not be accepted after it.
nbfNot before, as a NumericDate. The token must not be accepted before it.
iatIssued at, as a NumericDate. When the token was created.
jtiJWT ID: a unique identifier, often used to prevent replay.

exp, nbf and iat as Unix timestamps

Time claims are NumericDate values: seconds, not milliseconds, since 1970-01-01 00:00:00 UTC. For example, 1516239022 is 2018-01-18 01:30:22 UTC. Fractional seconds are allowed. A value written as a string such as "1516239022" is not a valid NumericDate, so the tool shows it as text and explains why instead of guessing. The expiration status compares exp and nbf with your device clock. That is a convenience: your server may allow clock skew, and your clock may be wrong.

The alg header and alg none

The alg value is chosen by whoever created the token, so it is untrusted. Servers must decide which algorithms they accept rather than trusting the header. alg: "none" declares an unsecured token without a signature. The tool flags it, along with signed algorithms whose signature segment is empty. Header parameters that point to keys, such as jku, x5u or jwk, are displayed as text and never fetched or used.

JWS vs encrypted JWE tokens

An encrypted JWE token has five segments: header, encrypted key, initialization vector, ciphertext and authentication tag. Its claims cannot be read without decryption, so the tool identifies it as unsupported. Tokens that use an unencoded payload (b64: false, RFC 7797) are also reported as unsupported. Anything else that does not decode cleanly is rejected with a specific error: no partial result is shown.

JWT privacy and handling live tokens

Decoding happens entirely in your browser. Tokens are never uploaded, logged, stored, added to the URL or sent to analytics, and nothing in a decoded token is rendered as HTML or opened as a link. A live token is a credential, though: anyone who obtains it may be able to act as its subject until it expires. Prefer expired or test tokens, and avoid sharing screenshots of real ones.

Format custom claim payloads with the JSON Formatter & Validator, decode other Base64 and Base64URL data with the Base64 Encoder & Decoder, compute SHA-256 digests (the hash behind HS256 and RS256, though not the signature itself) with the SHA-256 Hash Generator, decode tokens passed in query strings with the URL Encoder & Decoder, or compare two tokens' claims with the Text Difference Checker.

Frequently asked questions

Does decoding a JWT prove that it is valid?

No. Anyone can create a token with any header and payload. Decoding only reads the Base64URL segments. Authenticity requires verifying the signature with the correct key and checking the issuer, audience and expiration on your server.

Why does my token show "Invalid JWT structure"?

A signed JWT has exactly three segments separated by dots: header.payload.signature. A missing or extra dot usually means the token was cut off when copying, or that you pasted a different value such as a session ID or an opaque access token.

Why can a token with 5 segments not be decoded?

Five segments indicate an encrypted JWE token. Its payload is ciphertext and can only be read after decryption with the recipient key. This tool never requests or uses keys, so it explains the format instead of decoding it.

Why are exp, nbf and iat large numbers instead of dates?

They are NumericDate values: seconds since 1970-01-01 UTC. They are not milliseconds, so 1516239022 means 18 January 2018. The claims inspector converts them to readable UTC or local time without changing the original values.

The tool says my token is expired, but my API still accepts it. Why?

The time status compares the unverified exp claim with your device clock. Servers often allow a few minutes of clock skew, and your device clock may differ from the server. The server decision is the one that counts.

What does alg "none" mean?

It declares an unsecured token with no signature. Such a token can be created or changed by anyone. Servers should reject alg "none" unless they deliberately accept unsecured tokens, which is rarely appropriate.

Why do I get an invalid Base64URL or UTF-8 error?

JWT segments use the Base64URL alphabet (A–Z, a–z, 0–9, "-" and "_") without "=" padding. Characters such as "+", "/", spaces or quotes usually come from a corrupted copy. A UTF-8 error means the bytes decode but are not valid text, which a JSON header or payload must be.

Can I paste a token that starts with "Bearer"?

Yes. A leading "Bearer " prefix from an Authorization header and surrounding spaces or line breaks are ignored. Spaces or line breaks inside the token are rejected, because a compact JWT never contains them.

Is it safe to paste a production token here?

The token is decoded locally in your browser and is never uploaded, logged, stored or added to the URL. Still, a live token is a credential: anyone who obtains it may be able to use it until it expires. Prefer expired or test tokens when you can.