All resources
Security·8 min read·iPhone

Every Secret iPhone Code (Plus the One That Hijacks Your Calls and Texts)

This is the list I promised in the video. Every code you type into the iPhone keypad and press call, grouped by what it does, with the two that matter most at the top. A few depend on your carrier, I flag those as we go.

Start here: the 10 second check

Open the Phone app on your iPhone, go to the keypad, type the code below and press call. A screen pops up with a line for every kind of forwarding on your line, voice, data, fax, SMS. You want every line to say Disabled.

If one of them says On and shows a number you don't recognize, someone is getting a copy of your calls. If the SMS line is on, they're getting your texts too, and that includes every two factor code your bank sends you. That's the whole attack from the video.

Run it on your own phone. It takes ten seconds and changes nothing.

Copy-paste this
*#21#

The kill switch

Saw a number you didn't set? Type this and press call. It erases every forwarding rule on your line in one shot, no menus. You'll see Setting Erasure Succeeded for each type. Now run the check again, boom, everything reads Disabled.

It's harmless to run even if you're clean. I run it every couple of months just to be safe.

Copy-paste this
##002#

How the takeover works (so you can spot it)

Call forwarding is a normal carrier feature. The problem is how easy it is to switch on. The code that forwards everything looks like this: **21* then a phone number then #. Thirty seconds with your unlocked phone is all it takes, and the phone shows no icon, no banner, nothing.

The other version is the courier or bank scam. Someone calls, says they need to verify your line, and reads you a code to dial. You dial it, you just forwarded your own calls to them.

Two rules. Never dial a code someone reads to you over the phone. And only ever run forwarding codes on a line you own. Setting forwarding on someone else's phone without permission is illegal, this page exists so you can catch it, not do it.

Every call forwarding code

Four conditions, and for each one you can check it, set it, or cancel it. Replace number with the full number including the country code (1 for the US, T-Mobile insists on it). Replace seconds with how long your phone rings first, 5 to 30.

WhatCheckSetCancel
All calls (unconditional)*#21#**21*number###21#
When you don't answer*#61#**61*number**seconds###61#
When you're off or out of signal*#62#**62*number###62#
When your line is busy*#67#**67*number###67#
Everything at once*#21###002#
Only the three conditional ones##004#

##004# is the softer wipe. It clears busy, no answer and unreachable forwarding and puts them back to the default, which is your voicemail. ##002# clears all four. On Verizon the GSM strings often fail, use the carrier codes further down instead.

Identity and hardware codes

*#06# shows your IMEI, the serial number your phone uses on the network. On dual SIM iPhones you also get IMEI2, MEID and the EID for the eSIM. You need it to report a stolen phone, or to check a used one against a blocklist before you pay for it. Works on every iPhone, every carrier.

*#07# opens the legal and regulatory screen, the radiation exposure numbers and certifications Apple buries deep in Settings.

*3001#12345#* opens Field Test Mode, the engineering screen for your cellular radio. Real signal strength in dBm instead of bars, the tower you're on, the band you're using. Signal is negative and closer to zero is stronger. Around -80 is great, -110 is barely holding on. Nothing here changes anything, it's read only.

Copy-paste this
*#06#
*#07#
*3001#12345#*

Caller ID codes

Two directions. Whether your number shows when you call out, and whether you see other people's numbers when they call in.

CodeWhat it does
*#31#Check if your number is hidden on outgoing calls
#31#numberHide your number for that one call
*31#numberShow your number for that one call, if it's normally hidden
*#30#Check if incoming caller IDs are shown to you
*#76#Check connected line presentation, carrier dependent, some networks just say not supported
*67numberThe US version of hide for one call, works on every carrier
*82numberThe US version of show for one call

To hide your number permanently it's Settings, then Phone, then Show My Caller ID. T-Mobile flips the 31 codes around, on their network #31# shows your number and *31# hides it.

Call waiting and call barring

Call waiting is the beep when a second call comes in. Barring blocks calls in or out, handy on a kid's phone or a work line. The barring codes need your carrier's barring password, usually 0000 or 1234, and your carrier can reset it.

