X (Twitter) guide

Twitter Two-Factor Authentication on X: Setup and Backup Codes

How to turn on 2FA on X, which method to pick, where the backup code fits, and what to do if you lose your phone or security key without losing the account.

X (Twitter) guide cover: “Twitter Two-Factor Authentication on X: Setup and Backup Codes”, with the Mexaccs mascot checking a security checklist

How do I turn on two-factor authentication on X?

Open Settings and privacy, then Security and account access, then Security, then Two-factor authentication. Pick an authentication app or a security key, confirm your password, and save the backup code X gives you. As of October 2026, X's help center lists three methods: text message, authentication app and security key.

Twitter two factor authentication still exists under the new name. People search for "x 2fa" and "twitter 2fa" and mean the same feature: a second check, such as a code or a physical key, on top of your password.

The path below is the one X documents for the iOS app. On desktop, the same menu is reached from More in the side menu, according to third-party setup guides. Menu labels change between app versions, so if a button name differs on your screen, follow the same order: settings, security, two-factor authentication.

  1. Open the main menu and tap Settings and privacy.
  2. Tap Security and account access, then Security.
  3. Tap Two-factor authentication.
  4. Choose Text message, Authentication app or Security key and follow the prompts.

Once you are enrolled, X asks for the method you used last time whenever you log in. It also offers an option to choose a different method, which matters if your phone is not with you.

Step by stepSet up 2FA on X
  1. Open Settings and privacy, then Security
  2. Tap Two-factor authentication
  3. Pick authentication app or security key
  4. Confirm your password and email
  5. Scan the QR code and enter the code
  6. Save your backup code safely

Which 2FA method should I choose: app, security key or text message?

For most people, an authentication app is the best default. It is free and does not depend on your carrier or a text message arriving. A security key is stronger still, but you need the physical key every time you sign in on a new device.

MethodHow it worksMain trade-off
Authentication appAn app on your phone shows a short-lived codeLose the phone without a backup and you need another route in
Security keyA physical key connects by USB, Bluetooth or NFCStrongest option, but you must have the key on hand
Text messageX sends a code to your phone numberThird-party guides report it is limited to X Premium subscribers, and availability varies by country and carrier

Third-party guides, including this one, say that X restricted new text message 2FA to Premium subscribers in 2023. Another guide dates that announcement to February 2023. We could not find a current official statement on exact eligibility, so check the options you see in your own settings. If you are weighing a subscription, our X Premium explainer covers what it includes.

How do I set up 2FA on X with an authenticator app?

Choose Authentication app in the two-factor menu, scan the QR code with an authenticator app, and type the code it shows back into X. The whole process takes a few minutes. Do it on a device you trust, and have the app installed first.

  1. Install an authenticator app. Third-party guides name Google Authenticator, Authy, Duo Mobile, Microsoft Authenticator and 1Password as options that work.
  2. In X, go to Two-factor authentication and tick Authentication app.
  3. Enter your password when asked. If you have not confirmed an email address on the account, X asks you to do that now and sends a code to it.
  4. Continue through the overview, then scan the QR code with your authenticator app.
  5. Enter the current code from the app into X to confirm.
  6. Save the backup option X offers before you close the screen (see the backup code section below).

The email step is worth a pause. X's help page says a confirmed email is part of enrolling, and in our experience an account whose email you do not control is the one that causes the most trouble later, because recovery messages go to that address.

If your authenticator app can back up its entries, turn that on before you change phones.

How do I add a security key to my X account?

Open the same two-factor menu, choose Security key, enter your password, confirm an email if X asks, and tap Start. Then insert the key into a USB port, or connect it by Bluetooth or NFC, and touch the button on the key. X's help center describes these steps for mobile.

When setup finishes, your keys appear under Manage security keys. You can rename or remove a key there and add more later. We suggest enrolling at least two keys and keeping one somewhere safe, since a single lost key is a lockout waiting to happen.

The help center also notes that once you add a security key, X no longer requires another backup method, and a key can be your only 2FA method. That is convenient, but it removes your safety net, so think about where your second key and your recovery email stand first.

Why did X ask me to re-enroll my security key?

In October 2025, X's Safety account announced that accounts using a security key had to re-enroll it by November 10 to keep accessing X. After that date, accounts that had not re-enrolled were locked until the owner re-enrolled, picked a different 2FA method or turned 2FA off. X also warned that enrolling a new key makes any other key stop working unless it is re-enrolled too. If you still use an old key and hit a lock, this is the likely cause.

What is the X backup code and where should I keep it?

A backup code is a one-time code that lets you log in when your usual 2FA method is unavailable, for example when your phone is lost or broken. Third-party guides tell you to save the code X shows when you finish enrolling, and we agree. A backup code is not the same as the setup key behind your authenticator app, and it cannot generate regular codes.

