Blog / Guides
Gmail app password: create one, and fix "not available"
- Open myaccount.google.com/apppasswords, type a name, click Create and copy the 16-letter code.
- It only works with 2-Step Verification on. If Google shows your account's home page instead, that's why.
- Work and school accounts, and accounts with Advanced Protection, may not get the option at all.
Thunderbird, a printer, a backup app or a service that sorts your inbox asks for your Gmail password, and yours doesn't work. Since 14 March 2025, Google no longer accepts your normal password in those apps (Workspace help): they need an app password. Here's how to create one, and what to do when Google won't let you.
What an app password is
An app password is a separate 16-letter code that lets one app (a mail client, or a tool like MailTag) open your email without your real Google password. It is not your Google password, and you can delete it at any time. For why it exists, when you need one and what the risks are, see what are app passwords.
Before you start: 2-Step Verification
Google only lets you create app passwords when 2-Step Verification is on.
- Already on? If Google sends a code or a prompt to your phone when you sign in, it is.
- Not sure? Open Security → 2-Step Verification and turn it on. It takes a minute and a phone.
Create the app password
- Open myaccount.google.com/apppasswords. Sign in if Google asks.
- Type a name you'll recognize later, for example the app it's for, and click Create.
- Google shows a 16-letter code like
abcd efgh ijkl mnop. Copy it now: Google shows it only once. - Paste it into the app, where it asks for a password. The spaces don't matter.
These are the steps in Google's help, checked on 26 October 2026.
If you have several Google accounts signed in, make sure the page shows the right one: click your picture at the top right and switch.
When Google won't let you
Google shows your account's home page instead
That's how Google says app passwords aren't available for this account yet. Almost always it means 2-Step Verification is off. Turn it on, then open the link again.
"The setting you are looking for is not available for your account"
Same cause in most cases: 2-Step Verification is off. Google gives two more reasons. Your 2-Step Verification may use only security keys: add another second step, such as a phone prompt or Google Authenticator. Or the account is in Google's Advanced Protection Program, which can't use app passwords at all.
Work or school account (Google Workspace)
Your organization's admin decides whether users can turn on 2-Step Verification. If you can't turn it on, ask them to allow it in Admin console → Security → Authentication → 2-Step Verification → Allow users to turn on 2-Step Verification. After that, you create the app password yourself, from your own account. If your admin requires security keys as the only 2-Step Verification method, app passwords won't appear either. Ask them whether your account can use another method.
You pasted the code and the app says the login failed
- You pasted your normal Google password instead of the app password.
- The code was created in a different Google account than the address you typed.
- You created several codes: use the newest one.
Is an app password safe?
- It only works in apps that ask for a password, like mail clients. It can't be used to sign in to your Google account or to change your password or settings.
- Each app gets its own code, so you can remove one without affecting the others.
- To revoke it, go back to app passwords and delete it. The app loses access immediately.
Using it with MailTag
MailTag uses an app password to sort your Gmail into your own categories, as labels. When you connect, it detects Gmail or Google Workspace from your address and walks you through exactly these steps. MailTag reads and labels your email, sends only what you send from it, or an AI agent you allowed to, never deletes anything, and keeps the app password encrypted. If your mail is in iCloud, Yahoo or Fastmail instead, each has its own guide, and if you want an AI agent to work with those labels, see Give Claude, ChatGPT or Cursor safe access to email. To compare the ways an agent can reach Gmail, including Google's own, see Gmail MCP servers.
FAQ
Is the app password my Google password?
No. It's a separate 16-letter code for one app. Your Google password doesn't change and isn't shared.
How do I turn on app passwords in Gmail?
There's no switch for them. Turn on 2-Step Verification, then open myaccount.google.com/apppasswords directly: Google doesn't always show it in the Security menu.
My account signs in with a passkey. Can I still create an app password?
Yes, if 2-Step Verification is on with a phone prompt, a code or an authenticator app, not only security keys. Adding a passkey doesn't turn 2-Step Verification on, so check it under Security first.
Does it expire?
It keeps working until you delete it, or until you change your Google password, which revokes app passwords.
I lost the code. Can I see it again?
No. Delete it and create a new one; it takes a few seconds.
Do I still need to enable IMAP in Gmail?
No. Since January 2025, IMAP is always on in Gmail and the setting is gone.