Skip to content
🔐

JWT Decoder

Decode the header and payload of a JSON Web Token and see the claims with dates.

Runs in your browser

Updated

This only decodes a token, it does not verify the signature. Anything here can be edited by whoever made the token, so never trust a decoded value for authentication. Use a server side library to verify.

Algorithm

-

Type

-

Expires

-

Status

-

Standard claims

Nothing decoded yet.

A token is three parts separated by dots: a base64url header, a base64url payload, and a signature. Only the first two are readable without the signing key. The alg: none case is a well known attack, so treat any token you receive as untrusted input until it is verified properly.

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.