Skip to content
PrivateDevTools

JWT decoding and verification: what each tells you

Read token claims, understand timestamp warnings and see why decoding a JWT does not establish whether you can trust it.

Tokens & authentication Published October 21, 2026

Read the claims without treating them as proof

A typical signed JWT has three dot-separated segments: header, payload and signature. Decoding the first two lets you inspect JSON. It does not establish who created the token or whether anyone changed it.

That makes decoding useful for debugging a claim name or a timestamp. It cannot tell you whether an API should accept the token. The PrivateDevTools decoder inspects this three-part format; encrypted tokens use a different structure and are not supported here.

A claim is an assertion, not a permission grant

An illustrative decoded payload
{
  "sub": "demo-user-123",
  "iss": "https://issuer.example",
  "aud": "demo-api",
  "role": "admin",
  "exp": 1916239022
}

The role value is readable text in a payload. Anyone can construct JSON that says “admin.” Your application must validate the token using its trusted configuration before using claims to make an access decision.

JWT timestamp claims such as exp and nbf use seconds from the Unix epoch. The decoder displays these in your local timezone and rejects timestamps it cannot safely display. “Not expired” describes the time claim, while the signature remains unverified. Claim definitions are documented in RFC 7519.

What verification needs from your application

Use an appropriate JWT library in the component that accepts the token. Its configuration needs to define trusted keys and allowed algorithms, and validate the claims your application requires. Typical checks include issuer, audience, expiry and not-before time, plus application-specific permissions.

Do not let an untrusted token choose your validation rules. Review the recommendations in JWT Best Current Practices alongside your authentication provider’s documentation.

A useful debugging sequence

  1. Start with a non-production token and inspect its header and payload.
  2. Compare issuer and audience with your application’s expected values.
  3. Check timestamp units and the displayed local timezone.
  4. Investigate signature and authorization failures in your own authentication system.

Do not send a real token in a bug report. Processing here stays local, but your clipboard, screenshots, browser extensions and anyone who can see your screen may still reveal it. Clear the input after use.

Try the example locallyOpen the JWT decoder