JWT Decoder

Decode a JSON Web Token and see the header, the payload and the registered claims with human-readable timestamps. The token is parsed locally in your browser and never uploaded, so a production access token can be inspected without handing it to a third party service.

JWT token

Decoded token


            
            

Ready — paste some input or load the sample.

100% Client-Side · Privacy First. This tool runs entirely inside your browser. Nothing you type is uploaded, logged or sent to a server — you can even use it offline.

Overview

A JSON Web Token is three base64url segments separated by dots: a header, a payload and a signature. The first two are only encoded, not encrypted, so anybody holding a token can read its claims. Decoding a token is therefore useful and completely safe; verifying one is a different matter and needs the secret key, which only your server has. This decoder separates the two clearly. It parses the header and the payload as JSON, prints them formatted, and then explains the registered claims: the issuer, the subject, the audience, the issued-at and expires-at timestamps with a human readable distance, and the not-before time. It also shows the algorithm from the header and the length of the signature segment, which is often enough to spot a token that was signed with a different algorithm than you expected. The signature itself is never checked, and the notes say so plainly.

How to use the jwt decoder (offline)

  1. 1Copy the token, or just the header and payload segments, into the input panel.
  2. 2Read the formatted header and payload in the output panel.
  3. 3Read the notes panel for the registered claims, especially the issued-at and expires-at times.
  4. 4Check the algorithm in the signature section before you trust anything the payload says.
  5. 5Remember that only your server, holding the secret key, can verify the signature.
  6. 6A token whose algorithm is "none" carries no signature at all, so never treat it as proof of identity.

Cheat sheet

The syntax you will use most, and what each part does.

PatternWhat it means
header.payload.signature The three parts of a JWT. Only the first two are readable without the secret.
alg: HS256 The algorithm from the header. Never trust the algorithm the header names without pinning it on the server.
iss The issuer: who created the token.
sub The subject: who or what the token is about, usually a user id.
aud The audience: which service the token is intended for.
exp and iat The expiry and the issue time, both as Unix timestamps that this tool renders in UTC.

Common mistakes

The token seems valid but the request is rejected.

Decoding proves nothing about authenticity. The signature has to be checked against your secret key, and an expired token is rejected even when the signature is correct.

The expires-at value looks wrong.

The exp claim is a Unix timestamp in seconds. A token whose exp is in the past is expired, and the notes mark it as such.

The header names an unexpected algorithm.

That is a well known attack pattern. A server that trusts the alg field in the token can be tricked into accepting an unsigned token, so always pin the algorithm in your server code.

A claim is not a number.

Some issuers write timestamps as strings. The decoder shows the raw value in that case instead of pretending it is a date.

Worked examples

A standard access token

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMiLCJyb2xlIjoiYWRtaW4iLCJleHAiOjE3NjcyMjU2MDB9.abc123signature

The decoded header and payload, the claims with their times, and the algorithm taken from the header.

A token with a string expiry

eyJhbGciOiJub25lIn0.eyJleHAiOiIxNzY3MjI1NjAwfQ.sig

The raw claim value with a note that it is not a numeric timestamp.

Frequently asked questions

Is the token uploaded to a server?

No. The token is decoded with JavaScript in your own tab, so it never appears in an access log, in a third party analytics service or in a shared link.

Does this verify the signature?

No, and it cannot. Verification needs the signing secret or the public key, which is exactly what a client must never have. The tool shows you what the token claims, not whether the claim is genuine.

Why is the payload readable at all?

Because the payload of a JWT is only encoded, not encrypted. Anyone holding the token can read it, which is why a JWT must never carry a password or a secret.

What should I check when a token looks wrong?

Start with the algorithm in the header, then the expires-at claim, then the issuer and the audience. An unexpected algorithm, an audience that does not match your API, or an expiry in the past explains most rejections.

What is the difference between the three segments?

The first segment is the header with the algorithm and the type, the second is the payload with the claims, and the third is the signature. Only the first two are readable, and the third is meaningless without the key.

Why does an expired token still decode?

Decoding and validation are different steps. The token is a piece of data, so it can always be read, but the server is the part that refuses to accept it once the expiry has passed.

Can I decode a token that uses the none algorithm?

Yes, and the header will tell you so. A token with alg: none carries no signature at all, and accepting one would let anybody forge a token with any claims.

Is it safe to paste a token from a shared browser?

It is safer than pasting it anywhere else, because the decode is local. Even so, a token is a credential, so close the tab and revoke it if the machine is not yours.

Can I decode a token with a broken signature?

Yes, because the signature is not part of the decoding step. The third segment is only inspected for its length and its algorithm, so a truncated token still shows you the header and the payload.

Why is the expiry shown in two formats?

The absolute UTC time tells you when the token stops working, and the relative description tells you how far away that is. The expired marker makes a stale token obvious at a glance.

What should I do with a token I do not recognise?

Do not paste it into a third party site, and do not send it to a service that promises to verify it. Decoding it here keeps it on your machine while you work out where it came from.