OAuth 2.0 Token Debugger
Decode any OAuth 2.0 access token, OIDC ID token, or JWT. Inspect all claims with descriptions, check expiry status, view granted scopes, and detect token type — entirely client-side.
Frequently Asked Questions
What is an OAuth 2.0 access token?▼
An OAuth 2.0 access token is a credential issued by an authorization server that grants a client access to specific resources on behalf of a user. Modern OAuth implementations typically use JWT (JSON Web Token) as the token format — a compact, self-contained structure with header, payload, and signature. The payload contains claims like user ID (sub), expiry (exp), issuer (iss), and granted scopes.
Is it safe to paste my token into this tool?▼
Yes — this debugger runs entirely in your browser using JavaScript. Your token is never sent to any server or third party. However, as a best practice, avoid pasting real production tokens that grant access to sensitive systems. Rotate tokens after debugging sessions if in doubt.
What are OAuth 2.0 scopes?▼
Scopes are space-separated strings in the scope claim that define what the token is authorized to do. Standard OIDC scopes include openid (establishes identity layer), profile (name, picture), and email. Application-specific scopes follow formats like read:users or write:orders. The token holder can only perform actions covered by the granted scopes.
What is the difference between an access token and an ID token?▼
An access token is used to authorize API calls — it proves the bearer is allowed to perform certain actions. An ID token (OIDC) is used to authenticate — it proves who the user is and contains identity claims (name, email, picture). ID tokens contain the at_hash claim and are typically shorter-lived. Access tokens are sent with API requests; ID tokens are consumed by the client to establish a user session.
Why can't I verify the signature here?▼
JWT signature verification requires either your HMAC secret key (for HS256) or the issuer's public key (for RS256/ES256). These keys should never be exposed in a browser. This tool decodes the header and payload (which are just base64url-encoded) but cannot cryptographically verify the signature without the key. For production verification, use your backend with a library like jsonwebtoken (Node.js) or python-jose (Python).
What does 'exp' mean and why is token expiry important?▼
exp (expiration time) is a Unix timestamp (seconds since January 1, 1970). Any token with an exp value in the past is considered expired and should be rejected by resource servers. Access tokens are typically short-lived (minutes to hours) to limit damage if stolen. Always check token expiry before using it in API calls to avoid 401 Unauthorized errors.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
JWT Decoder
Free JWT decoder. Inspect any JSON Web Token
Open free tool →
OpenAPI Validator
Paste your OpenAPI 3.x spec (YAML or JSON) to validate structure, find missing required fields, detect duplicate paths, check for missing operationIds, and get errors and warnings with path references.
Open free tool →
API Response Mock Generator
Generate realistic mock API responses with custom status codes, headers, and JSON body. Quick templates for 200, 401, 404, 429, 500 and more. Runs in your browser.
Open free tool →
More Free Tools
Related Articles
JWT Authentication Best Practices 2026: Secure Your API Tokens
Complete JWT security guide for 2026. Covers RS256 vs HS256 signing, token storage strategies, expiry and refresh token patterns, revocation, common vulnerabilities, and a production security checklist.
Web Authentication Patterns in 2026: OAuth, Passkeys, and JWT Best Practices
A complete guide to modern web authentication: OAuth 2.0/OIDC, Passkeys/WebAuthn, JWT best practices, session management, and MFA strategies for secure apps.
JWT Token Decoder: How to Debug Authentication Issues
Learn how to use a JWT token decoder to diagnose 401 errors, expired tokens, missing claims, and auth misconfiguration. Practical debugging guide with code examples.
JWT Tokens Explained: How to Decode and Debug Them
Understand JSON Web Tokens from header to signature. Learn how to decode JWTs, read their claims, debug authentication issues, and use free online JWT tools.
JWT Decoder: How to Read Token Payloads
Learn how to decode JWT tokens and read their payloads. A practical guide to JWT structure, claims, expiry checking, and debugging auth issues with a free online decoder.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →