How to Enable 2FA on Cloudflare (Step-by-Step, 2026)

In the Cloudflare dashboard open My Profile > Authentication, select Set up under Two-Factor Authentication, click Add next to Mobile App Authentication, scan the QR code with 2Fa Live and save your backup codes.

Short answer: In the Cloudflare dashboard open My Profile > Authentication, select Set up under Two-Factor Authentication, click Add next to Mobile App Authentication, scan the QR code with 2Fa Live and save your backup codes.

Last verified 19 November 2026 against the vendor's official help page. Menu names can change, so follow the labels on your screen if they differ.

Before you start

  • A verified email address; Cloudflare warns you may lock yourself out otherwise.
  • A Cloudflare password: if you signed up with a social login such as Google or Apple, complete the password reset process first. Accounts using single sign-on cannot configure 2FA.
  • 2Fa Live open in a browser on the device that will hold your codes.

Steps

  1. Open My Profile. Log in to the Cloudflare dashboard and, under the My Profile dropdown, select My Profile.
  2. Authentication. Select Authentication, then under Two-Factor Authentication select Set up.
  3. Add Mobile App Authentication. Next to Mobile App Authentication select Add, and scan the QR code with 2Fa Live. If you cannot scan, select Can't scan QR code and follow the alternative steps.
  4. Enter the code and password. Enter the code shown in 2Fa Live, then your Cloudflare password, and select Next.
  5. Save backup codes. Review your backup codes and use Download, Print or Copy to save them, then select Next to finish.

Scan with 2Fa Live

When Cloudflare shows its QR code, open 2Fa Live and add a new account by scanning it. The QR code reader page can read the code for you. If you cannot scan, choose manual entry and type the setup key (also called the secret key) that Cloudflare displays, then give the entry a clear label so you can tell your accounts apart.

Finish by typing the 6-digit code that 2Fa Live shows back into Cloudflare. TOTP codes are time-based and change every 30 seconds by default, so enter the current one. 2Fa Live stores your secrets encrypted in your browser only; nothing is sent to a server.

Backup codes and recovery

Save Cloudflare's backup codes in a password manager or another secure place; each works once. To get a new set go to My Profile > Authentication > Two-Factor Authentication > Manage and select Regenerate beside Backup codes; regenerating invalidates the old codes.

2Fa Live keeps your data in this browser only, so clearing site data or switching browsers removes your accounts. Create a local backup from the Data Management section after each new account, and store it away from the device you use every day.

Troubleshooting

  • If you cannot sign in without your phone, use a backup code on the Two-Factor Authentication login page.
  • Cloudflare Access and Zero Trust authenticator enrolment is a separate flow from your dashboard 2FA.
  • If every code is rejected, set your device date and time to automatic and use the next code: TOTP depends on the clock.
  • Check that you are copying the code from the Cloudflare entry in 2Fa Live, not another account.

Source: Cloudflare official help page. Official Cloudflare Fundamentals docs page fetched.

Related guides

Frequently asked questions

Can I enable Cloudflare 2FA if I log in with Google?

Cloudflare says you must set a password first through password reset; then you can enable 2FA as normal.

Do accounts with single sign-on support 2FA here?

No. Cloudflare says accounts that use single sign-on cannot configure 2FA in the dashboard.

Is it safe to add my Cloudflare secret key to 2Fa Live?

2Fa Live stores your secrets encrypted in your browser only, not on a server. Still, treat the setup key like a password: never share it, and protect the device and browser profile you use.