What an app password does and why 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 apps or devices that don't support two-factor authentication. If you've turned on two-factor authentication (also called 2FA or two-step verification) on your Gmail account, many third-party apps — like Outlook, Apple Mail, or your phone's built-in email client — will refuse to accept your regular password, even if it's correct.
Gmail does this as a security measure. Two-factor authentication means someone needs both your password and access to your phone to break in. But older apps don't know how to handle that second verification step, so Gmail won't let them use your main password. An app password bypasses that problem without weakening your account security, because the code only works for that specific app and you can delete it anytime.
You only need an app password if you're using two-factor authentication. If you haven't turned that on, your regular Gmail password works everywhere.
Key Takeaways
- App passwords only work if you have two-factor authentication enabled on your Gmail account.
- You create app passwords in your Google Account settings under Security, not in Gmail itself.
- Each app or device that doesn't support two-factor authentication needs its own app password.
- You can delete an app password at any time if an app stops using it or you want to revoke access.
- Gmail will show you which apps have created passwords and when they last signed in.
Step-by-step: generating your first app password
Go to myaccount.google.com in your browser and sign in with your Gmail address and password. You'll land on your Google Account homepage. On the left side, click Security.
Scroll down until you see a section labeled How you sign in to Google. Below that, look for App passwords. (If you don't see this option, two-factor authentication is not turned on yet, and you'll need to enable it first.) Click on App passwords.
Google will ask you to sign in again as a security check. Enter your password and complete any two-factor verification prompts — this might mean entering a code from your phone or approving a sign-in notification. Once you're verified, you'll see a dropdown menu asking you to select the app and device you're creating the password for.
Choosing the right app and device in the dropdown
The dropdown has two parts: Select the app and Select the device. For the app, choose the program you're trying to sign into — for example, Mail if you're using Outlook or Apple Mail, Calendar if you're syncing Google Calendar to another app, or Other (custom name) if the app isn't listed.
For the device, pick the type of hardware: Windows Computer, Mac, iPhone, Android, or Other. If you're not sure which to pick, Other is always safe — it just means Google won't filter the list as narrowly. The device choice doesn't restrict where the password works; it's only for your own record-keeping so you can remember which device uses which password.
Once you've selected both, click Generate.
Copying and using the 16-character code
Google will display a 16-character password with spaces in it — something like abcd efgh ijkl mnop. Copy this entire code, including the spaces. You'll paste it into the app you're trying to sign into.
Open the app (Outlook, Apple Mail, your phone's email settings, or whatever you're configuring) and look for the password field. Paste the app password there. Do not use your regular Gmail password. The app should accept the code and sign you in.
Once the app is signed in, you can close the Google Account page. The app password stays active in the background, and you won't need to enter it again unless you sign out.
Managing and deleting app passwords you no longer use
Go back to myaccount.google.com, click Security, and scroll to App passwords. You'll see a list of every app password you've created, along with the app name, device type, and the date you created it. Some entries will also show the last date the app signed in using that password.
If an app hasn't signed in for months, or if you've stopped using it, you can delete the password by clicking on it and selecting Delete. Deleting an app password doesn't affect your Gmail account or your other passwords — it only prevents that specific app from signing in. If you want to use the app again later, you can create a new app password for it.
You should delete app passwords for apps you no longer use, especially if you've uninstalled them. This reduces the number of places your account could be compromised if someone gains access to an old device.
Troubleshooting: app password not working
If the app rejects your app password, first check that you copied the entire 16-character code, including the spaces. Some apps strip out spaces automatically, but others don't — if the app has a password field that looks too short, try removing the spaces before pasting.
Second, verify that two-factor authentication is actually on. If you disabled it after creating the app password, the code will stop working. Go back to myaccount.google.com > Security and check that 2-Step Verification shows as active.
Third, make sure you're signing into the right account. If you have multiple Gmail addresses, the app password only works for the account you created it in. Check that the app is trying to sign in with the same email address where you generated the code.
If the app still won't accept the password, try signing out of the app completely, closing it, and signing back in. Some apps cache old login attempts and need a fresh start.
Frequently Asked Questions
Can I use the same app password on multiple devices?
Technically yes, but it's not recommended. Each device should have its own app password so you can delete one without affecting the others. If a phone gets lost or stolen, you can delete just that phone's password without locking out your other devices.
What happens if I forget to copy the app password before closing the page?
You can't retrieve the original code — Google doesn't store it. You'll need to go back to myaccount.google.com > Security > App passwords, delete the old one, and generate a new one.
Do I need a different app password for Gmail on my phone versus my computer?
You can use the same app password on both if you want, but creating separate ones is safer. That way, if one device is compromised, you only need to delete that device's password.
Will creating an app password weaken my account security?
No. An app password is actually more find than giving an app your main password, because it only works for that app and you can revoke it anytime. Your two-factor authentication stays fully active.
What if an app asks for my Gmail password but doesn't have a field for an app password?
Try entering the app password in the regular password field — many apps accept it without a separate field. If that doesn't work, the app may not support two-factor authentication at all, and you may need to use a different app or temporarily disable two-factor authentication (not recommended for security reasons).