We could not confirm the current official wording for generating or viewing a backup code in this session, so look for it inside the same Two-factor authentication screen, and expect the label to change between app versions. If you do not see it, check each method's settings page.

Good habits for a backup code:

  • Store it in a password manager or print it and keep it somewhere private. Do not leave it in a screenshot gallery or a plain notes app synced to an account you do not protect.
  • Treat it as single-use. After you use it to log in, generate a fresh one if the option is offered.
  • Do not share it with anyone, including people who promise to "verify" or "recover" your account. X's account security page says to never give your login details to third parties.

The X account security page also recommends a strong, unique password and checking that you are on x.com before you sign in.

What should I do if I lose my phone or cannot get a 2FA code?

Start with the options X already gives you at the login prompt: choose a different 2FA method, then use a backup code or a security key if you set one up. If none of those work, you need X's account recovery process, and the outcome depends on what you still control.

SituationWhat to try first
Phone lost, but you have a backup codeChoose a different method at login, enter the backup code, then set up the authenticator app on your new phone
Phone lost, security key enrolledLog in with the key, then re-enroll your authenticator app
New phone, old authenticator entries goneUse a backup code or key if you have one, then remove the old app method and add it again
Text codes not arrivingSwitch to another method; carrier support varies and text availability is limited
No backup code, no key, no appUse the help center's recovery or support route for locked-out accounts, and expect it to take time

Once you are back in, do not just carry on. Create a new backup code, re-enroll your authenticator on the new device and confirm that the email on the account is one you control. If the account shows a lock rather than a 2FA problem, our guide on unlocking a locked X account covers that separate issue. A suspension is different again, and the suspension appeal guide explains it.

We cannot promise that X will restore an account without a working 2FA method, and X does not publish a fixed recovery timeline that we could find. That is why setting up two methods in advance is worth the few extra minutes.

How do I keep 2FA from locking me out later?

Most 2FA lockouts come from a change, not from an attack: a new phone, a changed number, an old email address or a key X asks you to re-enroll. Plan for the change before it happens.

  • Before a phone upgrade: move your authenticator entries first, or confirm you have a working backup code.
  • Keep the account email secure: it is used for confirmations and recovery, so give it its own strong password and 2FA.
  • Use two independent methods: for example an authenticator app plus a stored backup code, or two security keys in different places.
  • Re-check after big changes: after a password reset, a security key change or a recovery, open the two-factor menu and confirm what is active.
  • Be wary of phishing: X says it will not ask for your password, and fake "2FA reset" pages are a common trap.

Who should set up 2FA on an X account I just bought?

The new owner, right away. When we hand over an account, it comes with the original email, the seller's recovery details removed, and you set up 2FA yourself, so the only second factor is one you control. We do the same with Telegram accounts, which we move to the buyer's phone number.

A few rules apply here. X's platform manipulation and spam policy does not allow buying, selling or transferring accounts, and the platform can act against accounts involved, including by locking or suspending them. 2FA protects the account from third parties. It does not change that risk. For how to reduce other risks in a purchase, see our guide to buying a social media account safely.

After the handover, we suggest this order: confirm you can log in to the email, change the password, enroll your authenticator app or security key, save a backup code, and only then change other account details.

If you would rather start with an aged account that already has a clean history, see our buying checklist and the accounts we have in stock on the X accounts page.

Questions people also ask

Is X 2FA free?

An authentication app and a security key are available without a subscription. Text message codes are different: third-party guides report that X limited them to Premium subscribers in 2023, and X says availability varies. If you are on a free account, an authenticator app is the practical choice. Check your own security settings for what is offered as of October 2026.

Where do I find my Twitter backup code?

X shows a backup code when you finish enrolling in 2FA, and it should be available from the two-factor authentication screen afterward. Menu labels change between app versions, so we could not confirm the exact current wording. If you cannot find it, open each method's settings under Two-factor authentication. Save any code you get in a password manager.

Can I use 2FA on X without a phone number?

Yes. Authentication apps and security keys do not require a phone number to receive codes. X's help center says the text message method is one of three choices, not the only one. You still need a confirmed email address on the account, because X may ask you to verify it during setup.

Does 2FA stop my account from being suspended or locked?

No. 2FA protects against someone else logging in with your password. It does not shield an account from enforcement under X's rules, and a lock or suspension has separate causes and appeals. Strong 2FA does reduce the chance of takeover, which can itself lead to spam activity that triggers a lock.

What happens if I turn off 2FA on X?

Your account falls back to password-only login, which X's own security advice discourages. Anyone who gets your password, for example through a phishing page or a reused password leak, can sign in. If you are switching methods, add the new one first and remove the old one afterward.

Need an X (Twitter) account?

We sell organically grown X accounts with the original email and a guided handover. Tell us the niche, join year and budget.