Tech News, Tech & Coding · Free Online Tools

IT Question Answer
Tools
Developer & Text ToolsFree100% Client-Side

JWT Token Decoder

Decode JSON Web Tokens (JWT) locally in your browser. Inspect headers, payload, and signatures.

100% privateRuns instantly in-browserUpdated regularly

Advertisement

Runs in your browser

Your input is processed on your device and is not uploaded to our servers.

Fast

No queues and no upload wait, so results appear as soon as you act.

Clean and simple

Dark mode, no popups, and no signup.

What you get

  • Decode JWT header and payload
  • Check token expiration status
  • No data sent to the server

What a JWT decoder shows you

A JSON Web Token has three parts separated by dots: header.payload.signature. The header and payload are just Base64URL-encoded JSON, which is why anyone holding the token can read them. This decoder splits the token, decodes each part and shows the readable JSON, so you can see which algorithm was used, who the token was issued to, and when it expires.

Decoding runs locally in your browser. Your token is not sent anywhere.

How to use it

Paste the full token, including both dots, into the input. The header, payload and signature appear straight away. Time-based claims such as exp, iat and nbf are Unix timestamps in seconds, and the tool shows whether the token is expired.

The claims you will see most often

These registered claims appear in most real-world tokens:

  • iss: who issued the token.
  • sub: the subject, usually a user ID.
  • aud: the audience the token is meant for.
  • exp: expiry time. After this moment the token must be rejected.
  • nbf: "not before". The token is not valid until this time.
  • iat: when the token was issued.

Expired tokens and other common problems

If the tool marks a token as expired, compare exp with the current time. The server clock and the client clock can differ by a few seconds, which is why many APIs allow a small clock-skew tolerance. A token that is "not yet valid" usually means nbf is in the future, again often a clock issue.

Important: decoding is not verifying. Anyone can create a token with any payload. Only your server, using the secret or public key, can confirm the signature is genuine. Never trust claims from a token you have not verified, and do not put secrets in a JWT payload because it is readable by anyone.

Related tools

Advertisement

Frequently asked questions

No. Decoding only reads the header and payload. Verifying the signature requires the signing secret or public key and must be done by your server.

The decoding happens in your browser and the token is not uploaded. Still, treat live production tokens as secrets and avoid sharing them anywhere you do not trust.

The exp claim is in the past compared with the current time. Request a new token, or check that your device clock is correct.

The first is the header (algorithm and type), the second is the payload (claims), and the third is the signature used to detect tampering.

This tool is a decoder. Changing the payload would invalidate the signature, and the receiving server would reject the token.