Skip to main content
SEC

JWT Decoder

Decode and inspect JSON Web Tokens

Advertisement
Advertisement

What is a JWT Decoder?

Parses and displays the header and payload of JSON Web Tokens (JWTs), the compact, base64url-encoded credentials widely used for authentication and information exchange between APIs, identity providers and single-page apps. Paste a token and this tool splits its three dot-separated segments, decodes the header (algorithm, token type) and payload (claims like sub, exp and iat) as readable JSON, and flags whether the token has expired. Decoding is display-only: it does not verify the signature, which must still be checked server-side with the signing key.

How to Use This Tool

  1. Paste the token, Copy the full three-part token (header.payload.signature) into the JWT Token box; a sample token is preloaded so you can try it immediately.
  2. Click Decode, The token is split and base64url-decoded instantly in your browser.
  3. Read the claims, Check Valid, Algorithm, Expired and Expiration, then inspect the Header and Payload JSON for the claims you need.

Understanding the Results

Valid confirms the structure decoded cleanly; anything else shows an Error row instead, Invalid JWT format means the token does not have exactly three dot-separated parts, while Failed to decode JWT means a segment is not valid base64url JSON. Algorithm is the alg claim from the header (e.g. HS256). Expired compares the exp claim against the current time, and Expiration renders it as an ISO date (or No expiration when no exp claim exists). Header and Payload show the full decoded JSON.

Tips & Best Practices

• A readable payload is not a valid token, always verify the signature server-side with the secret or public key before trusting any claim.

• Debugging a 401? Decode the access token first: an Expired Yes or a wrong aud/iss claim explains most rejections before you touch server logs.

• Treat decoded tokens like passwords in screenshots and tickets, redact the signature segment and any sensitive claims before sharing.

Frequently Asked Questions

JWT payloads are only base64url-encoded, not encrypted, so anyone can decode and re-encode them, but without the signing key the signature will no longer verify. That is why servers must always verify the signature: decoding alone never proves a token is genuine.

The input does not contain exactly three dot-separated segments (header.payload.signature). This usually means the token was truncated during copy-paste, wrapped across lines, or pasted with a Bearer prefix, paste only the raw token.

Click Decode and read the Expired row: it compares the payload's exp claim (seconds since epoch) with the current time. The Expiration row shows the same moment as a readable ISO date, or No expiration if the token carries no exp claim.

Decoding runs entirely in your browser, the token is never sent to any server, and closing the tab clears it from memory. Still, a JWT is a bearer credential, so avoid pasting production tokens on shared screens.

Advertisement

Sized this for your site?

Free engineers turn these numbers into a working design, topology, hardware and quote included.