The WhatsApp verification code is a 6-digit code that proves you control a phone number. You will need it when you install WhatsApp, switch phones, or re-register. You may also receive one you never asked for. Unexpected codes cause the most confusion and worry, and scammers use them to steal accounts.
Never share the code with anyone. It is the key to your account. Spun, a shared WhatsApp inbox on your own WhatsApp number, never asks for this code. It connects by QR scan and does not provide phone numbers or verification codes.
What is the WhatsApp 6-digit code?
When you register a number, WhatsApp sends a one-time 6-digit code to that number by SMS or reads it aloud through the "Call me" option. Entering it in the app proves you control the number. WhatsApp then activates the account on that device.
WhatsApp registration relies on this code alone: whoever enters the current code controls the account. There is no username or password behind it, which is why the code must never be shared and why the optional two-step PIN exists as a second lock.
Why did I get a WhatsApp verification code I did not request?
An unexpected code means someone entered your phone number on WhatsApp’s registration screen. Common causes range from mistakes to takeover attempts:
- A typo: someone mistyped their own number and yours received the code. Nothing happens; without the code they can do nothing.
- A recycled-number mixup: the previous owner of your number (or someone with an old contact entry) tried to register it.
- A takeover attempt: someone wants your account and is about to contact you with a story to persuade you to forward the code.
As long as nobody else can read your SMS, a code that stays with you cannot be used against you. You do not need to reply, click anything, or tell WhatsApp. Delete the SMS and move on. Only if codes keep arriving repeatedly should you treat it as targeting and make sure two-step verification is on.
The "friend in trouble" scam
In a common WhatsApp account theft scam, an attacker controls a friend’s account or spoofs their identity. They message you: "Sorry, I accidentally sent my code to your number, can you forward it?" At the same moment, a real WhatsApp code arrives on your phone because the attacker has just entered your number on a registration screen.
The code is for your account, not theirs. If you forward it, the attacker registers your number on their device and you get logged out. They then send the same message to your contacts.
WhatsApp will never message or call you asking for the code, and no legitimate person ever needs a code that arrived on your phone. There are no exceptions.
What to do when the code never arrives
- 1
Check the number you typed
A wrong digit or country code is the single most common cause. The code was sent to a different number.
- 2
Wait out the timer
WhatsApp enforces a countdown before you can retry. Repeated requests do not speed up delivery. They extend the lockout.
- 3
Check signal and SMS delivery
The code comes as a regular SMS. Airplane mode, no coverage, a full SMS inbox, or an aggressive spam filter on your phone or at your carrier will prevent it from reaching you.
- 4
Use the call option
Once the SMS timer expires, choose "Call me". An automated call reads the 6 digits aloud. This also works for landlines and numbers whose carriers mishandle application SMS.
- 5
Avoid third-party SMS apps and blockers
SMS-blocking or spam-filter apps sometimes quarantine WhatsApp’s messages without notifying you. Disable them before you retry.
The 6-digit code vs your two-step verification PIN
WhatsApp has two different 6-digit secrets. Confusing them can lock you out:
- The verification code arrives by SMS or call each time a number is registered. WhatsApp generates it; you never choose it.
- The two-step verification PIN is a code you choose once in Settings, Account, Two-step verification. After any successful SMS verification, WhatsApp additionally asks for this PIN before the account opens.
Turn the PIN on. It is the only thing that stops someone who briefly controls your SMS, through a SIM swap or a stolen phone, from accessing your account. Add a recovery email so a forgotten PIN does not lock you out. Without it, resetting the PIN takes a multi-day wait.
What to do if someone already took over your account
- 1
Re-register immediately
Install WhatsApp on your phone, enter your number, and complete SMS verification. Registering the number on your device logs the attacker out everywhere: only one device owns a number at a time.
- 2
Expect the PIN screen
If the attacker enabled two-step verification to lock you out, you can still re-register with SMS. However, you must wait out WhatsApp’s reset period (up to 7 days) unless a recovery email was set. This is why setting your own PIN first matters.
- 3
Warn your contacts
The attacker most likely messaged your contacts asking for codes or money. Warn them to stop the scam from spreading.
- 4
Review linked devices
After recovery, check Settings, Linked Devices, and log out anything you do not recognize.
Related: WhatsApp QR codes and linked devices