Indonesia phone number format

Country code +62, 9 digits after it. Below is the same example written every way you are likely to need it.

Example mobile number

Country calling code+62
National format0812-345-678
International format+62 812 345 678
E.164 (use this in APIs)+62812345678
Digits after country code9
National trunk prefix0

This is a numbering-plan example, not a real subscriber’s line. It is generated from the same data the validator uses, so it always matches what the API accepts.

Check a real Indonesia number

Formatting is the easy half. The validator reports whether the number is actually allocated, its line type, and a risk score — free, no signup.

Open the free phone validator →

From your code

curl "https://www.layercall.com/v1/lookup/phone?phone=%2B62812345678" \
  -H "X-Api-Key: YOUR_KEY"

1,000 lookups a month free, no card. Get an API key.

Questions

What is the country code for Indonesia?

Indonesia's country calling code is +62. In E.164 — the format almost every API, SMS gateway and CRM expects — it is written with no spaces, brackets or dashes, like +62812345678.

How many digits is a Indonesia phone number?

9 digits after the +62 country code. Written nationally it may show a leading 0 trunk prefix, which is dropped in international form.

Does the leading 0 get included when dialling Indonesia from abroad?

No. The 0 is a national trunk prefix used only inside Indonesia. Dialling internationally you drop it and use +62 instead — this is the single most common cause of "invalid number" errors in signup forms.

Is a correctly formatted number the same as a real one?

No, and conflating the two is the usual mistake. Formatting only says a number could exist. It does not say whether the range was ever allocated, whether it is mobile, fixed line or VoIP, or whether it is worth trusting on a signup — those need a lookup against numbering-plan data.

Other countries

All 49 countries →