Format Code Now
/

JWT Decoder

ED-03

Paste a JSON Web Token and press Decode to read its header and payload and see when it was issued and when it expires. The signature is not verified. Decoding happens in your browser and the token is not uploaded.

Runs in your browser. Nothing is uploaded.

JWT

Decoded

How to use it

  1. Paste the whole token into the input box. A leading Bearer is removed for you.
  2. Press Decode.
  3. Read the HEADER and PAYLOAD sections, then check the TIMES (UTC) block for iat, nbf and exp.
  4. Remember that the signature is not verified here, so do not treat a decoded token as proof it is genuine.

What a JWT contains

A JSON Web Token is three Base64URL parts separated by dots: header, payload and signature. The header says how the token was signed, such as alg HS256. The payload holds the claims, such as sub, iat and exp. This tool decodes the first two and prints them as formatted JSON. A token with only two parts is accepted too, and its signature shows as none.

Reading iat, nbf and exp

If the payload has numeric iat, nbf or exp claims, the tool lists each one as a UTC date in ISO 8601 format, with a plain-language gap such as in 2 hours or 3 days ago. The gap is measured against your device's clock. Seeing exp in the past means the token has expired. Claims that are missing or not numbers are skipped.

Decoding is not verifying

Anyone can build a token with any payload, so reading a payload tells you nothing about who made it. Only checking the signature with the right secret or public key does, and this decoder does not do that. Verify tokens on your server before you trust a claim. This page is for reading a token while you debug, not for deciding whether to accept it.

Messages you may see

MessageWhat it meansFix
A JWT has 2 or 3 parts separated by dots (header.payload.signature).The text does not split into two or three parts on dots. A token with five parts is an encrypted JWE, which this tool cannot read.Paste the whole token, with no line breaks or extra dots, and check that the copy was not cut off.
The header (first part) is not valid Base64URL-encoded JSON.The first part could not be decoded to JSON.Check for a truncated paste or a character that changed in copying. The header usually starts with eyJ.
The payload (second part) is not valid Base64URL-encoded JSON.The second part could not be decoded to JSON.Check the middle part of the token for missing characters or a stray dot.
The signature is not verified here. Decoding happens in your browser; the token is not sent anywhere.This note appears with every decoded token. It is not an error.Verify the signature on your server with the key before trusting the token.

Questions people ask

How do I decode a JWT?

Paste the whole token into the box and press Decode. You see the header and payload as formatted JSON, the signature as written, and a TIMES block with iat, nbf and exp in UTC. A leading Bearer is removed for you.

Does this JWT decoder verify the signature?

No. It only decodes the header and payload. It takes no key, so it cannot confirm that a token is genuine or unaltered. Verify the signature on your server before trusting any claim in the token.

Is it safe to paste a JWT here?

Decoding happens in your browser and the token is not uploaded. A live token is still a credential, so prefer expired or test tokens, and do not post a share link that contains a token you still use.

How can I tell whether a JWT has expired?

Look at the exp line in the TIMES block. It shows the expiry as a UTC date with a gap such as 3 hours ago or in 2 days, measured against your device's clock. A date in the past means the token has expired.

Can anyone read the data inside a JWT?

Yes. A standard signed JWT is encoded, not encrypted, so anyone holding it can read the header and payload. Keep passwords and other secrets out of the claims. Encrypted tokens with five parts cannot be read by this tool.

Why does it say A JWT has 2 or 3 parts?

The text you pasted does not split into two or three parts on dots. Paste the full header.payload.signature token without line breaks or surrounding quotes, and check the copy was not cut off.

About this tool

Decoding happens in your browser; the token is never sent anywhere. This does not verify the signature, so do not treat a decoded token as proof it is genuine.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.