---
title: "Madagascar phone number validator"
url: "https://lookvalid.com/tools/phone-number-validator/madagascar.md"
canonical_url: "https://lookvalid.com/tools/phone-number-validator/madagascar"
last_updated: "2026-10-30"
type: "tool"
summary: "Validate Madagascar phone numbers: 9 digits behind +261, 7 worked test numbers and a free validator."
related: ["https://lookvalid.com/country-code/madagascar.md", "https://lookvalid.com/tools/phone-format.md", "https://lookvalid.com/tools/phone-number-validator.md"]
---

# Madagascar phone number validator

> **For AI agents:** the complete index of LookValid pages is [llms.txt](https://lookvalid.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Validate Madagascar phone numbers: 9 digits behind +261, 7 worked test numbers and a free validator.

A number is valid in Madagascar when the digits after +261 match one of 3 number types, with 9 digits in all. A mobile number starts 32 to 39.

## Rules by number type

| Type | Starts with | Digits | Sample |
| --- | --- | --- | --- |
| Mobile | 32 to 39 | 9 | +261 32 12 345 67 |
| Landline | 20 | 9 | +261 20 29 959 18 |
| VoIP | 22 | 9 | +261 22 51 839 34 |

## Test numbers

| Number | Case | Result |
| --- | --- | --- |
| +261 32 12 345 67 | Example number | Passes: Valid mobile number. |
| +261 20 29 959 18 | Landline range | Passes: Valid landline number. |
| +261 22 51 839 34 | VoIP range | Passes: Valid VoIP number. |
| 0321234567 | Written the local way | Passes: Valid mobile number. |
| +261 32123456 | One digit short | Fails: Too short: 8 digits follow the country code, where Madagascar allows 9 digits. |
| +261 3212345673 | Too many digits | Fails: Too long: 10 digits follow the country code, where Madagascar allows 9 digits. |
| +261 12 12 345 67 | Right length, unused start | Fails: 9 digits suits mobile, landline or VoIP numbers, but a number starting 12 is not in any of those ranges. |

## Mistakes to look for

**Keeping the 0 after +261.** The 0 only exists for calls made inside Madagascar. Behind the plus sign and the country code it has to go; a strict system will refuse the number as typed. Example: +261 0321234567. Result: Valid mobile number. The 0 after +261 is only for local dialling and is dropped from the international form. Store it as +261321234567.

**Typing 00 and a plus sign together.** 00 is the dialled form of the plus sign. One of the two is enough, never both. Example: +00261321234567. Result: It starts with +002, but numbers in Madagascar start with +261.

## Questions

**What makes a phone number valid in Madagascar?**

After the country code, its digits must match the pattern of at least one number type in the plan: mobile, landline or VoIP. The count is 9 digits in all, and each type has its own count and its own starting digits, shown in the table above.

**How do I write a mobile number for Madagascar?**

A mobile number is 9 digits long after +261 and starts 32 to 39. Written for international use it reads +261 32 12 345 67; the E.164 form for storing is +261321234567.

**Does the leading 0 count when I validate a number?**

Written the local way, it is removed before the check, so 0321234567 and +261321234567 give the same result. Behind a plus sign the check still accepts it, with a note to store the number without it.

**Does a valid result mean the number is in service?**

No. The check reads the numbering plan only: it never rings the number and cannot tell whether a subscriber holds it today. It rules out numbers that cannot exist.

Data: version 1.13.15 of the libphonenumber-js package, published 8 October 2026, which carries Google's libphonenumber rules. Test numbers are computed from those rules and never dialled. See the [Madagascar country code page](https://lookvalid.com/country-code/madagascar.md), the [phone format tool](https://lookvalid.com/tools/phone-format.md) and the [phone number validator](https://lookvalid.com/tools/phone-number-validator.md).

## Related

- [Madagascar country code +261](https://lookvalid.com/country-code/madagascar.md)
- [Phone Number Format by Country and E.164](https://lookvalid.com/tools/phone-format.md)
- [Free Phone Number Validator: Check This Number](https://lookvalid.com/tools/phone-number-validator.md)
