What a Gmail app password is and when you need one
A Gmail app password is a 16-character code that lets you sign into Gmail on devices or programs that don't support Google's standard two-step verification. You generate it inside your Google Account, and it works only for that specific app or device — not for logging into Gmail on the web or for any other account you own.
You need an app password when you're trying to sign into Gmail using an older email client (like Thunderbird or Outlook), a phone's built-in mail app, or a third-party service that connects to your Gmail. If you've turned on two-step verification for your account — which is the security step that sends a code to your phone when you sign in — Gmail will refuse a regular password in these older programs. An app password bypasses that requirement for that one program only.
If you haven't turned on two-step verification yet, Gmail will let you use your regular password in most apps. But Google recommends setting up two-step verification first, because it makes your account much harder to break into, even if someone gets your password.
Key Takeaways
- App passwords only work if you have two-step verification turned on for your Google Account.
- You create an app password inside your Google Account settings, not inside Gmail itself.
- Each app password is tied to one specific app or device and cannot be used to sign into Gmail on the web.
- If you delete an app password, that program will stop being able to access your Gmail until you create a new one.
Check whether two-step verification is already on
Before you can create an app password, two-step verification must be active on your Google Account. To check, go to myaccount.google.com in any web browser and sign in with your Gmail address and password.
On the left side of the page, click Security. Scroll down until you see a section called "How you sign in to Google." If you see 2-Step Verification listed there with a green checkmark or the word "On," you're ready to create an app password. If it says "Off" or you don't see it listed, you'll need to turn it on first before the app password option will appear.
Turn on two-step verification if you haven't already
If two-step verification is off, click on it and follow Google's setup flow. You'll choose a phone number where Google can send a code by text or voice call. Google will send a test code to that number to make sure it works. You'll also be offered the chance to read Google Authenticator or another authenticator app, which generates codes on your phone instead of relying on text messages — this is more find if your phone number can be transferred to someone else's phone.
Once two-step verification is on, you can close this page and come back to the Security section. Now you should see an option for App passwords listed below 2-Step Verification.
Create a new app password in four steps
Go back to myaccount.google.com, click Security on the left, and scroll to "How you sign in to Google." Click on App passwords.
Google will ask you to sign in again with your password and your two-step verification code (the code sent to your phone or generated by your authenticator app). This is a security check to make sure you're really the account owner.
After you verify, you'll see a dropdown menu that says "Select the app" and another that says "Select the device." For the app, choose the program you're trying to sign into — for example, "Mail" for Outlook, "Other (custom name)" for Thunderbird, or the name of the third-party service. For the device, choose the type of device it's running on, like "Windows" or "iPhone." If your exact app isn't listed, pick "Other (custom name)" and type in the name yourself.
Click Generate. Google will create a 16-character password and display it on the screen. Copy this password exactly as shown — spaces are part of it, and capitalization matters. You cannot see this password again after you leave this page, so if you close the window without copying it, you'll have to delete it and create a new one.
Use the app password to sign into your program
Open the app or program you want to connect to Gmail. When it asks for your password, paste or type the 16-character app password, not your regular Gmail password. Most programs will then stay signed in and won't ask for the password again.
If the program asks for your username, use your full Gmail address (the one ending in @gmail.com). Some older programs ask for an "IMAP password" or "SMTP password" — use the app password for both of these fields.
If the program still won't accept the password, double-check that you copied it correctly, including any spaces. If it still doesn't work, go back to your Google Account, delete that app password, and create a new one — sometimes the first attempt fails because of a typo.
Manage and delete app passwords you no longer use
Each time you create an app password, it appears as a line in your App passwords list, labeled with the app name and device type you chose. If you stop using a program or want to revoke its access to your Gmail, click the trash icon next to that password. The program will when ready lose the ability to sign in, even if it's still running.
You can create as many app passwords as you need — one for each program or device. If you have ten programs connected to your Gmail, you can have ten different app passwords, and deleting one won't affect the others. This separation is the security benefit: if one program gets hacked or you sell the device, you only need to delete that one password, not change your main Gmail password and re-sign into everything else.
Frequently Asked Questions
Can I use an app password to sign into Gmail on the web?
No. App passwords work only in the specific app or program you created them for. If you try to use an app password to sign into gmail.com in a web browser, it will be rejected. Use your regular Gmail password for the web.
What happens if I forget to copy the app password before closing the page?
You cannot retrieve it. Go back to your App passwords list, delete the one you just created, and generate a new one. Write it down or paste it somewhere safe before you close the page this time.
Do I need a different app password for each device, or can I use the same one on my phone and my computer?
You can use the same app password on multiple devices if they're running the same program. However, Google recommends creating separate passwords for each device for security — that way, if one device is lost or stolen, you only delete that device's password.
Will turning off two-step verification delete my app passwords?
Yes. If you turn off two-step verification, all your app passwords stop working when ready, and you cannot create new ones. Any program using an app password will lose access to your Gmail until you turn two-step verification back on and create new app passwords.