ToolGlint

JWT Decoder

Decode a JSON Web Token to read its header, payload and expiry. The token is decoded in your browser and never sent.

Paste or type, or drop a file on the box.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use the JWT Decoder

  1. Paste your token into the box, or load the sample to try it. A leading “Bearer ” is ignored.
  2. The token is shown in three colours, one for each part: header, payload and signature.
  3. The header and payload appear as readable JSON, each with its own Copy button.
  4. Read What each claim means for a plain explanation of every field, such as iss, sub and exp.
  5. Check the badge to see whether the token has expired, and which signing algorithm it names.
  6. Read the times table for when the token was issued and when it expires, in UTC and in your own time zone.

Questions and answers

Is my token sent to a server?
No. The token is decoded in your browser and never leaves it. Nothing is uploaded, stored or logged. That matters here, because a live token is a credential: anyone who has it can act as you until it expires.
Does this verify the signature?
No. It only decodes the token so you can read it. Verifying the signature needs the issuer’s secret or public key, and it is what proves the token is genuine and unaltered. Never trust the contents of a token in your own code without verifying it first.
How can a token be read without a key?
A standard JWT is signed, not encrypted. Its header and payload are plain JSON written in Base64url, which anyone can decode. The signature stops the contents from being changed, but it does not hide them, so never put secrets in a JWT payload.
What do exp, iat and nbf mean?
They are times, written as seconds since 1 January 1970 UTC. exp is when the token expires, iat is when it was issued, and nbf is the moment before which it must not be accepted. Other common claims are iss (who issued it), sub (who it is about) and aud (who it is meant for).
Why can my token not be decoded?
A JWT has exactly three parts separated by dots. The usual causes are a token cut short when copying, extra characters around it, or a line break in the middle. A token with five parts is an encrypted one (JWE), whose contents cannot be read without the decryption key.
The badge says “Not expired”. Is the token valid?
Not necessarily. The badge only compares the expiry time with your device’s clock. A token can be within its time window and still be rejected, because the signature is wrong, it was revoked, or it was issued for a different audience.

Related tools