How to Autofill Verification Codes on iPhone (iOS 17)

* This article is from our Tip of the Day newsletter. . *

When you sign into certain websites or apps, you will often be asked to use a two-step verification code. But did you know that the iPhone can use autofill to automatically insert the code texted to your iPhone with just a button tap? We'll show you how it works!

Why You'll Love This Tip:

  • Never memorize another string of numbers for two-factor authentication again.
  • Insert an OTP code with a single tap of a button.

How to Autofill Verification Codes on iPhone

System Requirements:

This tip works on iPhones running iOS 17 or later. Find out how to update to iOS 17.

Once you've mastered using Autofill to enter verification codes, check out how to set up auto-delete for the verification codes to keep your messages tidy. If you like learning about Apple devices, be sure to sign up for our free Tip of the Day!

iPhone Life
Discover your iPhone's hidden features
Get a daily tip (with screenshots and clear instructions) so you can master your iPhone in just one minute a day.
  1. When you log in to an app that requires a two-step verification code, you will first receive a text message with the code. You do NOT need to open this message.

    use autofill for verification codes
  2. The code will automatically show up in the autofill bar. It will say "From Messages."

    iphone automatically fill verification code
  3. Once you insert the code, tap Next or Verify.

    verification code autofill iphone

And that's how you automatically insert verification codes with autofill! 

Master your iPhone in one minute a day: Sign up here to get our FREE Tip of the Day delivered right to your inbox.


Author Details

Rachel Needell's picture

Author Details

Rachel Needell

Rachel Needell is a Feature Writer at iPhone Life, and a poet and author. With 10-plus years of experience working with Apple devices, she specializes in all-things iPad and is a Notes App expert, having worked on both the 2023 iPad Guide and the Notes App Guide. You can usually find her writing in the Daily Tip newsletter as one of our senior Tip writers. Rachel received her Master’s degree in English Literature in 2021 and her most recent work appears in the Winter ’21 edition of New Note Poetry. When she’s not obsessing about Apple products, you can find her voraciously reading fantasy books with her cat in Asheville, North Carolina.