What is an OTP (one-time password)?

Definition

OTP (one-time password) is a code that works for a single login or action and then expires. Services send it by text or generate it in an app to confirm it's really you.

Full glossary
Category
Security
Also called
one-time password, one-time passcode, one-time PIN, meaning of OTP
Last updated

Reviewed by Anthon Wansland

Head of Product & Co-Founder

Serus is a privacy company with paid tools to find and remove your personal data. This page is free and based on official sources.

Sources checked: pages.nist.gov, cisa.gov, consumer.ftc.gov

Last verified against the official page:

How we research this Report an error

OTP stands for one-time password. It is a short code, usually 6 digits, that is valid once and often only for a few minutes. NIST describes it as a secret generated by an authenticator and used once to prove you hold that authenticator. That is why CISA lists a one-time passcode as a "something you have" factor: the code proves you have your phone or token, not just a password.

How you get one

  • Text message (SMS). The service texts you a code after you enter your password.
  • Authenticator app. An app on your phone generates a new code every 30 seconds or so. No text message is involved.
  • Hardware token. A small device shows a rotating code.

Time-based codes expire fast because the code is only meant to cover the seconds it takes you to type it in.

Why OTPs matter

A password can be leaked, guessed or reused. An OTP adds a second check that an attacker who only has your password can't pass. Banks, email providers and shops use OTPs to log you in, confirm a payment or reset a password.

OTPs are not perfect. CISA ranks SMS codes as the weakest form of multifactor authentication, because a text can be redirected if someone takes over your phone number (see SIM swapping). Authenticator apps and hardware keys are stronger.

OTP scams

The code only protects you if it stays with you. In a common scam, a caller pretends to be your bank's fraud team and says they are sending a code to "verify" you. The code is real: it belongs to a login or payment the scammer has started. Reading it out hands them the final proof they need. The FTC's rule is simple: never share a verification code, with anyone who contacts you first.

Example

Marcus gets a call from someone saying they're his bank's fraud department. While they talk, his phone buzzes with a 6-digit code, and the caller asks him to read it out to "cancel the suspicious transfer". He hangs up instead. The code was the bank's one-time password for a login the caller had just started with his stolen password.

How to protect yourself

  1. 1

    Never read out or forward a code

    No bank, tech company or government agency needs your code over the phone or by message. If someone asks, hang up, then call the company using the number on your card, statement or official website.

  2. 2

    Prefer an authenticator app to text codes

    Where a service offers it, switch from SMS codes to an authenticator app or a hardware key. Text codes can be diverted if your phone number is taken over.

  3. 3

    Ask your carrier for a number lock

    Add a PIN or port-out lock to your mobile account so no one can move your number to another SIM without that PIN.

  4. 4

    Report it if you shared one

    Contact the real company at once to lock the account and change the password, then report the scam at ReportFraud.ftc.gov.

See it in action

Serus

See where your personal data is exposed

Serus finds it on data brokers and people-search sites and removes it.

Run a free scan

Frequently asked

What does OTP stand for?

OTP stands for one-time password. You may also see it called a one-time passcode or one-time PIN. It's a code that works once and expires.

Is an OTP the same as two-factor authentication?

No. An OTP is one way to provide the second factor. Two-factor authentication means using two kinds of proof, and an OTP is commonly the second kind.

Why did I get an OTP I didn't ask for?

Someone may have entered your username and password, or started a password reset on your account. Don't share the code. Change your password at the real site and turn on multifactor authentication.

How long does an OTP last?

It depends on the service. Time-based codes are valid for a short window, often 30 seconds for app codes and a few minutes for texted codes, so the one on your screen will soon be useless.

Sources

Something wrong or out of date? Tell us and we'll re-check it.

Related terms

Full glossary

Cookie preferences

Choose which categories we may use. Full details for every cookie are in our Cookie Policy.

Strictly necessary

Authentication, session management, security and fraud prevention, and saving your consent choice. Always active. The site cannot function without them.

Functional

Remember preferences such as language and settings that improve your experience.

Analytics

Help us understand how the site is used, like pages visited, interactions, and performance, so we can improve it.

Marketing & advertising

Measure our marketing and deliver more relevant ads through partners such as Google, Meta, TikTok, X, and Reddit. Used only with your consent.

Your choice is saved for 12 months and applies across serus.ai, including the app. You can change it anytime from the cookie widget or the "Cookie settings" link in the footer. Withdrawing consent does not affect processing that happened before withdrawal.