Toolwise

JWT Decoder

Paste a JWT to instantly decode and inspect its header and payload claims.

Advertisement

How to use JWT Decoder

  1. 1Paste your JWT into the input.
  2. 2The decoded header and payload appear instantly as formatted JSON.
  3. 3Note: this tool does not verify the signature.

About JWT Decoder

A JSON Web Token (JWT) encodes a header, payload and signature as three Base64URL-encoded segments joined by dots. This tool decodes the header and payload so you can inspect the claims inside — entirely in your browser, without sending your token anywhere. Because the payload is only encoded rather than encrypted, decoding needs no key at all: the signature exists to prove the token hasn't been altered, not to keep its contents private.

Benefits

  • • Quickly inspect claims like expiry, issuer or subject without a backend call.
  • • Runs entirely client-side — your token is never transmitted anywhere.
  • • Debug authentication issues by checking exp, iss and aud against what your API actually expects.
  • • See which algorithm a token was signed with by reading the alg value in the header.

Common mistakes

  • • Assuming a decoded JWT is verified — decoding only reveals the contents, it doesn't confirm the token's signature is valid.
  • • Treating the payload as private — it's Base64URL-encoded, not encrypted, so anyone holding the token can read every claim inside it.
  • • Reading exp or iat as milliseconds — both are Unix timestamps in seconds, so a millisecond conversion puts the expiry thousands of years in the future.

Frequently Asked Questions

No, this tool only decodes and displays the header and payload. Signature verification requires the secret or public key and isn't performed here.

No, decoding happens entirely in your browser using JavaScript.

A JWT is header.payload.signature, joined by dots, with each part Base64URL-encoded. The header names the signing algorithm and token type, the payload holds the claims, and the signature is computed over the first two parts so a recipient can detect tampering.

A standard signed JWT is not encrypted. Signing proves the token hasn't been altered and came from a holder of the key — it does nothing to hide the contents. If the payload genuinely must be confidential, you need JWE (encrypted tokens) or simply keep the sensitive data server-side and reference it by ID.

These are registered claims from the JWT spec: iat is the issued-at time, exp is the expiry time (both Unix timestamps in seconds), and sub identifies the subject the token is about, usually a user ID. You'll also often see iss (issuer), aud (intended audience) and nbf (not valid before).

Related tools

Advertisement