RUN

JWT Decoder

Paste a JSON Web Token to read its header, payload and expiry. Nothing leaves your browser.

Runs in your browser · nothing is uploaded

How to use the JWT Decoder

  1. Paste the token. A leading "Bearer " from an Authorization header is removed for you.
  2. The header (algorithm and type) and payload (claims) appear as formatted JSON.
  3. Time claims, iat (issued at), nbf (not before) and exp (expires), are shown as dates in your time zone, with whether the token has expired.
  4. Copy the header or payload JSON if you need it.

About this tool

A JWT is three Base64URL-encoded parts joined by dots: a header that names the signing algorithm, a payload of claims such as the user id (sub), roles and expiry time, and a signature. The header and payload are only encoded, not encrypted, so anyone who has the token can read them. This tool simply decodes them.

It does not verify the signature. Verification needs the secret or public key and must happen on your server with a proper JWT library; never trust a token’s claims in your backend just because they decode cleanly.

Because decoding happens in your browser, the token is not sent to us or anyone else. That matters: a valid token is a password for as long as it lasts, so pasting live tokens into websites that upload them is risky.

Frequently asked questions

›Does this verify the signature?

No. It decodes and shows the token. Verify signatures on your server with your key and a trusted library.

›Why does my token say expired?

Its exp claim, a time in seconds since 1970, is in the past. Expiry is checked against your device’s clock, so a wrong system clock can affect the result.

›What do iat, nbf and exp mean?

iat is when the token was issued, nbf is the time before which it must not be accepted, and exp is when it expires. All three are Unix timestamps in seconds.

›Can I decode an encrypted JWT (JWE)?

No. A JWE has five parts and its payload is encrypted, so it can only be read with the key. The tool recognises one and tells you.

›Is my data sent anywhere?

No. The tool runs entirely in your browser with JavaScript. What you paste is never uploaded, logged or stored on our servers, so it is safe to use with internal data, though you should still treat secrets with care on shared computers.