You can autofill credit card forms on an iPhone using the built-in camera by tapping the card number field, choosing "Scan Credit Card" from the keyboard, and holding your card in the frame. The feature reads the card number, expiration date, and name, then fills them in automatically. This works in Safari and most apps that use the standard iOS text input system.

How the Camera Autofill Feature Works

Apple introduced credit card scanning in iOS 8 as part of the keyboard's text input options. When you tap a credit card field, the QuickType bar above the keyboard shows a "Scan Credit Card" option. Selecting it opens the camera viewfinder, and iOS uses on-device optical character recognition (OCR) to read the embossed numbers and text on your card. It does not send the image to Apple or any server; the processing happens locally on your device.

The feature extracts the card number, expiration date, and cardholder name. It does not capture the CVV (the three-digit security code) because Apple intentionally leaves that field blank for you to type manually, adding a layer of security. Once scanned, the fields populate automatically, and you can review them before submitting the form.

Step-by-Step: How to Scan Your Card

  1. Tap the credit card number field in the form. The keyboard appears.
  2. Look above the keyboard for the "Scan Credit Card" option. If you don't see it, tap the small camera icon or the "More" button (the three dots) to find it.
  3. Tap "Scan Credit Card." The camera viewfinder opens.
  4. Hold your card within the frame. Make sure the card number is fully visible and well-lit. The phone will automatically detect and scan it.
  5. When the scan succeeds, the fields fill in. Type the CVV manually, then review all entries.

If your card has a raised number, the scan works best when the card is flat on a contrasting surface. If the card is flat-printed (like many modern cards), you may need to adjust the angle slightly to get a clear read.

Where the Scan Option Appears

The "Scan Credit Card" option appears in the QuickType bar whenever the keyboard is in a credit card field. This works in Safari, in apps like Amazon or Airbnb, and in most third-party apps that use the standard iOS keyboard. It does not appear in every app, however. Some apps use custom keyboards or disable the feature for security reasons, especially banking apps that require manual entry.

If you do not see the option, it may be because the app's developer has turned it off, or because the field is not recognized as a credit card field. In that case, you can still use the camera to scan your card into the Photos app, then manually type the numbers, but that is less convenient.

Privacy and Security Considerations

Credit card scanning on iPhone is designed with privacy in mind. The camera image is processed on-device, and Apple does not store the image or the extracted data. The scanned information is only inserted into the form you are filling out. However, be aware of what happens after you fill the form:

  • The website or app receives the data you submit. Make sure you are on a legitimate, secure site (look for https://) before entering your card details.
  • iOS may offer to save the card to your iCloud Keychain for future autofill. If you decline, the card is not stored.
  • The CVV is never scanned, so you must type it each time, which prevents an attacker who gets your phone from using saved cards without your knowledge.

If you are concerned about privacy, you can disable the scanning feature entirely in Settings > General > Keyboard > "Scan Credit Card" (toggle off). You can also manage saved cards in Settings > Safari > Autofill > Saved Credit Cards.

Common Problems and How to Fix Them

Sometimes the scan fails or the option is missing. Here are the most common issues:

  • Option not appearing: Ensure the field is a credit card field. If not, try tapping a different field. Also, check that the feature is enabled in Settings > General > Keyboard.
  • Scan not working: Make sure the card is well-lit, and the entire card number is visible. Avoid glare by tilting the card slightly. If your card has a flat number, try placing it on a dark, non-reflective surface.
  • Wrong data captured: If the scan reads the wrong numbers, tap the field and manually correct it. You can also type the number directly if scanning repeatedly fails.
  • Feature not available in a specific app: Some apps (like banking apps) intentionally disable the camera scan. You cannot force it; you will have to type manually.

Alternatives to Camera Scanning

If you prefer not to use the camera, or if it is not working, you have two other options:

  • Manual entry: Type the card number, expiration date, and name. This is always available and works everywhere.
  • Autofill from saved cards: If you have previously saved a card in Safari Autofill (Settings > Safari > Autofill), you can tap the card field and select the saved card from the QuickType bar. This is faster than scanning but requires you to have saved the card beforehand.

Note that saved cards in Safari Autofill are stored in iCloud Keychain and are encrypted. You can add a card manually in Settings > Safari > Autofill > Saved Credit Cards > Add Credit Card.

Frequently Asked Questions

Does the camera scan capture the CVV?

No. Apple deliberately excludes the CVV from scanning. You must type the three-digit security code manually every time. This is a security measure to ensure that even if someone has your phone, they cannot use a saved or scanned card without knowing the CVV.

Is the scanned card stored on my iPhone?

No, the scan itself is not stored. After filling the form, iOS may ask if you want to save the card to iCloud Keychain for future autofill. If you decline, the card data is not retained. If you accept, it is stored securely in Keychain and can be used later.

Why doesn't the "Scan Credit Card" option show up?

The option only appears when the keyboard detects a credit card field. If the app uses a custom keyboard or the field is not marked as a card field, the option may not appear. Also, check that the feature is enabled in Settings > General > Keyboard.

Can I use the camera to scan a card into the Photos app for later?

Yes, you can take a photo of your card with the Camera app, but that is not recommended for security reasons. The photo would be stored in your Photos library, which is not encrypted as securely as Keychain. It is better to use the built-in scan feature or type manually.

Does this work on all iPhone models?

The feature works on any iPhone running iOS 8 or later, which includes all models from iPhone 6 onward. It does not require Face ID or Touch ID; it uses the standard camera.

Is it safe to use camera autofill on public Wi-Fi?

Using the camera scan itself is safe because the processing is on-device. However, submitting the form over public Wi-Fi is risky if the website is not secure. Always check for the padlock icon in the address bar before submitting any credit card information.