NetToolForge
← Developer Tools🔑 Decode · Verify

JWT Decoder

Paste a JSON Web Token to see its header and payload as readable JSON, check whether it has expired, understand every claim and verify an HS256 signature with your secret.

How to use the JWT Decoder

  1. Paste the token (with or without “Bearer ”).
  2. Read the header, payload and status — expired tokens are marked red.
  3. See Claims explained for dates like exp and iat in normal time.
  4. To verify, enter the secret under Verify signature.

Security tips

Frequently asked questions

What is a JWT?

A JSON Web Token: a compact, signed token used for logins and APIs, made of a header, payload and signature.

Is decoding a JWT safe here?

Yes. The token is decoded in your browser and never sent anywhere.

How do I know if a token has expired?

The status shows Valid or Expired using the exp claim, with the exact date and time.

Can I verify RS256 tokens?

Only HMAC tokens (HS256, HS384, HS512) can be verified with a secret here. RS256 needs a public key.

Why is the signature invalid?

The secret is wrong, it is Base64 instead of text (switch to Base64), or the token was changed.

Is my data sent anywhere?

No. Everything is calculated in your browser on your own device. Nothing you type or open is uploaded.

Reading a token: the three parts

Written and checked by the NetToolForge Team, 1 December 2026.

A JWT has three parts separated by dots: header.payload.signature. The first two are Base64URL-encoded JSON, which is why anyone can read them.

ClaimMeaningExample
subWho the token is about, usually a user ID"user_8231"
iatIssued at, in Unix seconds1796083200
expExpires at, in Unix seconds1796086800 (one hour later)
audWhich app the token is meant for"api.example.com"

Common mistakes

  • Putting secrets in the payload. The payload is only encoded, not encrypted. Never put passwords or personal data in it.
  • Milliseconds in exp. The standard uses seconds. A value in milliseconds makes a token look valid for thousands of years.
  • Trusting a token without checking it. Servers must verify the signature and reject the algorithm “none”.
  • Clock differences. If a token is rejected as expired right after login, check that the server clock is correct.

Handle tokens with care

A valid token works like a password until it expires. Use expired or test tokens for debugging when you can, and do not post live tokens in chats, tickets or screenshots.