JWT Decoder

  • Free, no sign-up
  • Runs in your browser
  • Updated
Quick answer. The JWT Decoder splits a JSON Web Token into its header, payload and signature, decodes the base64url JSON, and shows standard claims such as exp, iat and nbf as readable dates with an expired or valid status. It does not verify the signature.

JWT Decoder tool

Decoding happens only in your browser. Even so, do not paste live production tokens or secrets into any website.

Runs in your browser. Your data never leaves your device.

How to use the JWT Decoder

  1. 1Paste a token (three parts separated by dots).
  2. 2Read the decoded header and payload.
  3. 3Check the expiry status and the readable dates for exp, iat and nbf.
  4. 4Copy the payload JSON if needed.

What is a JWT decoder?

A JWT decoder reads a JSON Web Token and shows what is inside it. This tool splits the token into its three parts, decodes the header and payload into readable JSON, turns time claims like exp (expiry) and iat (issued at) into normal dates, and tells you whether the token has expired. Decoding happens entirely in your browser.

It does not verify the signature. Decoding only reads the data; it doesn't prove the token is genuine.

How is a JWT structured?

A JWT, defined in RFC 7519, is three base64url-encoded parts joined by dots:

header.payload.signature
PartContainsExample (decoded)
HeaderThe signing algorithm and token type{"alg":"HS256","typ":"JWT"}
PayloadClaims: facts about the user and the token{"sub":"42","name":"Ayesha","exp":1767225600}
SignatureA cryptographic signature of the first two partsBinary data, shown as base64url

The header and payload are only encoded, not encrypted. Anyone who has the token can read them, which is exactly what this tool does. Base64url is a URL-safe version of Base64; you can explore it with the Base64 tool.

What do the standard claims mean?

ClaimNameMeaning
issIssuerWho created the token
subSubjectWho the token is about, often a user ID
audAudienceWhich service should accept it
expExpiration timeAfter this moment the token must be rejected
nbfNot beforeThe token is not valid before this moment
iatIssued atWhen the token was created
jtiJWT IDA unique ID, useful to block reuse

Times are NumericDate values: seconds since 1 January 1970 UTC. The decoder shows them in your local time; convert them to other time zones with the Unix Timestamp Converter.

Worked example

Paste this sample token (made up, safe to use):

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiIsIm5hbWUiOiJBeWVzaGEiLCJleHAiOjE3NjcyMjU2MDB9.c2lnbmF0dXJl

The tool shows:

  • Header: {"alg": "HS256", "typ": "JWT"}
  • Payload: {"sub": "42", "name": "Ayesha", "exp": 1767225600}
  • Expires: 1 January 2026, 00:00 UTC (shown in your local time zone), so the status is Expired.
  • Signature: c2lnbmF0dXJl (not verified)

Is it safe to paste a token here?

The token never leaves your browser: there is no server code behind this page. But be careful with any website, because a valid, unexpired token is like a temporary password. Good practice:

  1. Use test or expired tokens when you can.
  2. If you pasted a live production token somewhere you don't control, revoke it or let it expire.
  3. Never put secrets such as passwords or card numbers in a JWT payload; anyone holding the token can read them.

Tips for debugging tokens

  1. "Invalid signature" from your API? Check alg in the header matches what your server expects, and that you're using the right secret or public key.
  2. 401 errors right after login? Compare exp, nbf and iat with the server's clock. A few seconds of clock difference can make a fresh token look "not yet valid".
  3. Wrong user data? Read the payload here, then format it with the JSON Formatter.
  4. Need a checksum of a token or file? Use the Hash Generator.

Limitations

  • No signature verification, because that needs your secret key or public key, which should never be pasted into a website.
  • Encrypted tokens (JWE, five parts) can't be decoded without the key; the tool reports the wrong number of parts.
  • A "Bearer " prefix is removed automatically, but other wrapping text must be removed by hand.
  • Claims are shown as they are; the tool doesn't check aud or iss against your system.

Frequently asked questions

Does this verify the signature?

No. Verifying needs the secret or public key. Decoding only reads the contents, which anyone with the token can do.

Is it safe to paste a token?

Decoding happens only in your browser. Even so, avoid pasting live production tokens into any website, and revoke any token you suspect is exposed.

Are JWT payloads encrypted?

Standard signed JWTs (JWS) are only encoded, not encrypted. Do not store secrets in the payload.

What is the exp claim?

The expiry time as a Unix timestamp in seconds (RFC 7519). After this time the token should be rejected.

Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.