CodeWhat it does
*#43#Check call waiting
*43#Turn call waiting on
#43#Turn call waiting off
*#33#Check if outgoing calls are barred
*33*password#Bar all outgoing calls
#33*password#Unbar outgoing calls
*#35#Check if incoming calls are barred
*35*password#Bar all incoming calls
#35*password#Unbar incoming calls
*#330#Check every barring rule at once
#330*password#Cancel every barring rule

If *#33# ever shows barring you didn't set, that's a second thing worth clearing with the password.

SIM PIN codes

These change the PIN on the SIM itself, the lock that stops someone moving your SIM into another phone. It's the step most people skip after a forwarding scare.

CodeWhat it does
**04*oldPIN*newPIN*newPIN#Change your SIM PIN
**042*oldPIN2*newPIN2*newPIN2#Change PIN2, the one for fixed dialing
**05*PUK*newPIN*newPIN#Unblock a locked SIM with the PUK
**052*PUK2*newPIN2*newPIN2#Unblock PIN2 with PUK2

Careful with the PUK. Ten wrong tries and the SIM is dead for good. It's printed on the card the SIM came in, or sitting in your carrier account. You can also change the PIN in Settings, then Cellular, then SIM PIN.

Service numbers and alerts

CodeWhat it does
*#5005*7672#Show the SMS center number your texts route through
*5005*7672*number#Set the SMS center number, only if your carrier tells you to
*#5005*86#Show your voicemail number
*5005*86*number#Set your voicemail number
*5005*25371#Check the status of Wireless Emergency Alerts on your line
*5005*25370#Turn the hidden emergency alert settings off, on carriers that allow it
611 or *611Call your carrier
*86Your voicemail on Verizon, hold 1 on AT&T and T-Mobile

If texts stop arriving after someone messed with your phone, the SMS center number is one of the first things to compare against your carrier's published one.

Codes by carrier

Account codes are per carrier and only work on that network. Verizon grew up on CDMA, so the GSM forwarding strings above often fail there and the star codes below do the job instead.

NeedAT&TT-MobileVerizon
Balance and last payment*225##225##225
Data used*3282##932##3282
Minutes used*646##646##646
Texts used#674#
Your own number#686#
Pay the bill#768
Forward all calls**21*number#**21*1number#*72number
Forward when no answer**61*number#**61*1number#*71number
Cancel forwarding##002###002#*73
Reset conditional forwarding##004###004#*73
Voicemailhold 1hold 1*86
Support611611*611

T-Mobile has a whole extra layer. #664# turns Scam ID on and #634# turns it off. #662# turns Scam Block on, #632# turns it off, #787# shows the status. #766# and #763# switch international data roaming on and off. #793# resets your voicemail password, #999# shows a prepaid balance.

AT&T also has *3286# for your usage in Spanish, plus *639# for upgrade eligibility and *729 to pay the bill, though those last two show up on other code lists and I haven't run them myself. Verizon has #874 for your upgrade date, #832 to place a test call after activation, and #7623 for roadside assistance.

Universal star codes (any US line)

Vertical service codes. They work on nearly every US carrier and even landlines, no # at the end, dial them right before the number where shown.

CodeWhat it does
*67numberHide your caller ID for that call
*82numberShow your caller ID for that call
*69Call back the last number that called you
*57Malicious call trace, logs the last call with your carrier for law enforcement
*70numberTurn off call waiting for that one call
*72numberForward all calls
*73Cancel that forwarding
*71numberForward only when busy or unanswered

*57 is the one nobody knows. Get a threatening call, hang up, dial *57, and the carrier keeps a record the police can pull, even if the number was hidden.

The cheat sheet (paste into Notes)

Every code on one screen so you're not scrolling back here mid keypad. Paste it into Notes.

Copy-paste this
IPHONE SECRET CODES

CHECK + KILL FORWARDING
*#21#    check all forwarding (want Disabled)
##002#   erase ALL forwarding
##004#   reset busy / no answer / unreachable forwarding
*#61#    check no-answer forwarding
*#62#    check unreachable forwarding
*#67#    check busy forwarding
##21#  ##61#  ##62#  ##67#   cancel each one

HARDWARE
*#06#           IMEI (IMEI2 / EID on dual SIM)
*#07#           legal and regulatory info
*3001#12345#*   Field Test Mode (real signal in dBm)

CALLER ID
*#31#        is my number hidden on outgoing calls
#31#number   hide my number for one call
*31#number   show my number for one call
*#30#        do I see incoming caller IDs
*67number    hide for one call (US, any carrier)
*82number    show for one call (US, any carrier)

CALL WAITING + BARRING
*#43#  check    *43#  on    #43#  off
*#33#  check outgoing barring   *33*pw#  bar   #33*pw#  unbar
*#35#  check incoming barring   *35*pw#  bar   #35*pw#  unbar
*#330# check all barring        #330*pw#  cancel all

SIM PIN
**04*old*new*new#    change SIM PIN
**05*PUK*new*new#    unblock SIM with PUK

SERVICE
*#5005*7672#   SMS center number
*#5005*86#     voicemail number
*5005*25371#   emergency alerts status
611 / *611     call your carrier

CARRIER (AT&T / T-Mobile / Verizon)
balance   *225#   #225#   #225
data      *3282#  #932#   #3282
minutes   *646#   #646#   #646
forward   **21*number#   **21*1number#   *72number
cancel    ##002#         ##002#          *73

ANY US LINE
*69        call back the last caller
*57        malicious call trace
*70number  no call waiting for one call

If the check showed a number you don't know

Do these in order and you close every door at once.

  1. ##002# to wipe forwarding, then *#21# again to confirm every line reads Disabled.
  2. Change your SIM PIN with **04* so the SIM can't be moved to another phone.
  3. Change your Apple ID password and turn on two factor under your name in Settings, then Sign-In & Security. Move your bank and email to an authenticator app instead of SMS codes, forwarding can't touch those.
  4. Check Settings, then Phone, then Call Forwarding, and Settings, then Messages, then Send & Receive, for anything you didn't add. The 60 second settings sweep walks through all of it.
  5. Call your carrier, ask for a port out lock and an account PIN. If forwarding comes back after all that, someone still has access. Factory reset and get the SIM reissued.

If the person who did this has had your phone in their hands and you feel unsafe, change your passcode to one they don't know and reach out to a domestic safety resource. The technical fix and the personal safety side are both real.

Why a code fails

Setting interrogation failed or invalid MMI code usually means one of five things. Wi-Fi Calling grabbed the code instead of the cellular network, turn it off and try again. No real signal. Dual SIM and you're querying the wrong line, switch the line in the Phone app. Verizon, which never fully supported the GSM strings, use the star codes. Or the carrier just doesn't offer that one, in which case nothing happens and that's normal.

Type them exactly. The strings are picky about every star and pound.

Use this responsibly

Everything here is for checking and securing your own iPhone, or one you have permission to test. The check and wipe codes are safe on your own line. The forwarding and barring codes are not a toy, configuring them on someone else's phone without consent is illegal in most places. Run the check on your own phone tonight, then send this to someone you care about so they can too. If you want the Android side as well, the master list covers both.

Get the next one first

New prompts every week.

Free. The new drops and the tools behind them, before they hit the feed.

No spam · New issues Sunday · Unsubscribe anytime

Need it custom?

Want this built for you?

Tell me the idea and I’ll build it. An app, a tool, an automation. You don’t need to be technical.

Frequently asked questions

It asks your carrier for every unconditional forwarding rule on your line, voice, data, fax and SMS, and prints the status of each. You want every line to read Disabled. A line that says On with a number you don't recognize means calls or texts are being copied to that number. Wipe it with ##002#, then run the 60 second settings sweep to close the other doors.

Yes. It erases every call forwarding rule on your line and sets forwarding back to off. If nothing was set, nothing changes. Run *#21# after it to confirm.

On carriers that honor SMS forwarding, yes. The forwarding rule can cover the SMS line, and *#21# prints that line separately so you can see it. That's why the playbook moves your important logins to an authenticator app, forwarding can't reach those.

Verizon's network grew up on CDMA and never fully supported the GSM interrogation strings. Use *72 plus a number to forward, *73 to cancel, #225 for balance and #3282 for data. The carrier table in the guide has the rest.

Yes. The codes run on whichever line the Phone app is set to use, so if the result looks wrong, switch the line in the Phone app and run it again. *#06# shows the EID for the eSIM too.