With AutoFill, Safari can automatically fill in your credit card information, contact information, passwords, and more in the Safari web browser on macOS Sierra.
It can automatically fill in information from any contact in Contacts. It can also generate a secure password when you need to create one. Safari highlights autofilled fields in yellow.
One big advantage of doing this: if you set up iCloud Keychain on your Mac and other devices, Safari automatically fills in saved user names, passwords, and credit card info on all those devices. This is a great time-saving features.
To fill in your credit card info, you can choose from a list of your stored credit cards. You can add or remove stored credit cards. Safari can autofill your account name, account number, and expiration date. 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.
To fill in info from the Contacts apps, 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.
To fill in your user name and password, 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 information for the website, do either of the following:
- If another website uses the same user name and password, you can use its stored information. Click in the password field, click the AutoFill Key, then choose Other Passwords. Select the website with the user name and password you want to use, then click Fill.
- If the website’s user name and password are unique, store the information so Safari can automatically provide it next time. Enter the user name and password, or generate a password (described below), then click Save Password when asked.
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.
To change AutoFill settings, choose Safari > Preferences, then click AutoFill.
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.
Not that 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, you can set up your Mac to display the login window when it starts up and to require a passcode after sleep or a screen saver begins. Set up your iOS devices to require a passcode to unlock the screen.
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.
(This how-to is based on my experiences and info on Apple’s support pages — where the images sometimes come from.)