Skip to content

Menu

OAuth Token Debugger

Decode and inspect OAuth tokens

Runs entirely in your browserAuth & SecurityFree, no sign-up
Loading tool

01What is OAuth Token Debugger?

When an API call fails with a 401, the token is the first thing to check. OAuth Token Debugger takes a JWT-format OAuth or OpenID Connect token, splits it on its dots, Base64URL-decodes the header and payload, and pretty-prints both as JSON. Payloads are decoded as UTF-8, so accented names and other non-ASCII claims display correctly. A leading "Bearer " is stripped if you paste a whole Authorization header value. Where it differs from a plain JWT decoder is the interpretation. Scopes are read from scope or scp. A space- or comma-separated string works, and so does an array, which is how some providers send scp. Each scope shows as a chip with a count. exp and iat become plain durations, such as "2h 14m", "Expired 3d 1h ago" or "45m ago". An iat in the future is flagged, which usually points at clock skew. The token type label comes from evidence in the token, checked in order. A typ header of at+jwt marks an access token in the RFC 9068 profile. A nonce, at_hash or c_hash claim suggests an OpenID Connect ID token. A scope or scp claim suggests an access token. Otherwise you see "JWT (type not stated)". Labels that say "likely" are guesses from claims, and the tool says so. The grant type appears only when the token states it, in a grant_type claim or Auth0's gty claim. Most providers do not record the grant in the token. Guessing would mislead you, so the field reads "Not stated in token" instead. A short example: a token with header {"alg":"RS256","typ":"at+jwt"} and payload {"sub":"u1","scope":"read write"} is labelled "Access Token (RFC 9068)", with two scope chips, read and write. With no exp claim, the Expires field says "No expiration". Some limits you should know. The signature is never checked, so the Not expired badge only means exp is in the future. A token with no exp at all also shows Not expired. Encrypted JWE tokens (five parts) and opaque tokens are rejected with a message explaining why, and opaque ones point you to token introspection (RFC 7662). There is no check of aud or iss. Copy JSON exports the decoded header and payload. Everything runs in your browser.

Developers wiring an API to an identity provider who need to see which scopes, audience and expiry a real access or ID token carries. The tool runs entirely in your browser, so your data never leaves your device.

02How to use OAuth Token Debugger

  1. Paste the token into the Token box. A 'Bearer ' prefix is removed for you.
  2. Read the Expired or Not expired badge and the detected token type at the top.
  3. Review the decoded Header and Payload panels.
  4. Check Token Details for Token Type, Grant Type, Expires and Issued, plus the Scopes list.
  5. Click Copy JSON to save the decoded header and payload, or Reset to clear the box.

03Worked examples

Input: JWT with header {"alg":"RS256","typ":"at+jwt"} and payload {"sub":"u1","scope":"read write"}
Result: Token type: Access Token (RFC 9068); scopes: read, write; grant type: Not stated in token; expiry: No expiration
The at+jwt typ header is what identifies an RFC 9068 access token.
Input: JWT with payload {"sub":"u1","nonce":"n-0S6","aud":"c1"}
Result: Token type: ID Token (OIDC, likely); no scopes
A nonce, at_hash or c_hash claim is treated as a sign of an OIDC ID token.
Input: Bearer <JWT with payload {"sub":"u1","scp":["orders.read","orders.write"]}>
Result: Token type: Access Token (likely); scopes: orders.read, orders.write
A leading 'Bearer ' is stripped, and the array-valued scp claim is read as well as the space-separated scope claim.
Input: JWT with payload {"sub":"u1","gty":"client-credentials","scope":"a,b"}
Result: Token type: Access Token (likely); scopes: a, b; grant type: client-credentials
Auth0's gty claim is shown as the grant type, and comma-separated scopes are split too.
Input: JWT with payload {"sub":"u1","exp":1600003600}
Result: Token type: JWT (type not stated); badge: Expired; expires: Expired 2264d 3h ago
exp is 2020-09-13 13:26:40 UTC. The relative figure depends on when you run it; this was captured on 2026-11-25.
Input: gho_abc123
Result: Error: Not a JWT. Expected 3 parts (header.payload.signature). Opaque access tokens can't be decoded; use the provider's introspection endpoint (RFC 7662).

04Common use cases

  • Checking whether an access token from Auth0, Okta, Microsoft Entra ID or Keycloak actually contains the scope your API requires
  • Confirming a token's expiry when users report being logged out sooner than the session settings suggest
  • Telling an ID token apart from an access token when a single-page app sends the wrong one to the backend
  • Seeing whether a machine-to-machine token from Auth0 carries gty client-credentials
  • Inspecting custom claims like org_id or tier that an API gateway adds
  • Spotting an iat in the future, which points to clock skew between the issuer and your servers

05Tips

  • Not expired only means exp is in the future, or that there is no exp. The signature is not verified, so never base authorization on this view.
  • Opaque access tokens (random strings, not three dot-separated parts) cannot be decoded here. Use your provider's introspection endpoint (RFC 7662).
  • Check aud as well as scopes. A token issued for a different API should be rejected even if the scopes look right.
  • Labels marked 'likely' are inferred from claims. The typ header or your provider's docs are the authority.
  • Microsoft Entra ID puts delegated scopes in scp as a space-separated string. The tool reads it the same way as scope.

06Related concepts

JWT, OAuth 2.0, OpenID Connect, Access token scopes, Token expiry.

Frequently Asked Questions

What is OAuth Token Debugger?

OAuth Token Debugger is a free, browser-based developer tool on AIDToolStack. Decode and inspect OAuth tokens It requires no installation or sign-up and works entirely in your browser.

Is OAuth Token Debugger free to use?

Yes. No sign-up, no fees and no usage cap.

Does OAuth Token Debugger store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe