Debugg.ai
Developer Tool

JWT Decoder

Decode and inspect JSON Web Tokens. View header, payload, and expiration info instantly.

What is a JWT?

JSON Web Token (JWT) is a compact, URL-safe token format used for securely transmitting information between parties. JWTs are commonly used for authentication and information exchange.

JWT Structure

  • Header: Algorithm and token type
  • Payload: Claims (user data, expiration, etc.)
  • Signature: Verification hash

How to decode a JWT

  1. Paste the token into the input box. A JWT is three Base64URL segments separated by dots, so it looks like xxxxx.yyyyy.zzzzz. Use the example button if you just want to see how the output looks.
  2. Click decode. The page splits the token, decodes the header and payload, and shows them as formatted JSON.
  3. Read the claims table. Well-known claims such as iss, sub, aud, exp and iat are labelled, and time-based claims are shown as dates.
  4. Check the expiry. If the token has an exp claim, the tool tells you whether it has expired or how long it has left.
  5. Copy the header, the payload, or both as JSON to paste into a bug report, a test fixture, or a chat with a teammate.

Decoding is not the same as verifying. Anyone can read the payload of a JWT, which is why you should never put secrets in it. The signature is only meaningful when your server checks it against the secret or public key, and this tool does not do that check.

When a JWT decoder helps

  • Debugging login failures: check whether the exp claim has passed, or whether the aud and iss values match what your API expects.
  • Inspecting auth provider output: see which claims your identity provider actually puts in the token, such as email, locale, or custom roles.
  • Checking the algorithm: the header's alg field tells you whether the token uses HMAC (HS256), RSA (RS256), ECDSA (ES256) or another scheme.
  • Writing tests: when you build browser tests for a signed-in flow, decoding a sample token shows which claims your fixtures need to include.

DebuggAI runs end-to-end browser tests on every pull request, including login and session flows. See PR Copilot or the AI Test Suites page to learn more, and try the JSON Validator or JSON Formatter for the decoded payload.

Need unique identifiers? Try our UUID Generator or Random UUID Generator.