WhatsApp Hacked? How to Get Your Account Back

If someone has taken over your WhatsApp, or is secretly reading it from another device, you can usually throw them out within minutes. Here is exactly what to do, and how to stop it happening again.

Short answer

If you can still open WhatsApp, go to Linked devices and log out any device you don't recognise. If you have been logged out, open WhatsApp, register your number again and enter the 6-digit code sent by SMS or phone call: this logs everyone else out of your account. If it asks for a two-step verification PIN or password you never set, the hacker added one, and you may have to wait about 7 days before you can get back in. Then turn on two-step verification yourself and warn your contacts.

In this article 8 sections
  1. How WhatsApp accounts get taken over
  2. Step 1: Log out devices you don't recognise
  3. Step 2: Re-register your number to kick the intruder out
  4. If it asks for a PIN or password you never set
  5. Step 3: Warn your contacts
  6. Step 4: Lock your account down
  7. When to get help
  8. Common questions
WhatsApp welcome and registration screen on a phone
Re-registering your number with the 6-digit code from WhatsApp is what logs an intruder out of your account. Image: שדהנטוש / Wikimedia Commons, CC0

How WhatsApp accounts get taken over

There are two common ways someone gets into a WhatsApp account. They either link their own computer or browser to it, so they can read your chats while you still use the app, or they register your phone number on their own phone, which logs you out.6

The second usually starts with a message from a friend's account, which has itself already been hijacked. Around the same time, you receive a 6-digit WhatsApp code by text. The "friend" says they sent it to you by mistake and asks you to forward it. If you do, the criminal uses that code to move your account to their phone.7,5

Signs that something is wrong include contacts receiving messages you never sent, or WhatsApp telling you your number is now in use on another device and asking you to register again.6

Step 1: Log out devices you don't recognise

If you can still open WhatsApp, check which computers and browsers are linked to your account. WhatsApp advises doing this regularly.2

  1. On iPhone, tap Settings. On Android, tap the three dots (⋮) in the top corner.6

  2. Tap Linked devices.6

  3. Tap any device you don't recognise and tap Log out. Repeat for each one.2

Note that this only removes linked computers and browsers. It cannot remove someone who has registered your number on their own phone.2

Step 2: Re-register your number to kick the intruder out

If you have been logged out, or you think someone is using your account on another phone, the fix is to log back in with your own number. WhatsApp says this is the only way to remove someone else from your account; changing a password won't do it.1

  1. Make sure your SIM card is in your phone.6

  2. Open WhatsApp and tap Log back in, then Continue.1

  3. If asked, enter your full phone number with the international code and tap Next, then OK.1

  4. Enter the 6-digit code you receive by SMS or phone call.1

As soon as you enter that code, every device logged into your account is automatically logged out, including the intruder's.1 If you made a backup to Google or iCloud, you may be able to restore your chat history.1 If the code does not arrive, see WhatsApp verification code not received.

Never share a WhatsApp code

Never forward your 6-digit registration code to anyone, not even friends or family.1 A real friend will never need it. Anyone asking for it is trying to take your account.7

If it asks for a PIN or password you never set

Sometimes, after the code, WhatsApp asks for a two-step verification PIN or password. If you never set one, the hacker probably did, to lock you out.1,5

WhatsApp's recovery guide says that if you don't have the PIN, wait 7 days and try again.1 Even so, the intruder is logged out as soon as you enter the 6-digit SMS code, whether you know the PIN or not.1

On the login screen you can also tap Verify another way to get a code by email, SMS or voice call instead.4 If you still can't complete two-step verification, a Reset account option unlocks after a few days.4

Resetting can delete messages

Resetting can't be undone. If you last logged in fewer than 30 days ago, it deletes messages you received since then. If it has been more than 30 days, it deletes your messages and your profile.4

Step 3: Warn your contacts

Whoever had your account may try to trick your friends, just as you may have been tricked. WhatsApp recommends telling family and friends, because the intruder could pretend to be you in chats and groups.1 Use another app, a text or a call so they hear it from you.5 Scams like the Hi Mum message often follow a hijacked account.

You can report or block a suspicious contact by pressing and holding their message and choosing Report.7 Be careful about reporting your own hijacked account, though: WhatsApp warns this could get it banned, so recover it first.1

Step 4: Lock your account down

Once you are back in, turn on two-step verification so a stolen SMS code alone is not enough to take your account again.5 WhatsApp is replacing the old 6-digit PIN with a password.3

  1. Go to Settings (on Android, tap ⋮ first), then Account, then Two-step verification.3

  2. Switch on Turn on two-step verification.3

  3. Create a strong password and confirm it.3

  4. Add an email address you can access, so you can recover your account if you forget the password.3,4

Kaspersky also suggests adding a passkey under Settings > Account > Passkeys, and asking your mobile network about protection against SIM swaps.6 Read more about two-factor authentication and passkeys.

When to get help

  • If you can't receive codes because your SIM is lost, stolen or not working, contact your mobile provider for a replacement SIM with the same number. Blocking the SIM does not log other devices out of WhatsApp.1
  • If a friend's account asks you for a code or anything unusual, call them to check it is really them before you reply.7
  • If other accounts may be affected, follow our general guide on what to do if your account is hacked.

Common questions

Can the hacker read my old messages?

Not if they registered your number on a new phone. WhatsApp messages are stored on your device, so someone re-registering your account elsewhere can't read your past conversations.1 A linked device is different: it can show chats until you log it out.2

Can WhatsApp tell me who hacked me?

No. WhatsApp says it can't tell you who accessed your account, or when or where.1,2

Will changing my password remove the hacker?

No. Passwords and two-step verification protect an account you still have. Only re-registering with the 6-digit code removes someone else.1

Sources and further reading

  1. How to recover a compromised account — WhatsApp Help Center
  2. How to check devices linked to your account and unlink a device you don't recognize — WhatsApp Help Center
  3. How to manage two-step verification settings — WhatsApp Help Center
  4. Can't remember password — WhatsApp Help Center
  5. Week 45: Don't trust every message you get from a contact — National Cyber Security Centre (Switzerland)2023-11-14
  6. What to do if your WhatsApp account gets hacked — Kaspersky2025-02-21
  7. WhatsApp Account Takeover Scam — Staffordshire County Council2023-04-03

Was this article helpful?

Tell us where you got stuck

Didn’t work? Tell us which step went wrong. We read every note and use them to fix and improve this guide.

Private. This goes only to the ByteExplained editors with the guide’s title. It isn’t published on the site.

Please don’t include passwords, QR or activation codes, or identifiers such as your phone number, EID or IMEI.

Comments

No comments yet. Questions and tips from readers are welcome.