Loading tool…

Example JWT

Click to load a sample token for testing (HS256, no production secrets):

Why Trust JWTValidator.org

  • 100% client-side β€” tokens and secrets never leave your browser
  • No account required β€” free forever, no sign-up
  • No data stored β€” we do not log, upload, or persist your tokens
  • Open process β€” see our Privacy Policy and About page

⚠️ Avoid pasting production secrets or live credentials. Use test tokens during development.

What This JWT Debugger Does

Deep inspection of JWT claims with expiration timeline, validation warnings, and issuer/audience checks. Built for OAuth 2.0 and OpenID Connect development workflows.

What Is a JWT?

A JSON Web Token (JWT) is a compact, URL-safe string defined by RFC 7519. It encodes claims as JSON and attaches a cryptographic signature so receivers can verify the token was issued by a trusted party and was not tampered with.

JWTs consist of three Base64URL-encoded parts separated by dots:

  • Header β€” algorithm (alg) and token type (typ)
  • Payload β€” claims such as sub, iss, aud, exp
  • Signature β€” HMAC or asymmetric signature over header + payload

JWTs are used by OAuth 2.0, OpenID Connect, Auth0, Firebase, AWS Cognito, and most modern API authentication systems.

How JWT Validation Works

JWT Debugger requires more than Base64 decoding. A secure verifier performs these steps on every request:

  1. Parse structure β€” confirm exactly three segments separated by dots
  2. Verify signature β€” HMAC with shared secret, or asymmetric verify with public key from JWKS
  3. Validate algorithm β€” reject unexpected alg values including none
  4. Check time claims β€” exp not past, nbf not future, allow clock skew
  5. Validate iss and aud β€” issuer and audience match your application configuration

Use JWT Validator for HMAC verification or JWKS Validator for RS256/ES256 with JWKS endpoints.

How to Use This Tool

  1. Copy a JWT from your application, API response, or browser dev tools
  2. Paste into the tool above and click the primary action button
  3. Review decoded output, validation result, or error message
  4. Use Copy buttons to export results for documentation or support tickets

Example Use Cases

  • Debug 401 Unauthorized errors from REST APIs
  • Inspect OAuth access tokens and OpenID Connect ID tokens
  • Verify token expiration before implementing refresh logic
  • Learn JWT structure during onboarding or security reviews

Common JWT Errors

developers encounter these errors frequently:

Browse the full JWT Error Directory for fixes with step-by-step instructions.

Best Practices for JWT Security

  • Never trust decoded payload without signature verification
  • Use short-lived access tokens (5–15 minutes) with refresh rotation
  • Whitelist allowed algorithms β€” never accept alg: none
  • Store tokens in httpOnly cookies, not localStorage (XSS risk)
  • Use RS256/ES256 for public APIs; protect HMAC secrets with 256+ bit random keys
  • Validate exp, iss, aud, and sub on every request
  • Never log full bearer tokens in application logs

Read our JWT Security Best Practices article and explore the Security Hub.

Explore JWT Guides, Blog, and Learning Path for deeper tutorials.

FAQ

What does the debugger show?

Decoded claims, expiration timeline, issuer/audience checks, and warnings.