What an app password is and when you need one
An app password is a 16-character code that Gmail generates for you to use instead of your regular password when you sign into certain apps and devices. You do not type your actual Gmail password into these apps — you use the app password instead. This keeps your main account safer because if that app or device gets hacked, the attacker only has access to that one app password, not your real password.
You can only create an app password if you have turned on two-step verification on your Google Account. Two-step verification means Google asks you to confirm your identity a second way — usually by sending a code to your phone — when you sign in from a new device or location. If you have not set this up yet, you will need to do that first.
Most people need an app password when they are trying to sign into Gmail through an older email client (like Outlook or Apple Mail), a phone's built-in email app, or a third-party tool that does not support Google's modern sign-in method. Gmail's web version and the official Gmail app do not need an app password — they work with your regular password.
Key Takeaways
- You must turn on two-step verification before Google will let you create an app password.
- App passwords are 16 characters long and are generated by Google specifically for one app or device.
- You create app passwords in your Google Account security settings, not in Gmail itself.
- Each app or device that needs Gmail access should have its own separate app password.
How to turn on two-step verification first
Go to myaccount.google.com and sign in with your Gmail address and password. On the left side, click Security. Scroll down until you see How you sign in to Google and look for the option that says 2-Step Verification. Click on it.
Google will ask you to confirm your password again, then show you a screen that says get your free guide. Click that button. Google will ask which phone number to send codes to — enter your real phone number and choose whether you want codes by text message or a phone call. You will receive a code when ready. Type it in to confirm that number works.
Google will then show you a list of backup codes — a set of one-time codes you can use if you lose access to your phone. Write these down or save them somewhere safe, separate from your phone. You will need them only in an emergency, but losing them means you could get locked out of your account. Click Turn on to finish.
Creating your first app password
Once two-step verification is on, go back to myaccount.google.com and click Security on the left. Scroll down to How you sign in to Google and this time you will see a new option: App passwords. Click on it.
Google will ask you to sign in again to confirm it is really you. After you do, you will see a dropdown menu that says Select the app and another that says Select the device. Choose the app you are trying to sign into (for example, Mail if you are using Outlook or Apple Mail) and the type of device (for example, Windows or iPhone). Then click Generate.
Google will show you a 16-character password in a yellow box. Copy this entire password — do not try to memorize it or type it by hand. Go to the app you are signing into and paste this password into the password field when prompted. Use your full Gmail address (the part with @gmail.com) as your username. The app should now connect to your Gmail account.
What to do if you do not see the app password option
If you go to your Google Account security page and do not see App passwords as an option, it means two-step verification is not turned on yet. Go back and follow the steps in the "How to turn on two-step verification first" section above. Two-step verification must be active before Google will show you the app password option.
If you have turned on two-step verification but still do not see app passwords, check whether you are signed into the right Google Account. Some people have multiple Google Accounts. Make sure you are on myaccount.google.com and signed in with the Gmail address you are trying to create the password for.
Creating separate app passwords for different apps
You should create a different app password for each app or device that needs to sign into your Gmail. This means if one app gets hacked or you lose a device, you can delete just that one app password without affecting your other apps. Your main Gmail password stays safe and unchanged.
To create another app password, go back to myaccount.google.com, click Security, then App passwords. Select a different app or device from the dropdowns and click Generate. Google will give you a new 16-character password. Paste it into the new app the same way you did the first time.
You can see all your active app passwords on this same page. Each one shows which app and device it is for. If you stop using an app or lose a device, you can delete its app password by clicking the trash icon next to it.
Troubleshooting when an app password does not work
If you paste the app password into an app and it still will not connect, first check that you are using your full Gmail address (including @gmail.com) as the username. Many apps ask for username and password separately, and some people accidentally type just the first part of their email address.
Second, make sure you copied the entire 16-character password exactly as Google showed it. If you typed it by hand or missed a character, it will not work. Delete what you typed and copy it again directly from the Google Account page.
Third, check that the app you are using actually supports app passwords. Very old email clients sometimes do not. If the app is very old, you may need to update it or switch to a newer one. Google's support page for your specific app (search "[app name] Gmail app password") will tell you if it is supported.
Frequently Asked Questions
Can I use my regular Gmail password instead of an app password?
If you have two-step verification turned on, most apps will not accept your regular password — they will only accept an app password. This is by design. If an app keeps rejecting your regular password, it is telling you to use an app password instead. The only exception is if the app supports Google's modern sign-in method, which lets you sign in through a web browser instead of typing a password.
What happens if I lose the app password I just created?
You cannot recover an app password once you close the page where Google showed it to you. If you did not save it, you will need to delete that app password and create a new one. Go to myaccount.google.com, click Security, then App passwords, find the one you lost, and click the trash icon next to it. Then create a new one.
Do I need a different app password for my phone and my computer?
Yes, you should create separate app passwords for each device. When you generate a password, you tell Google which device it is for. This way, if your phone is stolen, you can delete just the phone's app password without affecting your computer. Your other devices will keep working.
What if I turn off two-step verification?
If you turn off two-step verification, all your app passwords stop working when ready. Apps will no longer accept them. You would have to use your regular Gmail password instead. However, turning off two-step verification makes your account less find, so it is not recommended unless you have a specific reason.
Can someone use an app password to sign into Gmail on the web?
No. App passwords only work in apps and devices — they do not work on gmail.com or in the official Gmail app. If someone has an app password, they can only access Gmail through whatever app that password was created for. They cannot use it to sign into your account on the web or change your settings.