Seen a TikTok, Facebook or YouTube video claiming that a secret phone code can tell you whether your phone has been hacked?
Codes like *#21# and *#62# are often presented as “hacker detection codes.” Dial one, a number appears, and suddenly you’re wondering whether someone is spying on you.
Here’s the truth: there is no phone code that can scan your device for hackers, spyware or malware.
Some codes can check specific call-forwarding settings, which can be useful but that is very different from checking whether your phone has been hacked.
If you’re genuinely worried about your phone, start with these 10 real signs your phone may have been hacked.
Quick Answer
On supported mobile networks, these are the codes people most commonly use to check or manage call forwarding:
| Code | What it generally checks or does |
|---|---|
*#21# | Checks unconditional call forwarding status |
*#62# | Checks forwarding when your phone is unreachable |
*#61# | Checks forwarding when you don’t answer |
*#67# | Checks forwarding when your line is busy |
##002# | Cancels call diverts on supported networks |
*#06# | Displays your device’s IMEI |
None of these codes can detect hackers, spyware, malware, or hidden tracking apps.
The underlying call-forwarding functions are common, but the exact codes and results can vary by carrier, plan and network.
Do Codes to Check If Your Phone Is Hacked Really Work?
Let’s clear up the biggest myth – these codes do NOT detect any HACKING .
They cannot find:
- Spyware or stalkerware
- Malware running in the background
- Keyloggers recording what you type
- Hidden tracking apps
What they CAN check:
- Call forwarding settings
- Whether your calls or messages are being redirected to another number
Think of them as checking one specific door in your house not a full security sweep of the entire building.
If someone has secretly set your calls to forward to their number, these codes can reveal it. That’s genuinely useful. But if your phone has spyware installed, these codes won’t pick it up at all.
Do These Codes Work on Every Phone and Carrier?
Not necessarily.
Many mobile networks support codes for checking and managing call forwarding, but the exact code, result and available features can vary between carriers and plans.
If a code returns an error or doesn’t give you a clear result, check your carrier’s call-forwarding settings or contact its support team.
What Does *#21# Actually Mean?
One of the most searched questions is: *Is #21# a hacker code? Not exactly but it can still be useful.
The *#21# code checks unconditional call forwarding. In simple terms, it shows whether your calls are being automatically redirected to another number.
Why does that matter? If call forwarding is set to a number you don’t recognize, someone could potentially intercept your calls, receive your messages, or even capture 2FA verification codes. That said, don’t panic immediately if you see a number appear. In many cases, the forwarding number simply belongs to your carrier’s voicemail system.
If no forwarding is enabled, that’s usually a good sign. But if calls are being redirected to an unfamiliar number, it’s worth investigating further, especially if your phone has also been behaving strangely.
What Does *#62# Mean?
On supported networks, *#62# checks where calls are forwarded when your phone is unreachable. For example, when it is switched off or outside network coverage.
If you want to check what happens when you don’t answer, *#61# is commonly used on networks that support this format.
How to Stop Call Forwarding Instantly: ##002#
On some supported mobile networks, dialing ##002# cancels call diverts.
But don’t think of it as a “hacker removal code.” It does not scan your phone, remove spyware or prove that someone was intercepting your calls.
It simply changes call-forwarding settings where the network supports that command.
If you’re unsure what forwarding services your carrier uses, especially if you rely on voicemail, check with your carrier before changing settings.

What These Codes Cannot Detect?
Even if all results look normal, your phone could still be compromised.
Watch for these signs:
- Battery draining fast
- Phone overheating
- Unknown apps installed
- Strange pop-ups
- Data usage spikes
What To Do If You Still Think Your Phone Is Hacked
If your codes look clean but something feels off:
- Remove suspicious apps
- Check device administrator access
- Update your OS
- Run a trusted mobile security app
- Check if your personal data was already exposed : Aura scans the dark web and alerts you if your information is circulating where it shouldn’t be. Start your free trial here.
For a full walkthrough, read: What To Do If Your Phone Is Hacked (7-Step Emergency Guide)
FAQ: Code to Check If Phone Is Hacked
Are there any codes to check if your phone is hacked that actually work?
Short answer is – no. There’s no special code that can definitively tell you whether your phone has been hacked.
However, codes like *#21# can help you spot suspicious settings.
For example, if you discover call forwarding enabled that you never set up yourself, it could be a warning sign that your phone has been compromised.
Is *#21# safe to use?
Yes. It only displays call forwarding settings and make NO changes to your phone settings.
Can hackers hide call forwarding?
In rare cases, yes. Sophisticated carrier-level attacks could theoretically hide forwarding settings.
For most people the codes give an accurate result. If concerned contact your carrier and ask them to audit your account directly.
Do these codes work on all phones?
Most work on both Android and iPhone, but results may vary depending on your carrier (such as Telstra, Optus, Verizon, or AT&T). The codes themselves are safe to use.
Are these real hacker detection codes?
No. They are network diagnostic tools, not hacking detectors.
Do these codes work in Australia and other counties?
Yes. Most USSD codes work globally, including Australia , UK, India but results may vary depending on your carrier (e.g., Telstra, Verizon, Vodafone).
Telstra, Optus, and Vodafone all support *#21#, *#62#, and ##002#. Some prepaid plans may show limited results. Contact your carrier if a code returns nothing.
Continue Your Security Journey
- If you think your iPhone may have been hacked, this guide will walk you through the most common warning signs and show you how to check whether your device has been compromised.
- What to Do in the First 10 Minutes If Your Phone Is Hacked
- 7 Ways Hackers Spy On Your Phone






Thanks for putting this together—definitely a good starting point for people wanting to be more aware of their phone security!
it’s A Nice hack for all phone users since we have our phones with us like 24/7 and it’s only right that we heed such things for our own safety.