Skip to main content

JWT Decoder

Decode and inspect JWT tokens. View header, payload, and expiration.

Built and tested by Muhammad Irfan Liaqat · Updated

JWT Decoder: key facts

  • Decodes a JSON Web Token into its header, payload and signature
  • Shows exp, iat and nbf as readable local dates, with how long until or since expiry
  • Does not verify the signature, so a decoded token is not proof it is genuine
  • Decoding happens in the browser; the token is not sent anywhere

What is inside a JSON Web Token

Paste a JSON Web Token (JWT) to read its header, payload and signature. The decoder shows the signing algorithm and token type from the header, lists the payload's claims, and turns time claims such as exp (expiry), iat (issued at) and nbf (not before) into readable dates, with how long ago the token expired or how long until it does.

A JWT is three Base64URL-encoded parts separated by dots. The header and payload are encoded, not encrypted, so anyone holding a token can read them; never put secrets in a payload. This tool decodes but does not verify the signature, because that needs the signing secret or public key. The token is decoded in your browser and not sent anywhere, but treat live access tokens like passwords and paste them only into tools you trust.

How to decode a JWT

  1. 1Paste a JWT into the input box, or click Load Sample
  2. 2Read the header to see the algorithm and token type
  3. 3Check the payload claims, including the expiry date
  4. 4Note that the signature is shown but not verified

Frequently Asked Questions

What is a JWT?
A JSON Web Token is a compact token format, defined in RFC 7519, used to pass claims such as a user ID between systems. It has a header, a payload and a signature, separated by dots.
Can this tool verify a JWT signature?
No. Verification needs the secret or public key the token was signed with. Verify tokens on your server with a maintained JWT library.
What do exp, iat and nbf mean?
exp is when the token expires, iat is when it was issued and nbf is the time before which it must not be accepted. All three are Unix timestamps in seconds, shown here as dates.
Is it safe to paste my token here?
The token is decoded in your browser and never sent to a server. Even so, a live token can grant access to an account, so prefer expired or test tokens when debugging.
How do I check whether a JWT has expired?
Paste it in and look at the exp claim. It is shown as a date with “expired … ago” or “expires in …”, worked out from your device's clock.
Is a JWT encrypted?
Usually not. A standard JWT is signed, not encrypted: the header and payload are only Base64URL-encoded, so anyone holding the token can read them. Don't put secrets in a JWT payload. Encrypted tokens (JWE) have five parts and cannot be decoded here.
Why do I get “must have 3 parts” or “Failed to decode”?
The token must be three Base64URL sections separated by dots. Remove any “Bearer ” prefix, quotes or line breaks copied with it, and check that the whole token was copied.

Related Tools