Madagascar Phone Number Format
Country code +261 · ISO MG
How to format, dial, and validate Madagascar phone numbers, with live examples.
Country Code
+261
National Prefix
0
International Prefix
00
Mobile Portability
No
Try it now
Pre-filled with a valid fixed line number for Madagascar. Edit it and click "Try It" to see the parsed result.
Number Types & Example Formats
Each Madagascar phone-number type supported by libphonenumber, with a real example formatted three ways.
| Type | Length | National | International | E.164 |
|---|---|---|---|---|
| Fixed Line | 9 digits | 020 21 234 56 | +261 20 21 234 56 | +261202123456 |
| Mobile | 9 digits | 032 12 345 67 | +261 32 12 345 67 | +261321234567 |
| VoIP | 9 digits | 022 12 345 67 | +261 22 12 345 67 | +261221234567 |
How to Dial Madagascar Numbers
From abroad
Dial +261 followed by the national number, dropping any leading 0.
Within Madagascar
Dial 0 before the local number to make a domestic call.
Dialing out of Madagascar
Dial 00 followed by the destination country code and number.
Area Codes
Browse Madagascar area codes with cities, timezones, and example numbers for each.
Validate a Madagascar Number with the API
Send the number to the free libphonenumber API to get the parsed country, type, formatting, and validity.
curl https://libphonenumberapi.com/api/phone-numbers/+261202123456
Frequently Asked Questions
What is the country code for Madagascar?
└ The international country code for Madagascar is +261. Use this prefix when dialing Madagascar numbers from another country.
How long is a Madagascar phone number?
└ Madagascar phone numbers are typically 9 digits, not including the +261 country code.
How do I dial a Madagascar phone number from abroad?
└ From abroad, dial +261 followed by the national number, dropping any leading 0. Within Madagascar, dial 0 before the local number.
How do I validate a Madagascar phone number programmatically?
└ Send a GET request to https://libphonenumberapi.com/api/phone-numbers/<number>. The free libphonenumber API returns the parsed country, format, type, and validity for any number — no API key required.