Skip to main content

OAuth 2.0 PKCE Flow Debugger

Generate PKCE code verifier/challenge pairs, build authorization URLs, and get ready-to-run token exchange commands for OAuth 2.0 PKCE flows.

✓ Cryptographically secure code_verifier ✓ SHA-256 code_challenge ✓ Full authorization URL

OAuth Provider Settings

Generated PKCE Values

Generating…
Generating…
Generating…

Authorization URL

Generating…

Redirect the user's browser to this URL to start the authorization flow.

Token Exchange curl (after receiving authorization_code)

Generating…

Replace AUTHORIZATION_CODE with the code received in the redirect callback.

Frequently Asked Questions

What is PKCE and why is it needed?▼

PKCE (Proof Key for Code Exchange) is a security extension to OAuth 2.0 that protects against authorization code interception attacks. It replaces the client_secret for public clients (SPAs, mobile apps) by using a cryptographically random code_verifier and its SHA-256 hash (code_challenge) that prove the same client that started the flow is completing it.

What is the difference between code_verifier and code_challenge?▼

The code_verifier is a cryptographically random string (43-128 characters) generated fresh for each authorization request. The code_challenge is the BASE64URL-encoded SHA-256 hash of the code_verifier. You send the challenge in the authorization request and the verifier in the token exchange request.

What characters are allowed in a code_verifier?▼

Per RFC 7636, the code_verifier must only use unreserved URI characters: A-Z, a-z, 0-9, hyphen, period, underscore, and tilde. It must be between 43 and 128 characters long. Do NOT use base64 standard encoding — use base64url (URL-safe, no padding).

What should the redirect_uri be for a SPA?▼

For a SPA, the redirect_uri is typically the same origin as your app, e.g. `https://myapp.com/callback`. During development, `http://localhost:3000/callback` is commonly used. The exact URI must match what's registered in your OAuth provider's settings.

Is PKCE safe to use without a client_secret?▼

Yes — that's the point. PKCE was designed for public clients that cannot safely store a client_secret. The code_verifier/challenge pair provides equivalent security guarantees for single-use authorization codes without requiring a secret embedded in client-side code.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

OpenAPI Validator OAuth2 Flow Visualizer API Response Mock Generator API Response Time Tester OAuth2 Flow Tester OpenAPI Schema Validator OpenAPI Mock Generator OAuth2 Flow Debugger API Test Case Generator API Request Builder HTTP Security Headers Generator API Mock Server Config Generator HTTP Security Headers Checker authentik API Rate Limit Calculator API Response Formatter & Analyzer HTTP API Tester LLM Cost Calculator AI Prompt Cost Calculator REST API Request Builder Content Security Policy Builder LLM Prompt Cost Calculator API Response Mocker HTTP Header Inspector AI Rate Limit Calculator Prompt Injection Tester GCP Service Account Key Auditor HTTP Headers Analyzer API Key Generator AI Doc Generator — Pro Tool AI System Guardian .htaccess Generator HTTP Methods Reference HTTP Code Snippet Generator HTTP Status Code Reference HTTP Status Code Reference JSON Diff Viewer JSON Diff nginx Config Generator Password Strength Checker Rate Limiter Tester API Changelog Generator HTTP Mock Response Builder HMAC Generator CSP Header Builder Rate Limit Calculator CORS Policy Builder AWS IAM Policy Validator HTTP Cookie Parser SBOM Generator HTTP Status Code Lookup TOTP Code Generator HTTP Status Code Lookup Vue Component Generator HTTP Status Code Reference LLM Context Window Calculator HTTP Header Analyzer LLM Token Counter Dockerfile Linter mTLS Certificate Chain Builder Prompt Token Estimator Mock Service Worker (MSW) API Mocking Guide Pulumi Modern IaC Guide HashiCorp Vault Secrets Management Guide AES Encryptor / Decryptor Casdoor Docker Layer Optimizer HTML5 Canvas API Playground Token Context Calculator GraphQL Client Configurator Axios Interceptor Builder OpenAI Function Calling Generator Token Counter & Cost Estimator AI API Rate Limit Calculator Password Strength Analyzer

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$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.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →