How to set up X (Twitter) 2FA with an authentication app
X offers three 2FA methods: authentication app, security key and text message, and text messages are limited to Premium subscribers. For most people an authentication app is the way to go.
Updated 2026-11-19
On the web
- Click More in the left menu, then Settings and privacy.
- Go to Security and account access → Security → Two-factor authentication.
- Turn on Authentication app, enter your password and click Get started.
- Scan the QR code, or choose to link the app manually to see the key as text. Save it.
- Enter the 6-digit code from your app (or from Get2FA) and confirm.
- Save the backup code X shows you.
On iPhone or Android
Tap your profile picture, then Settings and Support → Settings and privacy → Security and account access → Security → Two-factor authentication, and turn on Authentication app.
Why not SMS?
Besides being limited to Premium accounts, text-message codes can be intercepted through SIM-swap attacks. An authentication app or security key is much harder to steal.
Keep a copy of the key
Before you scan the QR code, look for the option to see the key as text and save it in your password manager. If your phone is lost or replaced, you can paste that key into Get2FA or a new authenticator app and get your codes back in seconds. Never share the key or a screenshot of the QR code: anyone who has it can generate your codes.
Guides
- What is 2FA (two-factor authentication)?
- Where to find your 2FA secret key
- How to turn on Instagram 2FA with an authentication app
- How to set up Facebook 2FA with an authenticator app
- How to transfer Google Authenticator to a new phone
- 2FA code not working? Here's how to fix it
- Lost your phone with the authenticator app? What to do
- “Enter a 6-digit login code generated by an authentication app”: what to do
- Fortnite 2FA: how to enable it at fortnite.com/2fa
- What is TOTP? (and TOTP vs HOTP)
- Microsoft Authenticator not showing a code? Here's the fix
- How to set up Amazon Two-Step Verification with an authenticator app
- How to turn on PayPal 2-step verification with an authenticator app
- How to set up Coinbase 2FA with an authenticator app
- How to enable Discord 2FA with an authenticator app
- How to set up TikTok 2-step verification with an authenticator app
- How to use any authenticator app with your Microsoft account
- How to set up GitHub 2FA with a TOTP app
- How to enable Binance 2FA with an authenticator app