How to Use Safari as an iPhone 2FA Authenticator App

How to Use the Built-in 2FA Authenticator App for iPhone (Safari, Passwords or Settings)

Tired of waiting for SMS verification codes — or never have them arrive at all? Eager to get rid of most of the additional authentication apps? Safari and Passwords can generate those codes seamlessly — no downloads, no fuss. Find out here how you can set up and use Safari or Passwords as a near-universal authenticator app on iPhone ⤓ and iPad.

How to Use the Built-in 2FA Authenticator App for iPhone (Safari, Passwords or Settings)

Use Safari to Autofill 2FA Codes on iPhone

To log in to a website using two-factor authentication in Safari for iOS and iPadOS:

  1. Add the website or account to Safari; see below.
    Add on Mac: You can also set up the account in Safari on a Mac.
  2. In the field to enter the 2FA code in Safari, tap the username over Verification code for <domain> above the keyboard.
    Authenticate: Verify it’s you with Face ID, Touch ID, passcode, etc.
    A different browser: You can use the generated code in a different browser to authenticate; see below.

Add a 2FA Authenticator Account to Passwords and Safari

Time needed: 2 minutes

To add a new account for two-factor authentication to Safari using iPhone or iPad:

  1. Tap and hold the QR code for setting up 2FA on the website in Safari.

    Camera: You can also open the Camera app and point it to the QR code as it appears on a desktop computer, for instance.
    No code: If the site offers no QR code but a character sequence instead, you can still set up two-factor authentication; see below.

  2. Select Add Verification Code in Passwords from the context menu that has appeared.

    Their word: Apple include information on two-factor authentication codes in the iPhone User Guide.
    Add two-factor authentication for a website in Safari for iPhone

  3. Now select the account for which you want to add two-factor authentication.

All factors in place?

Buy La De Du a tea

Tips help fuel these email and tech how-tos.

Add 2FA to Safari Without a QR Code (Enter Setup Key)

To add a website or account to your built-in iPhone 2FA authenticator app without a QR code to scan:

  1. Open the Passwords app on the iPhone.
    iOS 17 and earlier: Open the Settings app and go to the Passwords section.
  2. Tap the account for which you want to add two-factor authentication.
    No account: If the account is not yet set up in iPhone settings, tap + to add it first.
  3. Select Set Up Verification Code….
  4. Now pick Enter Setup Key from the menu that has appeared.
  5. Type (or, of course, paste) the code for setting up two-step authentication you have received from the website or service.
    Which code: The code need to set up 2FA is not a recovery code; it is typically called “Authenticator setup key”, “Secret key” or “TOTP key” perhaps.
  6. Tap OK.

How to Use the Built-in 2FA Authenticator App for iPhone: FAQ

Can I copy the verification code for use in a different browser?

Yes.

To use the code generated by the Safari two-factor authentication app in another browser:

  1. Open the Passwords app.
    iOS 17 and earlier: Open the Settings app and go to the Passwords category.
  2. Go to the Codes category.
    iOS 17 and earlier: Skip this step.
  3. Find and open the account.
  4. Tap and hold the account’s verification code
    iOS 17 and earlier: Tap the code under Verification Code (or VERIFICATION CODE).
  5. Select Copy Verification Code from the menu that has appeared.

Can I reset the authentication code for an account?

Yes.

If a website requires you to set up two-factor authentication anew, for instance, you can reset the secret code on your iPhone:

To replace the authentication code for an account:

  1. Open the Passwords app.
    iOS 17 and earlier: Open the Settings app and go to the Passwords category.
  2. Tap the account from which you want to remove the current 2FA information.
  3. Tap Edit.
  4. Now tap Delete Code (or Delete Verification Code).
    iOS 16 and earlier: Tap ⛔︎ (circled minus) to bring up Delete Verification Code.
  5. Now tap Delete Verification Code.
  6. Add the account again using the steps above.

(Tested with iOS 15–18 and 26; first published October 2021, last updated August 2026)

Home » iPhone and iPad Tips and Resources » How to Use Safari as an iPhone 2FA Authenticator App