JWT Decoder: Read a JSON Web Token Header and Payload

Paste a JSON Web Token to see what is written inside it: the header, the payload and its dates in UTC. The token never leaves your browser, and the signature is not verified.

TechFreeNo sign-upWorks on phones
––
–Algorithm (alg)
–Type (typ)
0Claims in the payload
Header

Payload

Registered claimStands forValue
Signature part (shown as received, not checked)

Decoding is not validation. This page cannot tell a genuine token from a forged one, because checking the signature needs the issuer’s key. Do not paste live tokens from a production system into any website: a token that has not expired works like a password.

This tool runs in your browser. Nothing you type is uploaded or saved, and there is nothing to install or sign up for.

What a JWT decoder shows you

A JSON Web Token, usually shortened to JWT, is a compact string that a website or app hands to your browser after you sign in. The browser sends it back with later requests as proof of who you are. It looks like random characters, but most of it is ordinary text in a simple wrapper. This page unwraps it so you can read what the token says: which algorithm signed it, who it is about and when it stops being accepted.

Developers use a decoder to find out why a sign-in fails, to check that a token carries the right claims, or to see whether it has expired. Students meet JWTs in web development courses, where reading a real one makes the format much easier to understand.

How to read a token here

  1. Put the whole token in the box labelled JSON Web Token. If you copied a whole authorization line, the word Bearer at the front is dropped for you.
  2. The result appears at once. The dark panel says whether the token has expired according to its own exp claim.
  3. Read Header and Payload, both laid out as indented JSON. The colored strip above them shows where each part of the token begins and ends.
  4. Check the Registered claim table for the standard fields. Time values are shown both as the raw number and as a UTC date.
  5. Copy header and Copy payload copy the JSON. Clear empties the box and Reset reloads the sample token.

The sample token, part by part

The page opens with a made-up token for a student account. Its header decodes to {"alg": "HS256", "typ": "JWT"}, so the Algorithm tile shows HS256 and the Type tile shows JWT. The payload holds five claims:

ClaimValue in the tokenWhat the page shows
substudent-42Subject: student-42
nameSam LeeListed in the payload only (not a registered claim)
rolestudentListed in the payload only
iat1767225600Issued at: 2026-01-01 00:00:00 UTC
exp1767229200Expiration time: 2026-01-01 01:00:00 UTC

The two time values are 3,600 seconds apart, so this token was meant to last one hour. Because that hour is in the past, the panel reads Expired. The third part, the signature, is displayed exactly as it arrived and is not tested.

How a token is put together

The format is defined in RFC 7519 (IETF, read December 2026). It describes a JWT as a sequence of URL-safe parts separated by period characters, each part holding a Base64url-encoded value. In the signed form you meet most often there are three parts in this order:

base64url(header) . base64url(payload) . base64url(signature)

Base64url is an encoding, not encryption. It rewrites bytes using letters, digits, the hyphen and the underscore so that the token can travel inside a web address or an HTTP header. Anybody who holds the token can reverse it, with this page or with a general Base64 decoder. That is why a signed token must never carry a secret such as a password in its payload.

To decode, the page splits the text at the dots, turns the first two parts back into bytes, reads the bytes as UTF-8 text and parses that text as JSON. If any of those steps fails it tells you which one. The same indented layout is available for any JSON in the JSON formatter.

The seven registered claims

RFC 7519 registers seven claim names and marks every one of them optional: iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not before), iat (issued at) and jti (JWT ID). The three time claims use what the RFC calls a NumericDate: the number of seconds since 1970-01-01 00:00:00 UTC. The page converts those to readable dates, and the Unix timestamp converter does the same for any other number of that kind.

The RFC states that a token must not be accepted on or after its exp time, or before its nbf time. The verdict in the dark panel compares those claims with the clock of your own device, so a wrong device clock gives a wrong verdict.

Decoding is not verifying

This is the limit that matters most. The signature exists so that the receiving server can prove the header and payload were not changed after the issuer created them. Proving that requires the issuer’s secret or public key, which this page does not have and does not ask for. Anyone can write a payload saying "role": "admin", encode it and attach a made-up signature, and it would decode here without complaint.

  • Never trust a decoded payload in your own code. Verify the signature on the server with a maintained library first, then read the claims.
  • Not expired does not mean valid. A token can be inside its time window and still be forged, revoked or meant for a different audience.
  • Encrypted tokens stay closed. A token with five parts is normally the encrypted kind (JWE), and its contents cannot be read without the key. The page says so and stops.
  • Treat live tokens like passwords. Whoever holds an unexpired token can often act as its owner. Practice with expired or test tokens, not with ones copied from a production system.

Practical uses in class and at work

In a web development lesson, give each student the sample token and ask them to predict the payload before decoding it. Then change one character in the middle part and decode again: the JSON usually breaks, which shows how tightly the encoding packs the data.

When debugging a sign-in problem, look at three things first: the exp date, the aud value and the alg in the header. Many failures come down to an expired token, a token issued for a different app, or an algorithm the server does not expect. If the server reports a signature mismatch, the fault lies with the key or the algorithm, and the hash generator is a handy way to learn what the SHA-256 in a name such as HS256 actually produces.

You will find more developer helpers among the tech and web tools, and every calculator and converter on the site is listed under free online tools.

Frequently asked questions

Does this JWT decoder verify the signature?

No. It only decodes the header and payload so you can read them. Verifying the signature needs the secret or public key of the issuer, and that check belongs on your server.

Is it safe to paste a token into an online decoder?

This page decodes inside your browser and sends nothing away. Even so, avoid pasting live production tokens into any website, because an unexpired token can work like a password. Use expired or test tokens.

What are the three parts of a JWT?

A signed token has a header, a payload and a signature, joined by two dots. The header and payload are JSON objects encoded with Base64url, and the signature protects them against changes.

How do I read the exp claim in a JWT?

The exp value is a number of seconds since 1 January 1970 UTC. In the sample token exp is 1767229200, which is 2026-01-01 01:00:00 UTC, one hour after its iat time.

Can anyone read the data inside a JWT?

Yes, for the usual signed kind. Base64url is an encoding, not encryption, so anyone holding the token can decode the payload. Secrets should never be placed in it.

Why does the page say my token cannot be decoded?

The text may be cut short, may contain characters outside the Base64url alphabet, or may have a number of parts other than three. A token with five parts is usually encrypted and cannot be opened without its key.

Related tools

Browse all free tools →