Report

Help us improve this tool

OAuth PKCE Generator

Create a cryptographically random PKCE code verifier and S256 code challenge for OAuth 2.0 authorization code flows.

O M T

Generate PKCE code verifier and S256 code challenge

PKCE (RFC 7636) protects OAuth authorization-code flows for public clients. You generate a high-entropy code_verifier, hash it with SHA-256, and send the URL-safe Base64 digest as code_challenge with code_challenge_method=S256. Later, the token request includes the original verifier so the server can confirm the same party started and finished the flow.

Verifier rules

  • Length between 43 and 128 characters after encoding.
  • Characters limited to unreserved URI characters: [A-Z] [a-z] [0-9] - . _ ~.
  • Use S256 unless your identity provider documents another method.

Pair with OAuth Authorization URL Builder when crafting authorize links.

Frequently Asked Questions

Is the verifier stored?

No. Values are generated in your browser with crypto.getRandomValues and are not sent to our servers. Copy them into your app before navigating away.

Can I paste my own verifier?

Yes. The tool validates length and charset, then recomputes the S256 challenge automatically.