Stay Safe Online

How to turn on WhatsApp two-step verification (and stop the code scam)

A message pops up from a friend. "I sent you a code by mistake. Can you send it back?" It looks harmless, but that six-digit code is what someone needs to take over your WhatsApp. Here's why you should never send it, and the setting that adds a password.

By Midhun Thomas4 min read

Checked on WhatsApp's help pages, and tested on an iPhone 11 Pro (iOS 27) and a Samsung Galaxy A24 (Android 16), 3 Dec 2026.
Works on: WhatsApp on iPhone and Android. On Android, if you don't see You, start at ⋮ › Settings (the route WhatsApp's help page shows).

On this page
  1. Why that code matters so much
  2. WhatsApp's rule: never share the code
  3. How to turn on WhatsApp two-step verification
  4. What WhatsApp two-step verification changes
  5. Already sent the code?
  6. Questions people ask

Watch the 60-second Reel, or open it on YouTube. Made with AI tools.

Why that code matters so much

When you set up WhatsApp on a phone, WhatsApp sends a six-digit code by text to your number. So a code you didn't ask for means someone has typed your number into WhatsApp.

WhatsApp says this is often just someone mistyping their own number. But it can also be someone trying to take over your account. Without the code, they can't finish. With it, they can.

Here's the clue in that "send it back" message. The code didn't come from your friend's phone. WhatsApp sent it to your number, because someone typed your number in. And if they ask for another code later, it's the same trick.

WhatsApp's rule: never share the code

WhatsApp is very clear. Never share your registration code with others, "not even friends or family".

I like to think of it as the key to your front door. Nobody you trust ever needs a copy sent over a text message. And a message from a friend's name isn't proof that your friend wrote it. Their account may have been taken over, and whoever has it can pretend to be them in chats and groups.

How to turn on WhatsApp two-step verification

Two-step verification adds a second lock: a password that only you know. Let's set it up together.

  1. Open WhatsApp and tap You.
  2. Tap Account, then Two-step verification.
  3. Switch on Turn on two-step verification.
  4. Create a password and type it again. It needs at least 8 characters, with at least 1 letter and 1 number.
  5. Add an email address you can open, and tap Next.
  6. Type in the six-digit code WhatsApp emails you, and tap Verify.
  7. Tap Trust this device.

I checked these steps on an iPhone 11 Pro and a Samsung Galaxy A24, and both started at the You tab. On Android, if you don't see You, try ⋮ › Settings › Account. That's the route WhatsApp's help page shows.

A tip from the classroom

Don't skip the email step. It gives you another way back in if you ever forget the password.

What WhatsApp two-step verification changes

Now, even if someone gets your six-digit code, WhatsApp asks for your password too. Keep every code to yourself, all the same.

If you set up a six-digit PIN in the past, WhatsApp's help page says it's upgrading PINs to passwords, and it explains how to switch.

Already sent the code?

First, don't panic. WhatsApp says changing your password won't remove someone who's already in. You need to recover your account.

  1. Open WhatsApp and tap Log back in, then Continue.
  2. Enter the six-digit code sent to your phone by text or call.

That logs everyone else out of your account. Then turn on two-step verification. And tell your friends and family, because the other person could pretend to be you in chats and groups.

Questions people ask

I forgot my WhatsApp two-step verification password. What now?

Tap Verify another way and choose email, SMS or a voice call. If none of those work, WhatsApp says a reset option unlocks after a few days.

I got a WhatsApp code I didn't ask for. Am I hacked?

Not necessarily. Often someone has simply typed the wrong number. Don't share the code, and you stay in control.

Can they read my old chats if they take over my account?

WhatsApp says no. Messages are stored on your device, so someone using your account on another phone can't read your past chats. They can still message people as you, though.

Worried about your email too? Here's how to check your Gmail forwarding settings after a break-in.

Have you ever had a "sent you a code by mistake" message? Now you know exactly what to say: nothing at all.

More Stay Safe Online