Generate a PKCE code verifier and its S256 challenge locally, or check a verifier you already have against the conformance rules.
Ready to generate
Nothing is generated until you ask for it. The verifier comes from your browser's cryptographic random source and the challenge is hashed locally.
Drawn from crypto.getRandomValues. If that were unavailable this tool would refuse rather than fall back to Math.random, because a predictable verifier looks identical to a good one and defeats PKCE entirely.
The SHA-256 challenge. The verifier is hashed before it is sent, so intercepting the authorisation request reveals nothing usable. This is the only method worth using.
Press Generate to produce a verifier and its challenge.
A conforming pair is not a conforming implementation. PKCE only protects the exchange if the verifier is generated per authorisation attempt, stored where another application cannot read it, discarded after use, and if state is checked on the redirect. Follow your provider’s current documentation and RFC 7636 rather than treating this output as sign-off.
PKCE Code Challenge Generator runs entirely on your device — the verifier is generated and hashed in your browser and neither value is transmitted, logged or stored.
You’re on the Free plan. Compare plans
The verifier comes from crypto.getRandomValues, and this refuses to produce one if that is unavailable rather than falling back to Math.random. A predictable verifier defeats the entire purpose of PKCE while looking exactly like a correct one, so failing loudly is the only safe behaviour.
The challenge is the base64url of the verifier's SHA-256, computed locally through Web Crypto. This value is half of a credential; sending it to a server to be hashed would be absurd, and a tool that did so would be unusable for its actual purpose.
The plain method is offered because the specification defines it and people meet it in the wild, and it is labelled as providing no protection — because it provides none. The verifier travels in the authorisation request, so anything that can read that request can complete the exchange.
Between 43 and 128 characters. 32 random bytes base64url-encode to exactly 43, which is the minimum and entirely sufficient — the length is a consequence of the entropy rather than a target to pad towards.
Only if a provider genuinely cannot do S256. plain sends the verifier itself in the authorisation request, so anything that can observe that request can complete the exchange — which is the attack PKCE exists to prevent.
No. It is generated and hashed in your browser through Web Crypto. Nothing is transmitted, logged or stored, which is the only way a tool like this can be safe to use.
No. Generate a new one for every authorisation attempt and discard it after the exchange. A reused verifier turns a one-time binding into a standing credential.
No. PKCE only protects the exchange if the verifier is per-attempt, kept where another application cannot read it, and if state is checked on the redirect. Those are properties of your code, not of these two strings.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab