Autofill your username and password in Safari on Mac
With AutoFill, you can easily fill in your previously saved usernames and passwords for websites. You can also have a strong password created for you when you set up a password on a website. Fields where information has been entered for you are highlighted in yellow.
Fill in your user name and password
In the Safari app on your Mac, do one of the following:
If you previously stored your username and password for the website, use AutoFill to enter the information and sign in. Click in the user name field, then choose your user name (or use the Touch Bar).
If your Mac has Touch ID, you can use Touch ID to fill in your stored username and password and sign in. If the webpage has an option to remember your information (such as a “Remember me” tick box) and you want to use that option, select it before you use Touch ID. If your Mac is connected to an external display while the built-in display is closed, enter the account password for your Mac, then click AutoFill.
If there’s no stored username and password for the website, save the information and use AutoFill 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, a unique, hard-to-guess password is suggested for you. If you don’t have iCloud Keychain set up, click in the password field, click the AutoFill Key , then choose Suggest New Password.
Tip: If you use iCloud Keychain to keep information safe on your Mac and other devices, you can use AutoFill to enter previously saved usernames and passwords on all those devices.
How Safari keeps usernames and passwords secure
Usernames and passwords 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 usernames 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.
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 iPhone, iPad and iPod touch to require a passcode to unlock the screen: Go to Settings > Face ID & Passcode, then tap Turn Passcode On.
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.