Updated on November 10, 2026.
When a site texts you a one-time code, tap the verification field and look for a code suggestion or prompt. On Android, you can check the SMS autofill switches in your Google settings. On iPhone, tap the code above the keyboard when it appears.

How the code appears on each phone
| Where you sign in | What to look for |
|---|---|
| Android app | The app may fill the field automatically or ask to use the text with the code. |
| Chrome on Android | On a supported site, Chrome can ask for permission and then offer a prompt to fill the code. |
| iPhone app or website | Tap the verification field, then tap the code suggested above the keyboard. |
Turn on SMS code autofill on Android
- Open Settings and tap your Google Account at the top, or look for Google in Settings.
- Under Google services, open All services. Find Autofill & passwords > Verification codes by SMS.
- Enable Autofill codes in apps and sites and, if you want it, Autofill codes in your default browser. On some phones, search Settings for Verification codes by SMS or SMS verification codes.
- Return to the app or site, request a code, and accept the autofill prompt if it matches the sign-in you started.
The switches and labels can vary by phone. An Android app can also use Google Play services to retrieve a matching verification text or ask permission to read a single message. See Google’s Chrome autofill instructions and its Android SMS verification documentation.
Use SMS code autofill on iPhone
- Leave the app or browser open on the verification screen and request the SMS.
- Tap the code field. When the code appears above the keyboard, tap it to fill the field.
- If there’s no suggestion, open Messages and type the code into the original app or site. Use the latest code if you requested more than one.
On supported iOS versions, Settings > General > AutoFill & Passwords > Delete After Use controls whether a verification message is cleaned up after autofill. For the fill step, see Apple’s SMS passcode instructions.
What to check when the code won’t autofill
- The text never arrives. Check the phone number and whether the line can receive SMS. Wait for the resend timer before trying again.
- The text arrives but there’s no prompt. Tap the code field, check autofill permissions, and confirm that the text is on the phone where you’re signing in. Some apps or sites require manual entry.
- The code is rejected. Use the latest message, check the digits, and request a fresh code if the previous one expired.
Enter a verification code only for a sign-in or payment you started, in the official app or on the site you intended to visit. Keep it private if someone calls or messages asking for it. See our guide to spotting fake links.
Frequently asked questions
Why doesn’t my Android phone autofill codes from text messages?
Check Verification codes by SMS in Google settings and verify that the message reached that phone. Autofill also depends on the app or website supporting the feature. Enter the code manually if there’s no prompt.
Do I need Google Messages for Android code autofill?
Many apps retrieve the code through Google Play services or ask to read the single verification message. Support depends on the app and phone, so check the autofill settings before switching messaging apps.
Can I keep the text after my iPhone fills the code?
Yes. Look for Delete After Use in the iPhone’s AutoFill & Passwords settings and turn it off to keep the messages. Autofill suggestions can still appear.