Autofill credit cards, contacts, and passwords in Safari on Mac
With AutoFill, Safari can automatically fill in your credit card information, contact information from the Contacts app, passwords, and more. It can also create a strong password for you when you set up a password on a website. Fields where Safari has entered information are highlighted in yellow.
Fill in your credit card info
In the Safari app on your Mac, do any of the following:
Automatically fill in information from your stored credit cards: Choose from a list of your stored credit cards when making a purchase.
For security, Safari doesn’t store the credit card security code. You must enter it manually each time you use the card on a website.
Add or remove a stored credit card: Choose Safari > Preferences, click AutoFill, select “Credit cards,” then click Edit.
Fill in info from Contacts
In the Safari app on your Mac, start typing any name from your contacts to autofill their details. If a contact has more than one address, email, phone, or other contact info, you can choose from the home, work, or custom address you’ve already entered in their contact card (or use the Touch Bar). If you don’t want Safari to autofill information, just keep typing.
Fill in your user name and password
In the Safari app on your Mac, do one of the following:
If you previously stored your user name and password for the website, Safari automatically provides the information. Click in the user name field, then choose your user name (or use the Touch Bar).
If there’s no stored user name and password for the website, save the information so Safari can automatically provide it next time. Enter the user name and password, or automatically create a strong password (described below), then click Use Strong Password when asked.
Automatically create a strong password
In the Safari app on your Mac:
When you start to create a new website password, and you have iCloud Keychain set up on your Mac, Safari automatically suggests a unique, hard-to-guess password. If you don’t have iCloud Keychain set up, click in the password field, click the AutoFill Key , then choose Suggest New Password.
Change AutoFill settings
In the Safari app on your Mac, choose Safari > Preferences.
To turn AutoFill off or on, select the information you want to include in AutoFill; deselect the rest.
To change or delete AutoFill information, click Edit next to the information you want to change or delete.
Important: Safari autofills your information for anyone who uses your Mac with your user login. It also autofills your information for anyone who uses your other devices, if those devices and your Mac have iCloud Keychain set up.
For security, set up your Mac to display the login window when it starts up and to require a password after sleep or a screen saver begins. Set up your iOS devices to require a passcode to unlock the screen.
Tip: If you use iCloud Keychain to keep information safe on your Mac and other devices, Safari automatically fills in saved user names, passwords, and credit card info on all those devices.
User names, passwords, and credit card information are encrypted in your macOS keychain. They’re also encrypted in your iCloud Keychain if it’s set up on your Mac.
If you remove credit card information or user names and passwords in Safari, they’re deleted from your macOS keychain. They’re also removed from your other devices if your Mac and other devices are set up for iCloud Keychain.