Skip to content

Articles are published in English.

SMS Code on iPhone: Where to Find It

By Alex Carter, Editor at GetVerifyCode · Updated November 16, 2026 · About and standards

Phone with one highlighted message card under a magnifier and a lime code suggestion, finding an SMS code on iPhone

By Alex Carter, Editor at GetVerifyCode

Where do you find an SMS code on iPhone? Open the Messages app and look for the newest text from the app or website, then check the Unknown Senders folder and, if Text Message Filter is on, Transactions. While you sign in, iPhone can also detect the code and show it above the keyboard, so you just tap it.

Key facts

  • Apple calls a one-time code sent by text an SMS passcode. Its guide to automatically filling in SMS passcodes says iPhone can detect the passcode in Messages and display it above the keyboard, and you tap it to use it.
  • Apple's guide to screening and filtering text messages says that with Screen Unknown Senders on, texts from unknown senders go to a separate folder and you aren't notified unless you choose to be.
  • The same guide says Text Message Filter can sort SMS from unknown senders into Transactions and Promotions folders.
  • Codes you set up in the Passwords app with a QR code or setup key are generated on the iPhone itself, without SMS, according to Apple's guide to one-time verification codes.

Check Messages, Unknown Senders and filtered threads

Most code texts come from a short code or an unfamiliar number, not a saved contact, so they are easy to miss. Work through these places in order.

  1. Open Messages and look at the top of the conversation list. The newest code is usually the first thread. You can also use the search field to look for the app's name or the word "code".
  2. Open Unknown Senders. In the conversation list, open the filter menu and tap Unknown Senders. Apple's guide shows the exact button for your iOS version.
  3. Check Transactions, then Promotions. If Text Message Filter is on, an SMS from an unknown sender can be filed in either folder, and automatic sorting isn't perfect.
  4. Mark the sender as known. Apple says you can mark a sender as known or add them to Contacts, which moves their messages into your main conversation list. Until you do, future texts from that sender keep going to Unknown Senders.
  5. Let codes notify you. In Messages, open Manage Filtering, tap Allow Notifications and turn on the categories you want, such as time-sensitive texts like verification codes. Apple notes the options vary by country and region.

Have an iPad or Mac signed in to the same Apple Account? Apple's SMS passcodes guide notes that with Continuity, the SMS and MMS messages you receive on iPhone can also appear on your other Apple devices, so the code may be waiting there too.

If code texts seem to vanish after you use them, look at Settings, then General, then Autofill & Passwords. Apple's one-time verification codes guide says you can choose to automatically delete verification codes after entering them with Autofill, using the Delete After Use switch under Verification Codes.

Autofill an SMS passcode from the keyboard

When you sign in to some websites and apps, a one-time SMS passcode is sent to your iPhone. Apple's guide says iPhone can detect the passcode in Messages and display it above the keyboard. To use it, tap it. In practice that looks like this:

  1. Request the code on the sign-in screen and tap into the code box so the keyboard stays open.
  2. When the text arrives, watch the suggestion bar just above the keyboard.
  3. Tap the code shown there. It fills the box, and you don't have to leave the app.

If no suggestion appears, open Messages, copy the code from the newest text and paste it into the box yourself. Apple describes how the feature works, but whether a suggestion appears can depend on the app or website and on your iOS version, so don't count on it every time.

Autofill can only offer a code that was texted to this iPhone. If the account has an old number on file, or the code went to a second SIM or another phone, there is nothing for it to read. It also doesn't check the website for you: before you tap the suggestion, make sure you're on the real site or app, and never read a code out to anyone who calls or messages you.

On Android, our guide to autofilling one-time verification codes covers Google's settings step by step.

SMS passcode vs a Passwords-app (authenticator) code

Not every iPhone code arrives by text. Here is how the two kinds compare.

  • SMS passcode: sent by the app or website as a text each time you sign in. It lands in Messages, needs signal and the right phone number, and Autofill shows it above the keyboard.
  • Passwords-app verification code: set up once with a QR code or a setup key, then generated on the iPhone itself. Apple says iPhone can generate these codes "without your reliance on SMS messages or additional apps." The code appears below the user name and password fields, or you can copy it from the Passwords app.

So if a site asks for the code from your authenticator app, look in the Passwords app, not Messages. Our guide to the 6-digit login code from an authentication app and our explainer on time-based one-time passwords (TOTP) go deeper on how those codes work.

Still not seeing the code?

If the code isn't in Messages, Unknown Senders or the filter folders, the text most likely never arrived. Try these checks next.

Don't switch off two-factor authentication or other security features just to get past a missing code. Fix the delivery problem instead.

Related guides

About the author: Alex Carter is the editor at GetVerifyCode. Alex tests SMS verification routes across services and countries and writes plain-language guides on receiving OTP codes safely.

GetVerifyCode is not affiliated with the apps named in this article. Follow each app's terms and local law.

FAQ

FAQ

  • It is in the Messages app, usually as the newest thread from the app's short code or number. If you don't see it, check Unknown Senders and, if Text Message Filter is on, the Transactions and Promotions folders. While you're signing in, iPhone may also show the code above the keyboard.

  • When the text arrives while the code box is open, iPhone can detect the passcode in Messages and show it above the keyboard. Tap it to fill the box. If no suggestion appears, copy the code from Messages and paste it, as described in Apple's SMS passcodes guide.

  • No. Passwords-app codes are generated on your iPhone after you set them up with a QR code or setup key, and they don't need a text message. SMS codes are sent to your number each time. Our guide to the 6-digit login code from an authentication app explains the difference.

  • Open your messaging app and look for the newest text from the service, including any spam or blocked folder. Our guides to autofill on Android and not receiving codes on Android cover the settings and fixes.

  • You may have Delete After Use turned on. Apple lets you automatically delete verification codes after you enter them with Autofill. Go to Settings, then General, then Autofill & Passwords, and under Verification Codes turn Delete After Use off if you want to keep them.

GetVerifyCode

Need a number now?

Browse services, pick a country, and confirm a quote. Top up your wallet from $1; each number is priced live. Unused holds return if no SMS arrives.

Services