Decoding without verifying
A JSON Web Token is three base64url segments separated by dots: header, payload and signature. The decoder converts hyphens to plus signs and underscores to slashes, restores the padding, decodes the bytes and reads them as UTF-8. Header and payload are pretty-printed, the algorithm and token type are extracted, and every claim is listed in a table. The signature is never checked, because that would require the secret or public key.
A worked example
A token whose header is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 decodes to {"alg":"HS256","typ":"JWT"}. If the payload contains exp set to a time in the past, the status reads EXPIRED; within the next hour it warns that the token is expiring soon; otherwise it reports a valid window. A payload without exp is labelled as having no expiry rather than being treated as invalid.
Reading the output safely
Decoding is not validation. Anyone can craft a token with any claims, so never treat the decoded payload as proof of identity until your server has verified the signature and checked the issuer, audience and expiry. The tool exists to inspect what a client is holding and to debug why a server rejected it.
Where it stops
- No signature verification and no key input.
- Fully encrypted tokens, called JWE, have five segments and are not supported.
- Re-encoding from the edited JSON writes a trailing dot with an empty signature, so the result cannot be used as a real token.
- At least two segments are required; a bare base64 string is rejected.
Questions people ask
Why does the payload show odd characters?
The segment may not be UTF-8 JSON, or it may be truncated. Copy the whole token including every dot.
How do I inspect a base64 segment on its own?
Paste it into the base64 encoder, and format the JSON with the JSON formatter. To reproduce a signature algorithm, see the HMAC generator.