Skip to content
Language:en

JWT decoder

Read the header, payload and expiry of a JSON Web Token without sending it anywhere.

Decoded in your browser. Nothing is sent or saved.

Header

Payload

Dates

Signature

The signature is shown but not verified: verification needs the issuer’s key.

Runs entirely in your browser. Your files never leave your device.

About this tool

A JSON Web Token is three base64url parts separated by dots: a header, a payload of claims and a signature. Paste one here to read the header and payload as formatted JSON, see when it was issued, when it becomes valid and when it expires in your own time zone, and check at a glance whether it has expired.

Tokens are credentials, so pasting them into an online service is risky. This decoder runs entirely in your browser: the token is not uploaded, not stored and not put in the address bar. It works with access tokens and ID tokens from OAuth 2.0 and OpenID Connect providers, and accepts a leading “Bearer”.

How it works

  1. Paste the token, with or without “Bearer”.
  2. Read the decoded header (algorithm, type, key id) and payload.
  3. Check the dates and the expiry status.
  4. Copy the JSON you need, then clear the field.

The decoder does not verify the signature: that needs the secret or the public key of the issuer, which should never be pasted into a web page. Treat a decoded payload as untrusted until your server has verified it.

Worked example

The classic test token from the JWT documentation has a payload with "sub": "1234567890", "name": "John Doe" and "iat": 1516239022. The decoder shows that it was issued on 18 January 2018 at 01:30:22 UTC, in your time zone too.

A real access token with exp one hour after iat shows a live countdown, so you can see at once whether a failing API call is due to an expired token.

Good to know

  • Decoding is not verifying: anyone can create a token with any payload. Your server must check the signature.
  • Never put secrets in a JWT payload; it is only base64url-encoded, not encrypted.
  • Clock differences of a few seconds between servers can make a fresh token look “not yet valid” (nbf).

Frequently asked questions

Is it safe to paste a production token?
The token never leaves your device: decoding is done by JavaScript in this page, with no network request. Still, prefer tokens that are expired or from a test environment when you can.
Why is the signature not verified?
Verifying needs the signing key. Decoding only shows what the token claims, which is enough to debug scopes, audiences or expiry, but not to trust it.
What do exp, iat and nbf mean?
They are dates in seconds since 1 January 1970 (UTC): iat is when the token was issued, nbf when it starts being valid and exp when it expires.
Can it decode encrypted tokens (JWE)?
No. A JWE has five parts and its payload is encrypted; only the holder of the key can read it. This tool decodes signed tokens (JWS), the common case.