OAuth Token Response Inspector
Decode every token in a response, follow its lifetime and understand each scope — without sending credentials anywhere.
Token response
Paste the JSON from your token endpoint, an OAuth error response, or a URL fragment such as #access_token=…&expires_in=3600. An iat claim or issued_at field is used to age relative expiries correctly.
Analysis
Paste a token response to inspect it
JWTs are decoded for display only, and nothing is stored or uploaded.
Details
This tool parses the JSON bundle returned by an OAuth 2.0 token endpoint rather than a single JWT. It decodes each access, refresh and id token for display (never verifying signatures), computes lifetimes from the signed exp claim or from expires_in anchored at the token's iat, and explains standard OIDC/OAuth scopes. A compare mode diffs two responses, and sanitize mode masks token values so you can safely share structure in a bug report. Tokens are credentials: everything runs locally, nothing is uploaded, stored in localStorage or placed in the URL.
More examples
A token endpoint response
{
"access_token": "eyJhbGciOiJFUzI1NiJ9.eyJzdWIiOiJ1c3JfMTIzIiwiYXVkIjoiYXBpIiwiZXhwIjoxNzAwMDAzNjAwfQ.signature",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "rt_9f2a",
"scope": "openid profile email offline_access",
"id_token": "eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2lkLmV4YW1wbGUuY29tIiwic3ViIjoidXNyXzEyMyIsImF1ZCI6ImNsaWVudCIsIm5vbmNlIjoibi00ZjhjIn0.signature"
}The bundle shows three cards: an access JWT with claims, an opaque refresh token with no RFC-defined expiry, and an id_token with iss, sub, aud and nonce. Known scopes are explained and unknown ones are counted.
Stale response with exp and expires_in
{
"access_token": "<JWT with iat and exp in the past>",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "openid"
}The signed exp claim wins over expires_in, so a pasted old response is correctly shown as expired and a lifetime-disagreement note explains the mismatch.
OAuth error response
{
"error": "invalid_grant",
"error_description": "The authorization code has expired."
}Error responses are rendered as a prominent alert with the provider's description, instead of an empty set of token cards.
Examples
Known and unknown scopes
"scope": "openid profile email offline_access custom:read:reports"openid, profile, email and offline_access are explained; custom:read:reports is a plain chip counted as one unknown scope.Provider-specific scopes are never guessed — they remain visible so you can compare them with your own documentation.
Stale response with both exp and expires_in
JWT with iat = 10:00, exp = 11:00 and "expires_in": 7200, pasted at 15:00Expired 4h 0m ago, with a note that expires_in disagrees with the signed exp.The signed exp wins. Anchoring expires_in at the paste time would have wrongly reported the token as valid for another two hours.
About this tool
OAuth Token Response Inspector turns the JSON bundle from a token endpoint into a debugging dashboard. Each access, refresh and id token gets its own card: JWTs are base64url-decoded into a claims table with the signature displayed but never verified, and opaque tokens are labeled as such instead of silently showing nothing.
Lifetimes are computed from the signed exp claim when present, otherwise from expires_in anchored at the token's iat (or issued_at) rather than at the moment you pasted. That distinction makes stale responses show as expired instead of freshly minted. A scope panel explains standard OIDC scopes, a compare mode diffs two responses, and sanitize mode masks token values for bug reports. Everything runs in the browser tab: no upload, no localStorage, no URL state.
What this tool does not do
- Decoding is base64url only; signatures are never verified and encrypted JWE payloads cannot be read (only the protected header).
- No request is made to the provider: opaque tokens cannot be introduced and refresh tokens are never exchanged or revoked.
- Relative expiry needs an iat or issued_at field to describe a stale response accurately; without one the paste time is used and flagged.
- Scope explanations come from a built-in OIDC/common-scope map; provider-specific scopes are counted as unknown rather than guessed.
- Sanitize masks token strings and signatures, but claim values remain readable for debugging.
How to use this tool
Paste a response
Copy the full JSON body from your token endpoint, an OAuth error body, or an implicit-flow URL fragment, and paste it into the input panel. A file picker and a clipboard button are also available.
Read the token cards
Inspect the access, refresh and id token cards. JWT cards show registered claims first, the untouched signature and a lifespan bar with a live countdown; opaque cards show only what the response supplies.
Check scopes and notes
Hover a scope chip for its meaning; unknown scopes are counted but not guessed. The notes list covers zero or conflicting expiries, reversed claims, token_type mistakes and refresh-token semantics.
Diff and share safely
Enable Compare two responses and paste an older response to see added/removed scopes and changed claims. Turn on Sanitize, then copy the Markdown report to share the structure without live credentials.
Use cases
Debug an expired session
Paste the response captured earlier in the day and see an explicit past-tense expiry instead of a silent success.
Verify scope grants
Compare the response scope with the scp claim and diff before/after responses when a permission change does not take effect.
Share a safe bug report
Copy the sanitized Markdown analysis: structure, claims and anomalies are preserved while token values and signatures are masked.
Fields this inspector understands
| Field | How it is used |
|---|---|
| access_token / id_token | Classified as JWT (3 segments), unsecured JWT (2), JWE (5) or opaque; JWT header and payload are decoded for display only. |
| refresh_token | Shown as present, opaque or JWT; provider-specific refresh_token_expires_in feeds its timeline when available. |
| expires_in | Seconds, also accepted as a numeric string; interpreted relative to iat/issued_at, never relative to a stale paste time when a signed exp exists. |
| exp / iat / nbf | Numeric JWT time claims in seconds since the epoch; exp is authoritative for expiry and iat anchors the lifespan bar. |
| scope / scp | String or array, split on whitespace from the response and from token claims; standard OIDC scopes are explained, unknown ones counted. |
| error / error_description | Rendered as a prominent OAuth error alert with remediation context from the provider. |
| Clock skew (min) | Shifts the effective 'now' by ± minutes so you can reproduce just-expired and just-valid edge cases. |
Extra response fields are preserved in the raw view; the parser accepts any JSON object as a superset.
Common mistakes
Mistake:Trusting expires_in from a response pasted hours ago.
Fix:Include iat in your JWT or an issued_at field; otherwise the tool tells you it had to anchor relative expiry to paste time.
Mistake:Treating the decoded payload as proof of authenticity.
Fix:Every JWT card is labeled an unsigned view. Verify signatures with a dedicated validator using the provider's JWKS.
Mistake:Sharing a pasted response verbatim in a ticket.
Fix:Turn on Sanitize first: it masks token strings and signatures in cards, raw JSON and the Markdown export.
Frequently asked questions
Is pasting my token here safe?
The response is parsed entirely inside this browser tab. It is never uploaded, written to localStorage or copied into the URL, and the tool never calls your provider's refresh or revocation endpoints. Tokens are live credentials, so use Sanitize before copying anything into a ticket and clear the input when you are done.
What does expires_in actually measure?
It is the number of seconds the access token remains valid, counted from when the provider issued it — not from when you pasted the response. When the JWT has an iat claim or the response has issued_at, the tool uses that as the start. If the token also has a signed exp, that authoritative timestamp wins and a disagreement is reported.
Why is my access token not a JWT?
OAuth 2.0 does not require access tokens to be JWTs. Many providers issue an opaque string that only their introspection endpoint can interpret. The inspector labels it as opaque, still shows its token_type and relative expiry, and does not pretend to decode claims that are not there.
What is the nonce claim for?
In an OIDC id_token, nonce ties the token to a particular authorization request: your client stores a random value in the request and checks that the same value came back. The inspector displays and flags it for comparison, but it cannot verify the match because the original request was not provided.
Do refresh tokens expire?
RFC 6749 defines no expires_in for refresh tokens, so most responses give no expiry at all. Providers may rotate refresh tokens on every use, revoke them on logout, or expose a custom field such as refresh_token_expires_in — which this tool uses when present. Treat 'no expiry in response' as 'the provider decides'.
References & standards
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Android Network Security Config Builder
Generate network_security_config.xml with cleartext rules, trust anchors, certificate pinning and debug-only CAs — plus the manifest snippet and file placement checklist.
Ansible Vault Encrypt/Decrypt
Encrypt secrets into $ANSIBLE_VAULT;1.1;AES256 format or decrypt vault content with its password — locally in your browser, drop-in compatible with ansible-vault.
Argon2 Hash Generator & Verifier
Generate Argon2id/2i/2d hashes with proper m/t/p parameters and verify PHC strings — reference algorithm in your browser, nothing uploaded.
AWS Signature V4 Builder
Build AWS Signature V4 headers and presigned URLs from a canonical request — signed curl, key chain and debug diff, computed locally in your browser.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.