---
title: Rotate secret key · Cloudflare Turnstile docs
description: "You can rotate the secret key using the following steps:"
lastUpdated: 2025-09-04T15:24:34.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/turnstile/troubleshooting/rotate-secret-key/
  md: https://developers.cloudflare.com/turnstile/troubleshooting/rotate-secret-key/index.md
---

You can rotate the secret key using the following steps:

1. In the Cloudflare dashboard, go to the **Turnstile** page.

   [Go to **Turnstile**](https://dash.cloudflare.com/?to=/:account/turnstile)

2. [Create a new Turnstile widget](https://developers.cloudflare.com/turnstile/get-started/).

3. In the widget overview, select **Settings** > **Rotate Secret Key**.

4. Configure your website to use the new secret key.

The rotation occurs over the course of two hours. During this time, both the old secret key and the new secret key are valid. This allows you to swap the secret key while avoiding any issues with your website.
