Locked Out of X: 2FA Code Not Working and No Backup Code
Locked out of X because your two-factor code fails and you have no backup code? What X's help pages say, which routes remain, and what to avoid.

If your X two-factor code fails and you have no backup code, check whether you are still logged in anywhere, since X lets you generate a login code from an active session. If you are fully logged out with no active backup code, X says to contact its support team through the account access form.
Summary- X says that if you are no longer logged in and have no active backup code, you should contact its support team.
- If you are still logged in anywhere, X's help pages describe generating a login code or changing two-factor settings from that session.
- X stopped supporting text message two-factor authentication for non-Premium accounts from 20 March 2023.
- Backup codes must be used in the order they were generated, and using one out of order invalidates earlier codes, according to X.
- Never buy help from sellers who claim to remove two-factor authentication, and never share your codes with anyone.
You enter your X password, then the two-factor code, and it is rejected. Maybe your authenticator app is on a lost or reset device, the text message never comes, or you changed your number. You look for your backup code and realise you never saved one. Now you are locked out of your own account. This guide explains what X's help pages say about this situation, which routes remain, what to avoid, and what makes it hard to fix alone.
Last checked: 15 November 2026.
#Quick Answer
If your X two-factor code fails and you have no backup code, check whether you are still logged in anywhere, since X lets you generate a login code from an active session. If you are fully logged out with no active backup code, X says to contact its support team through the account access form.
#What X Says About No Backup Code
X's page Help with two-factor authentication says that if you generated a backup code, you can enter it to access your account. It then says: "If you are no longer logged in to your account and do not have access to an active backup code, please contact our support team for assistance." X's Regain access form is the account access route on its Help Center.
#Why 2FA Codes Stop Working
- The authenticator app was on a device that was lost, replaced or reset without a backup.
- Text message codes stopped, since X ended text message two-factor authentication for non-Premium accounts from 20 March 2023.
- You changed mobile number or carrier and did not update X's settings.
- A backup code was used out of order, which X says invalidates the earlier codes.
X's page How to use two-factor authentication also says that text message availability for Premium may vary by country and carrier, and that X recommends storing the backup code shown during setup in case you lose your device or change your number.
#Which Route Is Still Open
| Your situation | What X's pages describe | Notes |
|---|---|---|
| You have a saved backup code | Enter it at the two-factor prompt | Use codes in the order they were generated |
| Still logged in on the X app somewhere | Generate a login code in the app under Settings and privacy, Account, Security | Then update your two-factor settings |
| Still logged in on the web | Change or turn off two-factor methods from the open session | Add a new method and save a fresh backup code |
| Logged out everywhere, no active backup code | Contact X's support team | Use the Regain access form |
X's help page also mentions waiting at least two minutes for delayed text messages before trying again, and checking that login push notifications are turned on if you use login requests. It also notes that backup codes work only when logging in to x.com, mobile.x.com or the X apps for iOS and Android, so a third-party app needs a temporary password instead. Some steps are hard to undo, so it helps to know the order before you start.
#Once You Are Back In
X's two-factor help pages describe a few settings that make the next lockout far less likely:
- Generate a new backup code and store it safely. X says you can have up to five active backup codes, used in the order they were generated.
- Consider a security key. X says security keys can be used as your sole two-factor method.
- Before replacing a device, back it up so you can restore your app session. X notes that on iOS an encrypted backup preserves the app key.
- For third-party apps that ask for your X password, use a temporary password generated in Settings and privacy, Security and account access.
Subscribe to receive notifications of new posts
#What Makes This Hard to Handle Alone
- Without a backup code or an active session, support is the only route left, and X does not publish a response time.
- Support needs to confirm you own the account, so what you provide matters.
- Repeated failed codes and resets can make the account look like it is under attack.
- Older accounts may use settings or methods that newer help articles do not describe.
#What X Decides
X decides whether to restore access and what it needs to confirm ownership. Some accounts are not recovered. Once you are back in, X's About account security page is a useful checklist.
#How AwareXone Handles This Kind of Case
When we help with an X two-factor lockout, we work through X's official routes only. We help check for any active session that is still open, prepare a clear support request with the ownership details X may ask for, and plan safer two-factor settings once you are back in. We never ask for passwords, codes or backup codes, and X makes the final decision.
#When It Is Safer to Get Expert Help
If you are logged out everywhere and support has not replied, or the account matters to your work, a well-prepared request helps. If this has become hard to manage on your own, we can take a look and help. You can read about our X account recovery service and how we work on our trust page, then use Apply for Case Review below when you are ready. Reply within 60 seconds, 24 hours a day, every day.
Related guides: fixing a locked X account, when a hacker changes your X email and X password reset emails you did not request.
#Frequently Asked Questions
What do I do if my X 2FA code is not working and I have no backup code?
Can I get 2FA codes by text message on X?
Why does my backup code give an error?
Can someone remove 2FA from my X account for me?
Can AwareXone help with an X 2FA lockout?
Official sources
Related guides
More free guides on the same kind of problem.
- X Account Locked? How to Unlock It or Lift the Limit
- LinkedIn Two-Step Verification and a Lost Phone: Getting Back In
- Microsoft Account Recovery Code: Create It and Use It
- Lost Your Phone With Microsoft Authenticator? How to Recover
- Locked Out of Reddit by Two-Factor Authentication: Options
- Snapchat Two-Factor Locked Out? How the Recovery Code Works
