
WhatsApp open on an Android phone. Image: Santeri Viinamäki / Wikimedia Commons, CC BY-SA 4.0, cropped
If your WhatsApp has been hacked, you get it back by logging in again with your phone number and the six-digit code WhatsApp sends you by text or phone call: the moment you enter that code, whoever was using your account is logged out. That is WhatsApp’s own advice, and it throws the intruder out even if they set a PIN of their own, though that PIN can mean waiting seven days before you can use the account yourself.
At a glance
- How do I get my WhatsApp back?
- Open WhatsApp, tap Log back in, enter your number and type in the six-digit code WhatsApp sends you. You need the SIM card for that number.
- They set a PIN I don’t know
- Entering the code still logs them out straight away. If WhatsApp then asks for their PIN, you may have to wait 7 days before you can get back in.
- Can they read my old chats?
- No. WhatsApp says your messages are stored on your own phone, so someone who takes over your number can’t read past chats. They can see new messages sent to you while they have it.
- Should I report the account to WhatsApp?
- Not first. WhatsApp warns that reporting a hacked account might get it banned. Recover it, then contact support if you still need help.
Which one are you?
Pick the card that fits you best:
- I’ve been logged out, or someone is messaging as meSomeone has registered your number on another phone. Log back in with the code WhatsApp sends you, then warn your contacts.Start with the four steps
- I sent someone a six-digit codeThat code was the key to your account. Log back in straight away to throw the other person out, then read how the trick works.Recover it, then read how it happens
- My phone or SIM card was stolenCall your mobile provider first to block the SIM and get a replacement with the same number.Go to the stolen phone steps
- A friend’s WhatsApp is asking me for moneyTheir account has probably been taken over. Call them before you send anything.See what to do for a friend
On an iPhone, there is one more reason you might be logged out. Since late November, WhatsApp has been logging out accounts on older versions of Apple’s iOS that show signs of an attack, after it found malware attacking iPhones that hadn’t been updated. If WhatsApp asks you to update iOS, do it first (in your iPhone’s Settings, under General and then Software Update), then log back in as below.
How to recover a hacked WhatsApp account
Work through these in order. Ticks are saved on this device only.
1. Log back in. Open WhatsApp on your own phone. If you see “You have been logged out”, tap Log back in, then Continue. Choose your country, enter your number without the leading zero, tap Next and confirm it. Type in the six-digit code from the text message. On Android, WhatsApp may instead confirm your number automatically by giving you a missed call, in which case you won’t need a code.
Registering again logs out every other phone and computer using your account, so the intruder loses access as soon as you are back in. WhatsApp says changing your password does not do this: only the code does. If you are still logged in but messages are going out that you didn’t send, someone is probably using a linked device instead: see step 3.
2. Tell people. Whoever had your account may have messaged your contacts as you, often asking for money or for their codes. Send a message or post a status saying your account was taken over and not to send anything.
3. Check linked devices. These are computers and tablets using your account through WhatsApp Web or the WhatsApp desktop app. Open Linked Devices (on iPhone from Settings or your profile picture, on Android from the three dots at the top), tap any you don’t recognise and choose Log Out.
4. Turn on two-step verification. The steps are in the last section.
Good to knowThe six-digit code WhatsApp texts you and a two-step verification PIN are different things. The code proves you have the phone number. The PIN, or password on newer accounts, is an extra lock someone chooses for the account.
Locked out by a PIN, or no code arriving
Intruders often switch on two-step verification, WhatsApp’s optional extra PIN or password that it asks for when a number is registered on a phone, to stop you getting back in. Enter your six-digit code anyway: WhatsApp says anyone using the account is logged out once you do, whether or not you know the PIN. If it then asks for the PIN and you don’t have it, WhatsApp’s advice is to wait 7 days and try again.
If the code doesn’t arrive, wait for the countdown timer on screen, which can take up to 10 minutes, then choose Call me to hear it instead. Don’t guess: WhatsApp warns that wrong guesses lock you out for a while. You need a working SIM card for the number. If you added and verified an email address before the attack, WhatsApp may offer to send the code there instead.
If your phone or SIM card was stolen
WhatsApp says to call your mobile provider as soon as possible, ask it to block the SIM card, and get a new SIM with the same number. Put it in a phone, install WhatsApp and register your number: that logs the stolen phone out.
WhatsApp says it can’t switch off your account for you, can’t find your phone, and there is no way to log your main phone out from WhatsApp Web or the desktop app. Without a SIM card for your number, getting the account back is not possible, so the call to your provider is the step that matters. If you lose only the SIM, WhatsApp may keep working on your phone for a short while, but if you move to a new number you must use WhatsApp’s Change number option (under Account in Settings) or you could lose the account for good.
How do WhatsApp accounts get hacked?
Taking over a WhatsApp account needs no technical skill. An account belongs to whoever proves they have the phone number, and the proof is the six-digit registration code. So scammers trick people into handing it over: they start registering your number on their own phone, WhatsApp texts the code to you, and a message arrives, often from a friend whose account they already control, saying they sent you a code by mistake and asking you to pass it on. WhatsApp’s advice is never to share that code with anyone, “not even friends or family”.
The other common route is a linked device: WhatsApp Web, the desktop app or a tablet signed in to your account, perhaps on a shared or borrowed computer, which can read your new messages until you log it out. If you didn’t set one up yourself, it shouldn’t be there.
If a friend’s WhatsApp has been hacked
WhatsApp says scammers commonly pretend to be a friend or family member to get money or personal details, and that an odd message from someone you know may mean their account has been taken over. Before sending money or a code, check by calling them on a number you already have, or ask something only they would know. If it isn’t them, tap their name at the top of the chat to block and report the account, and point your friend to this guide.
Should you report it to WhatsApp?
Recover the account first. WhatsApp warns that if you report your own hacked account, it “might ban it” and you could lose access. If you still need help afterwards, contact WhatsApp inside the app: tap Settings or your profile picture, then Help and feedback and Contact Us, or use the form at whatsapp.com/contact. Replies come from an address ending in @support.whatsapp.com. WhatsApp has no customer service phone number and says numbers claiming to be WhatsApp support are probably scams, as is anyone offering to unban an account for a fee.
If you or your contacts lost money, tell your bank straight away and report it:
- UK: Report Fraud, the police’s fraud reporting service, or call 101 in Scotland, as the government’s National Cyber Security Centre advises.
- US: the Federal Trade Commission at ReportFraud.ftc.gov.
- Canada: the government’s Canadian Anti-Fraud Centre.
- Australia: Scamwatch, the government’s scam reporting service.
- India: cybercrime.gov.in, or call 1930, the national cyber fraud helpline.
Lock it down so it doesn’t happen again
WhatsApp says these settings can’t remove someone who is already in your account, so turn them on once you are back in. On an iPhone they start from the You tab (or Settings, depending on your version); on Android, tap the three dots at the top, then Settings.
| Setting | Where to find it | What it does |
|---|---|---|
| Two-step verification | Account, then Two-step verification | Asks for your own password when your number is registered on a new phone, so a stolen code alone isn’t enough. |
| Email address | Account, then Email address | Gives you another way to get back in if texts don’t reach you. |
| Passkey | Account, then Passkeys (on phones that support them) | Lets you register with your fingerprint, face or screen lock instead of an SMS code. |
| Linked devices | Linked Devices | Shows every computer and tablet using your account, so you can log out any you don’t recognise. |
Show how: turning on two-step verification
- iPhone: tap You, then Account, then Two-step verification, and switch on Turn on two-step verification.
- Android: tap the three dots, then Settings, Account, Two-step verification, and switch it on.
- Create a password of at least 8 characters with at least one letter and one number, and don’t reuse one from anywhere else. Add an email address you can get into when asked, or tap Skip.
A passkey uses the same technology many banks and email services now offer, which we explain in our guide to passkeys. When you use WhatsApp Web on a computer that isn’t yours, untick Stay logged in on this browser before scanning the QR code, so it logs out when you close the browser.
Last checked: 6 December 2026, against WhatsApp’s Help Center and the NCSC’s guidance on recovering a hacked account.
Frequently asked questions
How do I recover my hacked WhatsApp account?
Open WhatsApp on your own phone, tap Log back in and register your phone number again with the six-digit code WhatsApp sends by text or call. Entering the code logs out whoever else was using the account. Then tell your contacts and turn on two-step verification.
What happens if a hacker turned on two-step verification?
Enter your six-digit code anyway: WhatsApp says that logs the other person out even if you don’t know the PIN. If WhatsApp then asks for the PIN and you don’t have it, it says to wait 7 days and try again.
Can a hacker read my old WhatsApp messages?
Not by taking over your number. WhatsApp says messages are end-to-end encrypted, meaning only the phones in the chat can read them, and stored on your own phone, so someone who registers your number elsewhere can’t read your past chats. They can see new messages sent to the account while they control it.
Someone sent me a WhatsApp code by mistake. What should I do?
Don’t pass it on. It is almost always a trick: the code is the key to your own account, and someone is trying to register your number on their phone. WhatsApp says never to share it, “not even friends or family”. If you already sent it, log back in straight away.
Will changing my password remove the hacker?
No. WhatsApp says the only way to remove someone from your account is to register your number again with the six-digit code. Changing your two-step verification password or PIN does not log them out.
How do I see who is logged in to my WhatsApp?
Open Linked Devices: on iPhone, tap Settings or your profile picture; on Android, tap the three dots. It lists every computer and tablet using your account. Tap any you don’t recognise and choose Log Out. WhatsApp can’t tell you who accessed your account or when.
Is there a WhatsApp phone number for hacked accounts?
No. WhatsApp has no customer service phone number and says numbers claiming to be WhatsApp support are probably scams. Contact it in the app through Settings, Help and feedback, Contact Us, or the form at whatsapp.com/contact.
Can I recover WhatsApp without my SIM card?
No. WhatsApp says recovering an account without a SIM card for the same number is not possible. If your phone or SIM was lost or stolen, ask your mobile provider to block it and send you a replacement SIM with the same number.
Why was I logged out of WhatsApp on my iPhone?
Since late November 2026 WhatsApp has been logging out accounts on iPhones running older versions of iOS that show signs of a malware attack, and asking their owners to update. Other common reasons are someone registering your number on another phone, changing phone, or not using WhatsApp for more than 120 days.
Sources: WhatsApp: recover a compromised account; WhatsApp: “You have been logged out”; WhatsApp: lost or stolen device; WhatsApp: two-step verification settings; WhatsApp: linked devices; WhatsApp: passkeys; WhatsApp: suspicious messages and scams; WhatsApp: contact support; NCSC: recovering a hacked account.





