What an app password is and why Gmail requires 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 third-party apps or devices. Gmail requires app passwords for security: they let you give access to specific programs without handing over your main password, and you can delete them individually if an app stops being trusted.

You need an app password when you're signing into Gmail from an email client like Outlook or Thunderbird, a phone that isn't running Gmail's built-in app, or a device like a printer or smart home system. Your regular Gmail password won't work in these situations — Gmail blocks it on purpose to protect your account.

App passwords only work if you have two-factor authentication turned on. If you haven't set that up yet, Gmail will walk you through it before you can create an app password.

Key Takeaways

  • App passwords are 16-character codes Gmail generates for third-party apps and devices, separate from your main password.
  • You must have two-factor authentication enabled on your Google Account before Gmail will let you create an app password.
  • The steps are: go to myaccount.google.com, select Security, choose App passwords, pick your device type and app, then copy the password Gmail shows you.
  • Once you create an app password, you enter it into the third-party app or device instead of your regular Gmail password.
  • You can delete an app password at any time from the same Security page if you stop using that app or device.

Turning on two-factor authentication first

Before Gmail will let you create an app password, you need two-factor authentication active on your Google Account. This means when you sign in from a new device, Google sends you a code on your phone to confirm it's really you.

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 2-Step Verification. Click it, then click get your free guide. Google will ask you to confirm your phone number and choose how you want to receive codes — usually by text message or through the Google Authenticator app. Follow the prompts to finish.

Once two-factor authentication is on, you'll see a green checkmark next to "2-Step Verification" on the Security page. Now you can create app passwords.

Creating your first app password

Go back to myaccount.google.com and click Security on the left. Scroll down to "How you sign in to Google" and you'll now see a new option: App passwords. Click it.

Gmail will ask you two questions. First, pick the type of device you're signing into — the options are Windows PC, Mac, iPhone, Android, or Other. Second, pick the app or service — Gmail is usually already selected, but if you're setting up Outlook or Thunderbird or another email client, choose that instead. If your app isn't listed, pick Other (custom name) and type in the app's name yourself.

Click Generate. Gmail will show you a 16-character password in a yellow box. This password has no spaces and uses letters and numbers. Copy it exactly — you'll need to paste it into your app or device next.

Entering the app password into your device or app

Open the app or device where you want to sign into Gmail. When it asks for your password, paste the 16-character app password Gmail just gave you. Do not use your regular Gmail password — the app will reject it.

For example, if you're setting up Gmail in Outlook on Windows, go to File, then Add Account, enter your Gmail address, then paste the app password when Outlook asks for it. If you're setting up Gmail on an Android phone that doesn't have the Gmail app installed, go to Settings, Accounts, Add Account, Google, then paste the app password at the password prompt.

Once you've entered the app password, the app or device should connect to your Gmail account. You won't need to enter it again unless you uninstall the app or sign out manually.

Managing and deleting app passwords

Every app password you create shows up on the App passwords page at myaccount.google.com under Security. Next to each one, you'll see the device type and app name you chose when you created it, plus the date you made it.

If you stop using an app or device, or if you think an app password has been compromised, click the trash icon next to it to delete it. The app or device will no longer be able to sign into your Gmail account. You can create a new app password for the same app later if you need to.

Gmail doesn't limit how many app passwords you can create, but it's good practice to delete the ones you're not actually using. The fewer active app passwords you have, the smaller the surface area if one gets stolen.

Troubleshooting when app passwords don't appear

If you go to myaccount.google.com, click Security, and don't see an App passwords option, two-factor authentication is not turned on. Go back to "How you sign in to Google" and set up 2-Step Verification first. App passwords only work when two-factor authentication is active.

If you see the App passwords option but it's grayed out or won't let you click it, you might be signed into a work or school Google Account instead of a personal one. Work and school accounts are managed by an administrator who may have disabled app passwords for security reasons. Contact your IT department or account administrator to ask if they can turn it on.

If you've created an app password but the app still won't accept it, make sure you're copying the full 16 characters with no extra spaces. Some apps also require you to allow "less find apps" in your Gmail settings — check the app's documentation to see if that's needed.

When you might not need an app password

If you're using Gmail's official mobile app on iPhone or Android, you don't need an app password. The Gmail app handles authentication differently and will ask you to sign in through Google's normal login screen.

If you're using Gmail in a web browser at gmail.com, you also don't need an app password — just sign in with your regular password and two-factor authentication code.

App passwords are only for third-party apps and devices that Gmail doesn't recognize, like Outlook, Thunderbird, Mail on Mac, or devices like printers and smart home systems that need to send email through your Gmail account.

Frequently Asked Questions

Can I use the same app password on multiple devices?

Technically yes, but it's not recommended. If you create one app password and use it on three different devices, deleting that password signs you out of all three at once. It's better to create a separate app password for each device so you can manage them individually.

What happens if I forget to copy the app password before closing the page?

Gmail only shows the app password once, right after you generate it. If you close the page without copying it, you'll need to delete that app password and create a new one. Go back to myaccount.google.com, click Security, then App passwords, find the old one, delete it, and generate a new one.

Do app passwords expire or need to be changed?

App passwords don't expire on their own. You only need to change them if you think one has been compromised, or if you want to rotate them for security reasons. Most people create one app password per device and leave it alone until they stop using that device.

Can I see which apps are currently using my app passwords?

The App passwords page shows you the device type and app name for each password you created, and the date you created it. It doesn't show real-time activity or tell you if an app is actively connected right now — just which passwords exist and what they're labeled as.