JWT Decoder

Paste a JSON Web Token to see what is inside it: the algorithm, the claims, who issued it and when it expires – and optionally confirm the signature with your secret.

  • Files stay on your device
  • Free, no sign-up
  • Instant

Tokens are decoded in your browser. Still, never paste live production tokens into websites you do not trust.

Quick guide · 4 steps

How to use the JWT Decoder

When to use the JWT Decoder

Debugging login problems

Check whether a token has expired or carries the wrong user or audience.

Checking permissions

See which roles and scopes a token contains.

Integrating with identity providers

Inspect tokens from services such as Auth0, Firebase or Azure AD.

Learning how JWTs work

See the three parts of a token and what each contains.

Features and benefits

  • Decodes header and payload with pretty-printed JSON
  • Shows exp, iat, nbf and auth_time as local dates
  • Expired / not-yet-valid / valid status
  • HMAC signature verification with the Web Crypto API

Example

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ…
Output
alg: HS256 · sub: 1234567890 · name: John Doe · iat: 18 Jan 2018

How the JWT Decoder works

ConvertNest removes any “Bearer” prefix, splits the token at the dots, and decodes the header and payload from Base64URL into JSON text, which is pretty-printed. Standard time claims are converted from Unix seconds into your local date and time and compared with your device clock. If you provide a secret and the header says HS256, HS384 or HS512, it recomputes the HMAC signature over “header.payload” with the Web Crypto API and compares it with the token’s signature.

A real-life example

Users of Sana’s app are being logged out after a few minutes. She copies a token from the browser’s developer tools and decodes it here: the exp claim is only five minutes after iat, not the 24 hours she configured. The issue is a wrong unit in her server settings – seconds instead of minutes – which she fixes in one line.

Good to know

A JWT has three parts separated by dots: a header (which algorithm signed it), a payload of claims (who the user is, what they may do, when the token expires) and a signature. The first two parts are only Base64URL-encoded, not encrypted – anyone with the token can read them.

That is why you should never put secrets in a JWT payload, and why decoding is safe for debugging: it reveals nothing that the token holder could not already see. The signature is what stops tampering.

Verification here supports HMAC tokens (HS256, HS384, HS512) signed with a shared secret. Tokens signed with RSA or ECDSA keys (RS256, ES256) need the public key and are best verified in your own code.

Tips for the best results

  1. Check exp, iat and nbf first when tokens are rejected.
  2. Make sure your computer’s clock is correct before trusting the expiry status.
  3. Verify signatures in your own code for production systems.
  4. Never put personal secrets in a JWT payload – anyone can read it.

Common mistakes to avoid

Thinking JWT payloads are encrypted

They are only encoded. Anyone holding the token can read them.

Accepting tokens without verifying

Decoding is not validation. Your server must verify the signature and claims.

Sharing real tokens in tickets

A token is a key to an account until it expires. Redact it.

JWT Decoder – frequently asked questions

Is it safe to paste my token here?

The token is decoded in your browser and never sent anywhere. Even so, avoid pasting live production tokens into any website.

Why does it say expired?

The exp claim is in the past compared with your device clock. Check that your computer’s time is correct.

Can it decode encrypted tokens (JWE)?

No. JWE tokens have five parts and need a decryption key.

What is “iat”?

Issued at – the time the token was created, in seconds since 1 January 1970.

What does “alg: none” mean?

An unsigned token. Servers should reject it.

Can it verify RS256 tokens?

Not yet; RS256 needs a public key. Use your JWT library for that.