Get2FA

← All guides

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

Have your secret key? Get your code nowOpen the 2FA generator

On the web

  1. Click More in the left menu, then Settings and privacy.
  2. Go to Security and account access → Security → Two-factor authentication.
  3. Turn on Authentication app, enter your password and click Get started.
  4. Scan the QR code, or choose to link the app manually to see the key as text. Save it.
  5. Enter the 6-digit code from your app (or from Get2FA) and confirm.
  6. 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.

Have your secret key? Get your code nowOpen the 2FA generator

Guides