+261
Madagascar phone numbers
032 12 345 67
International +261 32 12 345 67, E.164 +261321234567
The numbering plan of Madagascar: formats, lengths, the regular expression for each line type and the prefix blocks allocated to each carrier, as ITU publishes it. A pattern says what a number looks like and where it was allocated; whether it is in service, and who serves it today, is a different question (below).
At a glance
- Country code
- +261
- Exit code
- 00
- Trunk prefix
- 0
- Mobile digits
- 9
- Fixed-line digits
- 9
- Number portability
- not listed
- Carriers on record
- 4
How to dial a number in Madagascar from anywhere: the dialling helper.
| Yas | 3 |
|---|---|
| Airtel | 2 |
| Orange | 2 |
| Blueline | 1 |
prefix blocks allocated, from the published records; a block is a prefix at the plan's allocation length
Check a number
Valid mobile number in Madagascar.
| Country | Madagascar numbering plan |
|---|---|
| Line type | Mobile |
| Carrier the block was allocated to | Orange |
| E.164 | +261321234567 |
| International | +261 32 12 345 67 |
| National | 032 12 345 67 |
| RFC 3966 | tel:+261-32-12-345-67 |
Test a pattern
Tick the line types you accept, copy the combined pattern, and paste numbers to see which range each one falls in. Numbers are reduced to their national digits first (no spaces, no +261, no trunk prefix 0); nothing leaves your browser.
^(?:3[2-9]\d{7}|2072[29]\d{4}|20(?:2\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\d{5})$| Number | National digits | Matches |
|---|---|---|
| 032 12 345 67 | 321234567 | Mobile |
| 020 21 234 56 | 202123456 | Fixed line |
| 022 12 345 67 | 221234567 | not in the ticked types |
Need another country, or the pattern as code in your language? Open the regex builder.
Walk the prefixes
Type the first digits of a number in national form, or tap them: the operators holding blocks under those digits, then the block a full prefix falls in. 8 blocks held by 4 operators are on record.
Type the first digits of a number in national form.
In full
Cheat sheet
| Country code | +261 |
|---|---|
| International exit code (dialling out) | 00 |
| Trunk prefix (national dialling) | 0 |
| Mobile number length (national digits) | 9 |
| Fixed-line number length (national digits) | 9 (7 dialled locally) |
| E.164 example | +261321234567 |
| RFC 3966 (tel: URI) | tel:+261-32-12-345-67 |
| Mobile number portability | Not listed |
Line types and their regular expressions
Match each pattern against the national significant number: digits only, without the trunk prefix 0 and without +261. The patterns follow the national numbering plan and are anchored here.
| Line type | National digits | Example, national | Example, E.164 |
|---|---|---|---|
| Mobile | 9 | 032 12 345 67 | +261321234567 |
| Fixed line | 9 | 020 21 234 56 | +261202123456 |
| VoIP | 9 | 022 12 345 67 | +261221234567 |
Mobile, 9 digits
^(?:3[2-9]\d{7})$Fixed line, 9 digits
^(?:2072[29]\d{4}|20(?:2\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\d{5})$VoIP, 9 digits
^(?:22\d{7})$Carrier prefix blocks
The operator each prefix block was allocated to, in national form, from the published allocation records for +261.
| Operator | Line type | Prefix blocks | Ranges |
|---|---|---|---|
| Yas | Mobile | 3 | 034, 036, 038 |
| Airtel | Mobile | 2 | 033, 035 |
| Orange | Mobile | 2 | 032, 037 |
| Blueline | Mobile | 1 | 039 |
Questions developers ask
- How many digits does a phone number in Madagascar have?
- Mobile numbers have 9 national digits. Fixed line numbers have 9 national digits (7 when dialled locally). That is the national number, without the country code +261 and without the trunk prefix 0.
- What is the country code for Madagascar?
- +261. From abroad, dial your own exit code, then 261, then the national number without its trunk prefix 0. From inside Madagascar, the exit code for international calls is 00.
- Which prefixes are mobile numbers in Madagascar?
- Mobile numbers start with 032, 033, 034, 035, 036, 037, 038 or 039 in national form; the mobile regular expression on this page gives the exact ranges (example: 032 12 345 67). The carrier table shows which prefix blocks were allocated to which operator.
- Can a mobile number in Madagascar be ported to another carrier?
- Not on record. The plan data this page is built from does not list mobile number portability for Madagascar, so the carrier a prefix was allocated to is likely, not certainly, the carrier serving the number. Only a live carrier lookup (an HLR or MNP query) confirms it.