Secret Codes guide
*31#[number] on iPhone: Show Your Number (GSM Style)
By Muhammad Shahid · · 3 min read
Quick answer
*31#[number]: The GSM per-call caller ID override. The GSM equivalent of *82. Presents your caller ID for one call even when your line is set to withhold it.
| Code | *31#[number] |
|---|---|
| What it does | The GSM per-call caller ID override. |
| Published for | AT&T and T-Mobile |
| Type | GSM networks |
The GSM per-call caller ID override. This page explains what *31#[number] does, how to use it on an iPhone and which carriers it applies to.
I build Secret Codes: IMEI & Carrier, a free iPhone app with 317 checked codes and guides, including this one. If you would rather tap than memorise, get Secret Codes on the App Store.
What does *31#[number] do?
The GSM equivalent of *82. Presents your caller ID for one call even when your line is set to withhold it.
How do I use *31#[number]?
- Open the Phone app and tap Keypad.
- Type *31#[number], replacing [number] with the full phone number, including the area code.
- Press the green Call button.
Which carriers does this apply to?
| Published for | AT&T and T-Mobile |
|---|---|
| Type | GSM networks |
| Good to know | GSM networks only. If it does not take effect, use *82 instead. |

Related caller id codes
- #31#[number]: Hide Your Number (GSM Style)
- *#30#: Check Incoming Caller ID Service
- *#31#: Check Caller ID Setting
- *#76#: Check Connected Line Presentation
- *82[number]: Show Your Number For One Call
- *#77#: Check Connected Line Restriction
See all caller id codes or every category of iPhone codes.
How Secret Codes helps
Secret Codes keeps this and every other entry a search away. Pick your carrier once and each entry says whether it is published for your line. You can save favourites, add a private note, and record whether a code worked on your line. This entry is part of Secret Codes Pro.
Frequently asked questions
What does *31#[number] do on iPhone?
The GSM per-call caller ID override. The GSM equivalent of *82. Presents your caller ID for one call even when your line is set to withhold it.
What are the steps for *31#[number]?
1. Open the Phone app and tap Keypad. 2. Type *31#[number], replacing [number] with the full phone number, including the area code. 3. Press the green Call button.
Where do I use *31#[number]?
On the keypad of the Phone app.
How do I add the number to *31#[number]?
Replace [number] with the full phone number, including the area code, then press Call.
Is *31#[number] a hidden or secret code?
No. It is a standard GSM code, handled by the network rather than by a hidden menu on the iPhone.
Which carriers does *31#[number] work on?
It is published for AT&T and T-Mobile. GSM networks only. If it does not take effect, use *82 instead.
Does *31#[number] work on Android phones too?
GSM codes are a network standard, so they generally behave the same on any phone on a network that supports them.
Will *31#[number] work outside the US?
It depends on the network you are on. GSM codes are a standard, but each network decides which it supports.
What if *31#[number] does not work on my iPhone?
Check that it applies to your carrier first, because carriers decide which services they offer and can change them. If it should apply to your line, contact your carrier.
What is related to *31#[number]?
#31#[number]: Hide Your Number (GSM Style). The GSM per-call caller ID block.
What else is in this category?
*#30#: Check Incoming Caller ID Service. See whether you are able to receive caller ID.
Can I find *31#[number] in an app?
Yes. Secret Codes, a free iPhone app, includes it with its steps and carrier details, as part of Secret Codes Pro.