JWT Decoder

🔒 Processed 100% in your browser — nothing is uploaded

About this tool

A JSON Web Token is three base64url-encoded segments joined by dots — header, payload, signature — and it is the credential your browser presents on every authenticated API call. When auth breaks, the fastest diagnosis is to look inside the token: a 401 usually means exp has passed, aud does not match the API, a required scope is missing, or the token was issued for a completely different environment. Debugging those questions means decoding JWTs — and pasting production tokens into random websites is a bad habit, because a JWT is a bearer credential: anyone who holds it holds the user's session.

This decoder works entirely offline in your browser, so tokens never touch a server. Paste a token and it instantly base64url-decodes the header and payload, pretty-prints both as JSON, and interprets the registered claims: issued-at, not-before and expiration are shown as human-readable local and UTC times, with a clear valid-or-expired badge and a countdown. The algorithm and token type from the header are highlighted so you can spot alg-confusion problems early. Malformed tokens get a precise error telling you which segment failed to decode.

Knowing the standard claims turns you fluent: sub identifies the user, iss who issued the token, aud which audience it is valid for, scope or roles carry permissions, and jti is a unique token ID used for revocation lists. Two real-world gotchas: servers typically allow a small clock skew, so a token stamped expired can still work for another minute; and if you ever see "alg": "none" in a header, something is seriously misconfigured — no sane server should accept it.

The tool does not verify signatures — that requires your secret or public key — but for everyday questions like which user this token belongs to, when it expires, and what scopes it carries, it is the fastest safe answer. Keep it bookmarked next to your API client.

How to use JWT Decoder

  1. Paste the JWT into the input box.
  2. The header and payload decode instantly into readable JSON.
  3. Check the validity panel for exp, iat and nbf interpreted as dates.
  4. Copy any claim value you need for debugging.

Frequently asked questions

Is it safe to paste a real token here?

Yes. Decoding happens only in your browser with no network calls, unlike many online decoders that send your token to a server.

Does the tool verify the signature?

No. Signature verification needs your secret or public key; this tool focuses on decoding and inspecting claims safely.

Why does my token fail to decode?

A JWT needs three base64url segments separated by dots. The error message tells you which segment is malformed.

What do exp, iat and nbf mean?

exp is the expiration time, iat the issued-at time, and nbf the not-before time — all UNIX timestamps in seconds, shown here as readable dates.

Can I edit the payload to change my permissions?

You can decode and read a token, but modifying any claim invalidates the signature and the server will reject it. Decoding is for debugging — it cannot forge access.

Why does my expired token still work?

Servers compare exp against their own clock and usually allow a skew window of 30–60 seconds; some also cache validation results briefly. Do not rely on it — refresh the token.

What does alg: none in the header mean?

The token claims to be unsigned. No correctly configured server accepts it — if you encounter one, treat it as a misconfiguration or an attack attempt and investigate.