Skip to content
NWS Kit

JWT Decoder

Decode and inspect JWT payloads.

JWT

Runs on this deviceSent to a server: 0 bytes

How it works

  1. Type, paste or pick what you're working with.
  2. Set the options you need.
  3. Copy or download the result. It's made on this device.

Decodes a JSON Web Token so you can read its header and payload — which claims it carries, who issued it, and when it expires. Useful for debugging an auth flow that is failing for reasons the error message will not say.

The three parts

A JWT is three Base64url segments separated by dots: a header naming the signing algorithm, a payload of claims, and a signature over the first two. Common claims are iss (issuer), sub (subject), exp (expiry) and iat (issued at), with exp and iat as Unix timestamps in seconds — not milliseconds, which is a frequent source of tokens that appear to have expired in 1970.

Reading an expiry

A payload with "exp": 1789200000 is a second-precision Unix timestamp. JavaScript's Date expects milliseconds, so it needs multiplying by 1000 before it means anything — pass it unmultiplied and you get a date in January 1970.

Decoding is not verifying, and the payload is not secret

The header and payload are Base64url, not encrypted: anyone holding a token can read every claim in it, so nothing confidential belongs in a JWT. More importantly, reading a token tells you nothing about whether it is genuine — only checking the signature against the issuer's key does that, and it must happen on the server. Trusting a decoded payload without verifying the signature is a real and repeatedly exploited vulnerability, including the variant where an attacker sets the algorithm to "none" and a permissive library accepts it. And treat a token like a password: it grants whatever access it describes to whoever holds it.

Questions

Is it safe to paste a token here?

The decoding happens in your browser and the token is not transmitted anywhere. That said, a live token is a credential — the safest habit is to use an expired or test token, and to rotate anything you have pasted into a tool you did not write.

Why does my token show as expired when it is not?

Usually the exp claim being read as milliseconds when it is specified in seconds, or a clock skew between the issuing and validating machines. Most libraries allow a few seconds of leeway for exactly that reason.

Is JWT Decoder free to use?

Yes. JWT Decoder is completely free, with no account, no sign-up and no usage limits.

Are my files or data uploaded anywhere?

No. JWT Decoder runs entirely in your browser. Your files, text and numbers are processed on your own device and are never uploaded to a server.

Does JWT Decoder work offline?

Yes, once you have opened it. NWS Kit installs as a Progressive Web App and keeps working with no connection. Video and audio tools download their engine (about 32 MB, from nwskit.com) the first time one is used; save the Video and audio pack to have it ready offline.

Do I need to install any software?

No installation is required. JWT Decoder works in any modern browser on desktop or mobile.