JWT Decoder

Decode and inspect JSON Web Tokens

What Is a JWT Decoder?

A JWT (JSON Web Token) decoder is a tool that parses and inspects the contents of a JSON Web Token without validating its signature. JWTs are widely used for authentication and authorization in modern web applications and APIs. A typical JWT consists of three parts: a header that specifies the token type and signing algorithm, a payload that contains claims about the user and session, and a signature that verifies the token integrity.

Our JWT Decoder instantly decodes any valid JWT and displays the header and payload in a readable JSON format, along with the raw signature. This is useful for debugging authentication flows, inspecting token expiration times, verifying user claims, and understanding what data your application is sending and receiving in tokens.

How to Use the JWT Decoder

Paste your JWT string into the input field above. The token should be a complete JWT with three dot-separated segments (header.payload.signature). Click "Decode" and the tool immediately parses the token, displaying the decoded header and payload as formatted JSON. The signature is shown as a raw string since it cannot be decoded without the secret key.

Note that this tool only decodes the token - it does not verify the signature. To verify a JWT, you need the original signing secret or public key. The decoded payload will show standard claims such as "iss" (issuer), "sub" (subject), "exp" (expiration time), "iat" (issued at), and any custom claims your application includes. Use this information to debug authentication issues, check token expiration, or audit the claims your application is using.

Related Tools

Recommended Reading

JWT decoder: inspect a token, do not trust it

A JSON Web Token is three Base64URL-encoded parts separated by dots: header, payload, and signature. This tool decodes the first two parts so you can inspect claims such as issuer, subject, audience, and expiry.

Decoding is not verification. Anyone can alter a payload and re-encode it. Only a server with the correct key can confirm that the signature is genuine.

How it works

What the header tells you

The alg field names the signing algorithm. The typ field usually says JWT. A kid value identifies which key should be used when the issuer rotates keys. Unexpected algorithm values deserve attention, especially a switch to none or an asymmetric-to-symmetric downgrade.

Claims worth reviewing

iss identifies who issued the token, sub identifies the subject, aud identifies the intended audience, exp is the expiry time, iat is the issue time, and nbf marks when the token becomes valid. Check that these values match the service you are calling and the current time.

Payload data is visible to anyone who holds the token. Do not put passwords, private keys, or sensitive personal data inside it.

Use cases

  • Debugging 401 responses: Check audience, issuer, and expiry before looking at application permissions.
  • Inspecting token contents: Confirm which claims your client actually sends.
  • Learning JWT structure: See the relationship between header, payload, and signature.

Worked examples

Typical decoded shape

Header:  {"alg":"RS256","typ":"JWT","kid":"key-1"}
Payload: {"sub":"user_123","iss":"https://id.example.com",
          "aud":"api.example.com","exp":1790000000}
Signature: <opaque>

Common failure

A token with an exp value in the past is expired, even if the signature is valid. Clock skew between systems can cause short-lived failures right around the boundary.

Frequently asked questions

Does decoding prove a token is valid?

No. Decoding only makes the contents readable. Verification requires checking the signature, algorithm, issuer, audience, and expiry on a trusted server.

Why is my token rejected right after it was issued?

Check clock skew, audience mismatch, and whether the token was signed with the key your API expects.

Is it safe to paste a production token here?

Avoid doing so. A token is a credential until it expires. Use a test token when learning or debugging.

What is Base64URL?

A URL-safe variant of Base64 that avoids characters such as + and / so tokens can travel in headers and URLs safely.

Want to go deeper? Browse the API performance guides or open the documentation.