Utilo

JWT Decoder

Decode JWT tokens to view the header and payload claims, with human-readable issued-at and expiry times. Nothing is sent to a server.

What this JWT decoder does

JSON Web Tokens carry identity and permissions between a login server and APIs. A JWT has three Base64URL-encoded parts separated by dots: a header describing the algorithm, a payload of claims, and a signature. This decoder splits the token, pretty-prints the header and payload, converts iat, nbf and exp timestamps to readable dates, and tells you whether the token has expired. Decoding happens in your browser, which matters because tokens grant access to accounts.

How to use it

  1. Paste the token, typically copied from an Authorization: Bearer ... header or browser storage.
  2. Read the Header to see the algorithm (alg) and key ID (kid).
  3. Inspect the Payload claims such as sub, aud, iss, scope and custom roles.
  4. Check the banner for expiry status and the date list for issued-at and not-before times.

Practical examples

  • "401 Unauthorized" debugging: decode the token your frontend sends and compare aud and iss with what the API expects; mismatches are the most common cause.
  • Clock skew issues: if nbf is a few seconds in the future, a server with a slow clock rejects the token as not yet valid.
  • Checking scopes: confirm that the token actually contains read:orders before blaming the API's permission logic.
  • Session length: subtract iat from exp to see how long your identity provider issues tokens for.

Tips and edge cases

  • Decoding is not verification. Anyone can create a token with any payload; only checking the signature with the right key proves it is genuine.
  • Never trust alg: none. Servers must use an allow-list of expected algorithms.
  • JWT payloads are readable by anyone who holds the token, so do not put secrets or personal data in them.
  • Timestamps are in seconds since the Unix epoch, not milliseconds.
  • Encrypted tokens (JWE) have five parts and cannot be decoded without the key.

Frequently asked questions

Is it safe to paste my token here?

The token never leaves your browser. Still, treat production tokens like passwords: prefer expired or test tokens when sharing screenshots.

Why does the tool not verify the signature?

Verification requires the secret (HS256) or public key (RS256, ES256) of the issuer. Decoding focuses on inspecting content; use your server library to verify.

What does "expired" mean exactly?

The current time is later than the exp claim. Most servers allow a small leeway of a few seconds to tolerate clock differences.

Why is my token "not a valid JWT"?

It must contain at least two dot-separated segments of Base64URL JSON. Copying a token with the Bearer prefix or a line break is the most common cause.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.