Madagascar Phone Numbers: Format, Area Code & Validation Guide - phone-number-standards -

Frequently Asked Questions

Dial 17 for police, 18 for fire, and 124 for medical emergencies. When calling from a mobile phone, use 117 for police and 118 for fire. Remember to clearly state your location, the nature of the emergency, and any immediate dangers when calling.
Fixed-line numbers follow a 7-digit format with the prefix '20', such as '20 1234567'. Mobile numbers are 8 digits long and start with '32', '33', or '34', like '32 12345678'. International format uses '+261' followed by the local number without the leading '0'.
+261 is the internationally recognized dialing code assigned to Madagascar. This code is required when making calls to Madagascar from other countries. It ensures calls are correctly routed to the Malagasy telephone network.
Use the international format (+261 followed by the number without the leading 0) when making calls from outside Madagascar, storing numbers in databases, and for any application requiring international compatibility. This format is the most portable and universally recognized.
Yes, thanks to Mobile Number Portability (MNP), you can switch providers in Madagascar without changing your phone number. The process typically takes 48 hours, involving a port request, validation, and transfer overseen by ARTEC.
The main mobile operators in Madagascar are Telma, Orange Madagascar, Airtel Madagascar, and Telma Mobile. Other providers include Madamobil, Gulfsat Madagascar (Blueline), Datacom, and Data Telecom Services (DTS, Moov). Each operator has its own specific prefixes for mobile numbers.
Use a regular expression like `^3[2-4,7-9]\d{7}$` to validate mobile numbers. This checks for prefixes 32, 33, 34, and the reserved range 37-39, along with the 7 following digits.
Remove non-numeric characters, strip the international prefix ('00261' or '261'), and remove any leading '0' for local numbers. This ensures consistent format before applying validation rules.
ARTEC (Autorité de Régulation des Technologies de Communication) is the regulatory body for telecommunications in Madagascar. They oversee number allocation, service standards, and technical compliance within the industry. For more information, visit their website at www.artec.mg.
Use an in-memory data store like Redis to cache validation results. Set a suitable TTL (Time To Live) for cached entries, considering MNP (Mobile Number Portability), which can affect number validity over time.
To call France from Madagascar, dial 00 followed by France's country code (33), the area code (without the leading 0), and the local number. For instance, 00 33 1 23456789.
In Madagascar, the prefix '20' designates a fixed-line phone number. Fixed-line numbers following this prefix typically consist of seven digits, totaling nine digits when including the prefix.
Similar to 119 from mobile phones, the number 19 is used to directly contact a police station in Madagascar. This provides a more direct line of communication than the general emergency number 17 or 117 from mobile phones, which connect to the nearest police station.
Loading...