All tools

JWT decoder

Paste a JSON Web Token and read what is inside it. The decoding happens in this page, in your browser.

Your token

This page decodes the token and stops there. It does not check the signature, so it cannot tell you whether the service named in the token really issued it.

This runs in your browser. Nothing you paste or open is sent to us.

What the three parts hold

A JSON Web Token is three base64url parts joined with dots. The first is the header, which names the signing algorithm in alg and the token type in typ. The second is the payload, a JSON object of claims: iss for whoever issued the token, sub for whoever it is about, aud for whoever is meant to accept it, and iat, nbf and exp as seconds since 1970. The third is the signature, which is bytes rather than text and does not decode into anything readable. Only the registered claims get a row of their own here. Everything else the payload carries is in the payload block above, exactly as it was written.

Decoding is not verification

The header and the payload are encoded, not encrypted, so anybody holding a token can read them and this page does the same. What it cannot do is tell you the token is genuine. That takes the secret or the public key it was signed with, and it is the job of the service the token is presented to. Read what is below as a claim the token makes about itself. And treat a token you paste anywhere as a live credential until it expires, because it is still the thing that would let somebody act as the person it names.

Questions about JSON Web Tokens

No. It decodes the header and the payload and tells you whether a signature is present, but it never checks one. Checking takes the shared secret for HS256 and the other HMAC algorithms, or the issuer's public key for RS256, ES256 and the like, and it is the job of the service the token is presented to. What you read here is what the token claims about itself, not proof that it is genuine.

Yes. The header and the payload are JSON encoded as base64url, which is an encoding rather than encryption, so anybody holding the token can read them without any key. The secret only matters for creating or checking the signature. This decoder expects exactly three parts separated by dots. A token with five parts is an encrypted JWE, and its payload cannot be read without the key, here or anywhere else.

This page decodes the token in your browser and does not send it to us. Even so, treat a token that has not expired as a credential: anybody with a copy can act as the person it names until it does. Paste an expired or test token where you can, and do not put a live production token into a page you cannot vouch for.

Read the exp claim. It holds the expiry time in seconds since 1 January 1970, and this page turns it into a date and marks the token Expired or Not expired against your computer's clock. The iat (issued at) and nbf (not before) claims are shown as dates as well, but only exp decides the badge. A token with no exp claim says nothing about when it stops being accepted.

Read the token, then see the request that carried it

Session Replay records the request that carried the token, the response it came back with and the console line beside it, so the next person to look at a rejected call already has the whole thing in front of them.

Install ExtensionHow It Works

5.0 from 18 Chrome Web Store ratings