Skip to content
OTP Generator

Guide

SMS 2FA vs Authenticator Apps vs Passkeys: Which Is Safer?

SMS codes, authenticator apps, security keys and passkeys compared: how SIM swapping works, which methods resist phishing, and what to choose for each account.

7 min readUpdated November 12, 2026Fact-checked against RFC 6238

Quick answer

Is SMS two-factor authentication still worth using?

Yes, if it is the only option. SMS codes stop the most common attacks, which rely on leaked or reused passwords. They are weaker against targeted attacks like SIM swapping, so switch to an authenticator app, passkey, or security key wherever the service offers one.

More answers
On this page

The short answer

From weakest to strongest, the common second factors rank roughly like this:

  1. SMS or voice codes — much better than nothing, but exposed to SIM swapping and interception.
  2. Authenticator app codes (TOTP) — not tied to your phone number, and work offline.
  3. Passkeys and hardware security keys — bound to the real website, so they resist phishing.

The most important step is turning on any second factor. After that, upgrading the method on your most valuable accounts, especially email, is where the extra effort pays off.

How SMS codes work and where they fail

With SMS 2FA the service texts a one-time code to your phone number. Its appeal is obvious: no app to install and it works on any phone. The weakness is that your phone number is controlled by your mobile carrier, not by you.

SIM swapping is the best-known attack. A criminal convinces a carrier employee, through social engineering, bribery, or stolen personal details, to move your number to a SIM card they control. Your phone loses signal and their phone starts receiving your texts, including login codes and password reset links. High-value targets such as cryptocurrency holders, public figures, and executives are frequent victims.

Other weaknesses include number porting fraud, weaknesses in the telephone signalling network that have been abused to intercept texts, malware on phones that reads incoming messages, and the simple problem of not getting texts while travelling or without signal.

None of this means SMS is useless. Against the most common threat, automated attacks with leaked passwords, it still works. It is just the weakest of the options.

Authenticator apps: a solid upgrade

Authenticator apps generate codes on your device from a secret key shared during setup. Nothing is sent over the phone network, so SIM swapping does not affect them, and they work without signal. The codes follow the open TOTP standard, explained in how TOTP works.

Their main remaining weakness is phishing. If you type a code into a convincing fake site, the attacker can relay it to the real site within the 30-second window. They also need a backup plan, since losing the device loses the codes unless you use sync or saved keys. See our comparison of authenticator apps for backup options.

Passkeys and security keys: phishing resistant

Hardware security keys (small USB or NFC devices) and passkeys (credentials stored in your phone, computer, or password manager) both use the FIDO2 / WebAuthn standard. Instead of a code you type, your device signs a cryptographic challenge, and that signature is tied to the website's real domain.

The result: a fake site at a look-alike address simply cannot get a valid response, even if you are fooled. There is nothing to type, nothing to relay. That is why security-focused organisations increasingly require them.

Trade-offs exist. Hardware keys cost money and you should own two in case one is lost. Passkey support is growing fast but is not universal, and moving passkeys between ecosystems is still improving. Recovery plans remain important.

Do not forget account recovery

Your 2FA is only as strong as the easiest way around it. Many services let you recover a locked account by SMS or by email, even after you switch to an authenticator app or passkey. If a SIM swapper can reset your password and remove 2FA through a text-message recovery flow, your strong second factor does not help much.

Review each important account's recovery options:

  • Remove your phone number as a recovery method where you can, or at least where the service treats it as enough on its own.
  • Make sure your recovery email is itself protected by strong 2FA.
  • Prefer recovery through backup codes or a second security key, which only you hold.

This step is easy to overlook, and it is exactly what targeted attackers look for.

Side-by-side comparison

  • Protects against leaked passwords: SMS yes; authenticator app yes; passkey or security key yes.
  • Protects against SIM swapping: SMS no; authenticator app yes; passkey or security key yes.
  • Protects against real-time phishing: SMS no; authenticator app no; passkey or security key yes.
  • Works without phone signal: SMS no; authenticator app yes; passkey or security key yes.
  • Ease of setup: SMS easiest; authenticator app easy; passkey easy where supported, hardware keys need purchase.
  • Recovery if device is lost: SMS via carrier; authenticator app via backup or sync; passkey via synced account or a second key.

Notice that no method wins on every line. Passkeys and security keys are the strongest, but SMS is the most universally available, and authenticator apps sit in a practical middle ground that almost every service supports. Many people sensibly use a mix: passkeys or a security key where offered, an authenticator app for the long tail of other sites, and SMS only where nothing else exists.

What to do in practice

  1. Email first. Protect your primary email with a passkey or security key if offered, otherwise an authenticator app.
  2. Switch from SMS where you can. In each account's security settings, add an authenticator app, then remove the phone number as a 2FA method if the service allows it. Some services keep the number for recovery, which can quietly reintroduce SIM-swap risk.
  3. Add a carrier PIN. Most mobile carriers let you set a port-out or account PIN that makes SIM swapping harder.
  4. Save backup codes. Whichever method you use, keep backup codes somewhere safe.
  5. Accept SMS where it is the only option. It is still far better than a password alone.

Frequently asked questions

Is SMS two-factor authentication still worth using?

Yes, if it is the only option. SMS codes stop the most common attacks, which rely on leaked or reused passwords. They are weaker against targeted attacks like SIM swapping, so switch to an authenticator app, passkey, or security key wherever the service offers one.

What is a SIM swap attack?

A SIM swap is when a criminal tricks or bribes a mobile carrier into transferring your phone number to a SIM they control. They then receive your texts and calls, including 2FA codes and password reset messages, which can let them take over accounts that rely on SMS.

Are passkeys better than authenticator apps?

For phishing resistance, yes. Passkeys are bound to the real website address and there is no code to type, so fake sites cannot capture them. Authenticator apps remain a strong choice and are supported more widely, so many people use both depending on the account.

Need a code right now?

Paste your key and get the current 6-digit code in seconds. Free, private and nothing to install.