JWT Decoder and Inspector

Paste a JWT to see its header, payload, issue and expiry times, and whether it has expired. You can verify an HS256 signature with your secret, all in your browser.

Inspect a token
HEADERPAYLOADSIGNATUREeyJhbGci . eyJzdWIi . SflKxwValid till 09:00

Decoder

Parts of a JWT

A token is three dot-separated parts, each Base64URL-encoded:

Header

Token type and signing algorithm, such as HS256 or RS256.

Payload

The claims: user, roles and expiry (exp).

Signature

A signature that stops tampering without the secret.

Using JWT safely

Do

  • Keep token lifetimes short, minutes or hours
  • Always verify the signature and algorithm on the server
  • Send it over HTTPS only
  • Keep keys out of your code

Avoid

  • Never put passwords or secrets in the payload; anyone can read it
  • Never accept tokens with alg none
  • Do not paste production tokens into sites you do not trust
  • Do not rely on decoding without verifying

Example: why does the app reject my token?

Paste the token and check exp first: if it has passed, the token expired and needs refreshing. Then review aud and iss if present, as some APIs reject tokens issued for another app. If the values look right, verify the signature with the right secret; a different key between staging and production is a common cause.

Key terms

Short definitions of what you meet along the way.

JWT
A compact signed token carrying user claims, used for login in apps and APIs.
Claim
A field in the token such as sub for the user and exp for expiry.
HS256 and RS256
The first signs with a shared secret; the second with a private key verified by a public key.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Is a JWT encrypted?

No, only encoded. Anyone can read it; the signature stops changes, not reading.

Is my token sent to your server?

No. Decoding and verification happen in your browser.

Why no RS256 verification?

It needs the public key in a special format. The tool verifies HMAC algorithms: HS256, HS384 and HS512.

Building a system or app?

We build custom systems and APIs for your business.

Contact us on WhatsApp