Skip to content

For testing your own site

Cloudflare Turnstile test sitekeys and secret keys

Cloudflare publishes test keys for Cloudflare Turnstile so a site can test its own forms without a real challenge: sitekeys that always pass, always fail or force an interactive challenge, and secret keys that decide what siteverify answers. Each is below, with an example you can run.

Testing a solver rather than your own site?

A test sitekey passes or fails without any real challenge, so it proves nothing about a solver. Test against a real widget, such as the demo pages here.

Sitekeys

The test sitekeys, live

Put a test sitekey in data-sitekey, or in the sitekey option of turnstile.render(). Render each one here to see what it does: the page renders it explicitly and shows the token, or the error, its callbacks report.

Cloudflare Turnstile test sitekeys
SitekeyBehaviourWidgetTry it
1x00000000000000000000AAAlways passesVisible

2x00000000000000000000ABAlways failsVisible

1x00000000000000000000BBAlways passesInvisible

2x00000000000000000000BBAlways failsInvisible

3x00000000000000000000FFForces an interactive challengeVisible

Values from Cloudflare's testing documentation (developers.cloudflare.com/turnstile/troubleshooting/testing), checked on 1 October 2026. Every test sitekey gives the dummy token XXXX.DUMMY.TOKEN.XXXX.

Secret keys

The test secret keys

Configure a test secret key as your server's Turnstile secret, the value it sends to siteverify. The code beside this runs as it is: it asks Cloudflare about the dummy token XXXX.DUMMY.TOKEN.XXXX with the secret you pick.

Cloudflare Turnstile test secret keys
Secret keysiteverify answers
1x0000000000000000000000000000000AAAlways passes validation
2x0000000000000000000000000000000AAAlways fails validation, with invalid-input-response
3x0000000000000000000000000000000AAFails as a token already spent, with timeout-or-duplicate
Secret
# Ask Cloudflare about a token, as a site's server does.
curl -s https://challenges.cloudflare.com/turnstile/v0/siteverify \
  --data-urlencode "secret=1x0000000000000000000000000000000AA" \
  --data-urlencode "response=XXXX.DUMMY.TOKEN.XXXX"
File
siteverify.sh 5 lines
Needs
curl
Run
bash siteverify.sh

What siteverify answers Example: the fields that matter

{
  "success": true,
  "error-codes": []
}

A test plan

Which pair tests what

Pair a sitekey in the page with a secret on the server. Keep the real keys out of test environments, and the test keys out of production.

Which sitekey and secret pair tests what
What you testSitekeySecret keyWhat should happen
Your form accepts a good token1x00000000000000000000AA1x0000000000000000000000000000000AAsiteverify answers success: true
Your server refuses a bad token, whatever the browser says1x00000000000000000000AA2x0000000000000000000000000000000AAThe widget passes; siteverify answers invalid-input-response
Your server handles a replayed token1x00000000000000000000AA3x0000000000000000000000000000000AAThe widget passes; siteverify answers timeout-or-duplicate
Your page handles a widget that fails2x00000000000000000000AB2x0000000000000000000000000000000AAThe widget fails, and siteverify refuses whatever is sent
Your page works while a visitor must click3x00000000000000000000FF1x0000000000000000000000000000000AAThe widget asks for a click, then passes
A form with the sitekey that always passes
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<form method="post" action="/login">
  <div class="cf-turnstile" data-sitekey="1x00000000000000000000AA"></div>
  <button type="submit">Sign in</button>
</form>
<!-- The widget passes at once and puts XXXX.DUMMY.TOKEN.XXXX in cf-turnstile-response. -->

The widget passes at once and puts XXXX.DUMMY.TOKEN.XXXX in cf-turnstile-response. A production secret key rejects the dummy token, so pair a test sitekey with a test secret key.

Testing a solver rather than your own site? Test sitekeys prove nothing about one: use the live demo pages and the Cloudflare Turnstile token checker.

FAQ

Test sitekey questions

Anything else: the docs or contact us.

What are Cloudflare Turnstile's test sitekeys?

1x00000000000000000000AA always passes and 2x00000000000000000000AB always fails, both visible; 1x00000000000000000000BB and 2x00000000000000000000BB do the same invisibly; 3x00000000000000000000FF forces an interactive challenge.

What token does a test sitekey give?

The dummy token XXXX.DUMMY.TOKEN.XXXX. Production secret keys reject it, so pair a test sitekey with a test secret key.

Can a solver be tested with the test sitekeys?

No. A test sitekey passes or fails without any real challenge, so it proves nothing about a solver. Test a solver against a real widget, such as the demo pages here.

You build. We solve.

Testing a solver instead?

Create an account, add $10 and run your first task.