Free tool
Cloudflare Turnstile token checker
Paste a token from one of this site's Cloudflare Turnstile demo widgets, say which widget gave it, and this page asks Cloudflare's siteverify with that widget's secret. You get the verdict as Cloudflare gave it: whether the token passed, for which hostname, action and cData, and why not if it failed.
- Checks this site's four demo widgets only
- A token passes once, within 300 seconds
- Never logged or kept
Check a token
A token comes from a demo widget solved in your browser, or from a task pointed at a demo page: its solution.token. It passes once, within 300 seconds of the solve. Checks have a budget per address.
Get a token from a demo widget
The verdict
The token goes to this site's API, which asks Cloudflare's siteverify with the widget's secret key. The reply is shown as it came.
No token checked yet
Paste a token and say which widget gave it, then check it with Cloudflare.
- success
- not checked yet
- hostname
- not checked yet
- challenge_ts
- not checked yet
- action
- not checked yet
- cdata
- not checked yet
- error-codes
- not checked yet
- Widget
- not checked yet
- Round trip
- not checked yet
What the error codes mean
The token you checked
siteverify
What the error codes mean
A refused token comes back with one or more of Cloudflare's siteverify error codes. Most failures of a solved token are timeout-or-duplicate or invalid-input-response.
missing-input-secret- No secret key reached siteverify: a fault in the check, not in your token.
invalid-input-secret- The widget's secret key was refused: a fault in this site's settings, not in your token.
missing-input-response- No token reached siteverify.
invalid-input-responseCommon- The token is malformed, expired, or was issued for another widget. Solve this page's widget again.
bad-request- siteverify could not read the request.
timeout-or-duplicateCommon- The token was already checked, or is older than 300 seconds. A token passes once: solve again.
internal-error- Cloudflare had an internal error. Check a new token in a moment.
Your own widget
Check tokens for your own widget
Your server checks your widget's tokens itself, with your widget's secret key: one POST to siteverify. Replace YOUR_SECRET_KEY and TOKEN_FROM_THE_FORM, or run it as it is with Cloudflare's test secret and dummy token.
# Ask Cloudflare about a token, as a site's server does.
curl -s https://challenges.cloudflare.com/turnstile/v0/siteverify \
--data-urlencode "secret=YOUR_SECRET_KEY" \
--data-urlencode "response=TOKEN_FROM_THE_FORM"
// Ask Cloudflare about a token, as a site's server does.
const reply = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", {
method: "POST",
body: new URLSearchParams({ secret: "YOUR_SECRET_KEY", response: "TOKEN_FROM_THE_FORM" }),
});
const verdict = await reply.json();
console.log(verdict.success, verdict["error-codes"], verdict.hostname, verdict.action);
# Ask Cloudflare about a token, as a site's server does.
import requests
verdict = requests.post(
"https://challenges.cloudflare.com/turnstile/v0/siteverify",
data={"secret": "YOUR_SECRET_KEY", "response": "TOKEN_FROM_THE_FORM"},
timeout=10,
).json()
print(verdict["success"], verdict["error-codes"], verdict.get("hostname"), verdict.get("action"))
// Ask Cloudflare about a token, as a site's server does.
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
)
func main() {
res, err := http.PostForm("https://challenges.cloudflare.com/turnstile/v0/siteverify", url.Values{
"secret": {"YOUR_SECRET_KEY"},
"response": {"TOKEN_FROM_THE_FORM"},
})
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var verdict struct {
Success bool `json:"success"`
ErrorCodes []string `json:"error-codes"`
Hostname string `json:"hostname"`
Action string `json:"action"`
}
if err := json.NewDecoder(res.Body).Decode(&verdict); err != nil {
log.Fatal(err)
}
fmt.Println(verdict.Success, verdict.ErrorCodes, verdict.Hostname, verdict.Action)
}
- File
- siteverify.sh 5 lines
- Needs
- curl
- Run
bash siteverify.sh
- File
- siteverify.mjs 8 lines
- Needs
- Node.js 22 or later
- Run
node siteverify.mjs
- File
- siteverify.py 10 lines
- Needs
- Python 3.10 or later and the requests package
- Run
python siteverify.py
- File
- siteverify.go 32 lines
- Needs
- Go 1.24 or later
- Run
go run siteverify.go
Can this checker verify a token from any website?
No. siteverify needs the secret key of the widget that issued the token, so this page checks tokens from this site's demo widgets only. For your own widget, call siteverify from your server with your secret, as the code on this page does.
Why does a token pass once and then fail?
Cloudflare accepts each token once, within 300 seconds of the solve. A second check of the same token answers timeout-or-duplicate.
Is the token I paste stored?
No. It is sent to Cloudflare's siteverify with the widget's secret, and the verdict comes back to you; the token is never logged or kept.
ZeroCaptcha You build. We solve.
Need a token to check?
Create an account, add $10 and run your first task.