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
- 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
- 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