On this page
Yes, you can
Two-factor authentication needs something you have, but that something does not have to be a phone. Authenticator codes come from a secret key, and any device or app that holds the key can produce them. Many services also accept hardware keys and backup codes.
If you have just lost your phone and are locked out, start with the lost phone recovery guide instead. The options below are for setting things up without a phone.
Six ways to do 2FA without a phone
- Hardware security key (YubiKey, Google Titan and similar). Plug it in or tap it to sign in. The most phishing-resistant choice, supported by Google, Microsoft, GitHub, many banks and password managers.
- Passkeys on your computer. Windows Hello, macOS Touch ID or a hardware key can store a passkey that replaces the password and the code.
- Desktop authenticator or password manager. Apps such as KeePassXC, Ente Auth, 1Password or Bitwarden (premium) store the secret key and show the 6-digit code on your computer. See authenticator codes on a PC.
- Tablet or old phone without a SIM. Authenticator apps work offline, so a Wi-Fi-only tablet or retired phone can be your 2FA device.
- Backup codes. Most services give you 8 to 10 single-use codes when you turn on 2FA. Print them or keep them in a password manager. Our backup code generator can make a set for your own systems.
- Browser-based TOTP generator. Paste the secret key into a client-side tool like our TOTP generator when you need a code. Store the key safely elsewhere, because the page keeps nothing.
Options to avoid or use with care
- SMS to a landline or shared number. Some services can call a landline with the code, but voice and SMS codes are the weakest second factor. See SMS vs authenticator app.
- Email codes. Only as safe as your email account, and useless if the email account itself is what you are protecting.
- Keeping the key next to the password. If both live in the same unlocked file on the same computer, one leak exposes both. Use an encrypted vault.
Getting the secret key without scanning a QR code
When a site shows a QR code during 2FA setup, look for a link such as Can't scan it?, Enter key manually or Show secret key. It reveals the text key, which you can paste into any of the options above. If you only have the QR image, our QR code to secret key tool reads it in your browser. More detail in how to find your 2FA secret key.
Frequently asked questions
Can I use 2FA without a phone?
Yes. Use a hardware security key, a passkey on your computer, a desktop authenticator or password manager that stores the TOTP secret key, a Wi-Fi-only tablet, or printed backup codes. All of them work without a smartphone.
How do I get a 2FA code on my computer?
Add the account's secret key to a desktop authenticator or a password manager with TOTP support, or paste it into a client-side browser tool such as a TOTP generator. Each will show the same 6-digit code an authenticator app on a phone would.
What is the most secure 2FA without a phone?
A hardware security key or a passkey. They are bound to the real website, so they resist phishing far better than any 6-digit code.
Do authenticator apps need a SIM card or internet?
No. TOTP codes are calculated from the secret key and the device clock, so authenticator apps work with no SIM and no connection once the account has been added.