Skip to content
Calciyums

JWT Decoder

Show a JWT's header and payload as readable JSON; the signature is not verified.

Developer

Input

Calculated in your browser; what you enter is never sent to a server.

Result

Payload

{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022
}
Header
{ "alg": "HS256", "typ": "JWT" }

How does it work?

The JWT Decoder decodes the first two of a JSON Web Token's three dot-separated parts — the header and the payload — from Base64url and shows them as readable JSON. The third part, the signature, isn't decoded or verified — this tool only shows what's written inside the token, it doesn't check whether the token is genuine (verifying the signature requires knowing the secret key the issuing server signed it with). If the payload has an "exp" (expiry) claim, it also tells you whether that date has passed. Example: decoding the sample token already filled into the box gives you the header {"alg":"HS256","typ":"JWT"} and the payload {"sub":"1234567890","name":"John Doe","iat":1516239022}; since this token has no "exp" claim, no expiry information is shown. Use this tool to quickly see what information (user ID, roles, expiry date) a JWT returned by an API or used by an app is carrying, check whether a token has the expected fields while debugging an authentication error, or see directly whether a token has expired instead of guessing.

Example

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

Similar Tools

Toolbox Get your Toolbox ready.

Star the tools you use most and, with an account, they follow you to every device.

Create account

Frequently asked questions

Does this verify the signature?

No. It only decodes the header and payload into something readable; it doesn't check whether the signature is actually valid. Whether to trust the token is a separate question this tool doesn't answer.

Is my token sent anywhere?

No. Decoding happens entirely in your browser; the token never goes over the network.

What if I paste something with more or fewer than three parts?

The tool says it isn't a valid JWT; a JWT always has exactly three dot-separated parts.

What if there's no "exp" claim?

The expiry line only appears when the payload has an "exp" claim; otherwise you just see the header and payload.

What kind of information is usually in the header?

Usually two fields: the signing algorithm ('alg', such as HS256 or RS256) and the token type ('typ', usually JWT); in this example the header is {"alg":"HS256","typ":"JWT"}.

What other fields commonly show up in the payload?

'sub' (who the token belongs to), 'iat' (when it was issued, as Unix seconds), 'iss' (the service that issued it), and app-specific roles or permission data are common; exactly which fields appear depends entirely on the server that issued the token.