Aditya Sharma

Can You Use One YubiKey for Multiple Accounts? Yes. Here Is the Real Limit

On this page, 4 sections

Short answer: yes. One YubiKey works as a security key on as many websites and accounts as you like. The only limits are for things the key has to store: passkeys and authenticator codes. Here is how it works, what the real limits are, and what I would set up before relying on one key.

Can You Use One YubiKey for Multiple Accounts?

Yes. When you add a YubiKey to Google, GitHub, Microsoft or your password manager as a “security key”, the key does not save anything per account.

Yubico’s own developer docs say the key “does not need to store any per-credential data, and can thus register and use any number of credentials” (Yubico, Key generation). So for normal two-factor login, there is no account limit at all.

Where the limits actually are

Three features do store data on the key, and those have a fixed number of spaces. Per Yubico’s 5.7 firmware announcement (Yubico blog):

  • Passkeys (sign in with no password): up to 100 on firmware 5.7 or newer, 25 on older YubiKey 5 keys.
  • Authenticator codes (the 6-digit TOTP codes in Yubico Authenticator): up to 64 on firmware 5.7 or newer, 32 on older keys. The Security Key series does not do these at all.
  • OTP slots (the “touch to type a code” feature): 2. These are for a couple of special logins, not for your everyday accounts.

So if a site asks to save a passkey on your YubiKey, it uses one of those spaces. If it just asks you to touch the key after your password, it uses none.

Not sure which key you have? I compared them here: YubiKey Security Key vs YubiKey 5.

Why use one YubiKey for many accounts

  • Cost: one key (plus a backup) covers everything, so you do not buy a key per service.
  • Convenience: one thing on your keyring for every login.
  • Safety: security keys resist phishing, because the key only answers the real website it was registered with.

Wondering if a YubiKey replaces your password manager? I explained the difference here.

What to set up before you rely on one key

  • Register a second, backup YubiKey on every account. This is the one step people skip and regret. Keep it somewhere else.
  • Save each site’s recovery codes in your password manager or on paper.
  • Set a FIDO2 PIN if you use passkeys, so a found key cannot be used on its own.
  • Keep strong passwords on accounts where the key is the second factor.

How to Use One YubiKey for Multiple Accounts

Which YubiKeys work

Every current YubiKey that supports FIDO2/WebAuthn can be added to unlimited sites as a security key. That includes the YubiKey 5 family and the Security Key series. If you also want authenticator codes on the key, you need a YubiKey 5.

Some YubiKey 5 models:

  • YubiKey 5 NFC
  • YubiKey 5C
  • YubiKey 5Ci
  • YubiKey 5 Nano

How to add your YubiKey to each account

  1. Log in to the website or service.
  2. Open its security or two-factor settings and choose “security key” (some sites call it “hardware key” or “passkey”).
  3. Insert or tap the YubiKey and touch it when asked.
  4. Give it a name, like “YubiKey main”.
  5. Repeat with your backup key, then repeat for every other site.

That is it. The same key now protects all of those accounts. If you use Bitwarden, here is how I set up Bitwarden with a YubiKey.

Before you buy: Can a YubiKey be hacked?

How to Log In Using Your YubiKey for Multiple Accounts

After your password, the site asks for your security key. Insert or tap the YubiKey and touch it. The key proves it is the same key you registered, for that exact website. No code to type.

YubiKey security key prompt during login

Adding authenticator codes to your YubiKey

Some sites only offer 6-digit authenticator codes. A YubiKey 5 can store those too, using the free Yubico Authenticator app: open the app, insert the key, choose to add an account and scan the site’s QR code. To remove one, select it in the app and delete it. These use the 64 (or 32 on older keys) code spaces mentioned above.

More YubiKey guides

Frequently Asked Questions: Using One YubiKey for Multiple Accounts

How many accounts can one YubiKey hold?

As a security key for two-factor login, unlimited: the key stores nothing per account. Passkeys are limited to 100 on firmware 5.7 or newer (25 on older keys), and authenticator codes to 64 (32 on older keys).

What happens if my YubiKey is lost or stolen?

For accounts where the key is a second factor, a finder still needs your password. For passkeys, a FIDO2 PIN stops them. Either way, sign in with your backup key or recovery codes and remove the lost key from each account.

Can a YubiKey be copied?

The private keys are created inside the YubiKey and are designed so they cannot be exported, so a normal copy is not possible. Yubico’s design and known attacks are covered in my post on whether a YubiKey can be hacked.

What if my YubiKey breaks?

You lose nothing as long as a backup key is registered on each account, or you saved the recovery codes. That is why the backup key comes first.

Tell me where I am wrong

Your email is not published and I do not add it to any list. Corrections with a source are the ones I act on fastest.