Phone numbers · MG
Madagascar phone number format
Madagascar numbers use the country code +261. A mobile number looks like 032 12 345 67 at home and +261321234567 in international E.164 format.
| Type | Example (national) | International | E.164 | Digits |
|---|---|---|---|---|
| Mobile | 032 12 345 67 | +261 32 12 345 67 | +261321234567 | 9 |
| Landline | 020 21 234 56 | +261 20 21 234 56 | +261202123456 | 9 |
| VoIP | 022 12 345 67 | +261 22 12 345 67 | +261221234567 | 9 |
- Country calling code
- +261
- National (trunk) prefix
- 0
- International call prefix
- 00
- Separate VoIP range
- Yes
- Time zones
- Indian/Antananarivo
Validate in code
Check a Madagascar number.
Send the number as typed plus country: "MG". You get it back in E.164 with its line type, ready to store.
curl https://veqen-app.com/v1/phone/check \
-H "Authorization: Bearer $VEQEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "MG", "phone": "032 12 345 67"}'import os, requests
r = requests.post(
"https://veqen-app.com/v1/phone/check",
headers={"Authorization": f"Bearer {os.environ['VEQEN_API_KEY']}"},
json={"country": "MG", "phone": "032 12 345 67"},
timeout=10,
)
result = r.json()
print(result["risk"]["verdict"], result["risk"]["reasons"])const res = await fetch("https://veqen-app.com/v1/phone/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEQEN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"country": "MG", "phone": "032 12 345 67"}),
});
const result = await res.json();
console.log(result.risk.verdict, result.risk.reasons);Questions
Madagascar numbers
What is the country code for Madagascar?
+261. Dial it after your international access code, or use +261 from a mobile phone.
How do I format a Madagascar phone number in E.164?
Drop the national prefix (0) and add +261. For example 032 12 345 67 becomes +261321234567.
How many digits is a Madagascar mobile number?
9 digits after the country code.
Does Madagascar have VoIP phone numbers?
Yes, it has a dedicated VoIP range, and Veqen flags numbers in it.