Phone number validator

Somalia phone number validator

A number is valid in Somalia when the digits after +252 match one of 2 number types, with 6 to 9 digits in all. A mobile number starts 1, 2, 3, 4, 6, 7, 8 or 9 (some ranges only).

+2526 to 9 digitsLocal prefix 0

Check a number in Somalia

Write the number with +252 or the local way. The check runs in your browser and nothing is sent.

Rules by number type

Digits are counted after the country code. Starts are the first digits the plan allows for the type.

Number types and rules for Somalia
TypeStarts withDigitsSample
Mobile1, 2, 3, 4, 6, 7, 8 or 9 (some ranges only)7 to 9+252 7 1123456
Landline1, 2, 3, 4, 5 or 8 (some ranges only)6 or 7+252 1039116

Test numbers and what the check says

Every result below comes from the same check as the validator above. Use a number to see how it fails.

Test numbers for Somalia
NumberCaseResult
+252 7 1123456Example numberPasses Valid mobile number.
+252 1039116Landline rangePasses Valid landline number.
071123456Written the local wayPasses Valid mobile number.
+252 7112345One digit shortFails 7 digits suits mobile or landline numbers, but these digits after +252 are not in any assigned range for them.
+252 7112345671Too many digitsFails Too long: 10 digits follow the country code, where Somalia allows 6 to 9 digits.
+252 71123Below the shortest lengthFails Too short: 5 digits follow the country code, where Somalia allows 6 to 9 digits.

Test numbers are computed from the rules and never dialled. A passing one proves the pattern, not that someone owns it.

Mistakes to look for

Common mistakes with Somalia numbers
MistakeExampleResult
Keeping the 0 after +252. The 0 only exists for calls made inside Somalia. Behind the plus sign and the country code it has to go; a strict system will refuse the number as typed.+252 071123456Valid mobile number. The 0 after +252 is only for local dialling and is dropped from the international form. Store it as +25271123456.
Typing 00 and a plus sign together. 00 is the dialled form of the plus sign. One of the two is enough, never both.+0025271123456It starts with +002, but numbers in Somalia start with +252.
Giving a mobile number a landline length. Landline numbers allow lengths of 6 or 7, mobile numbers of 7 to 9. A mobile-looking start cut to 6 digits fits neither.+252 7112346 digits suits landline numbers, but a number starting 71 is not in any of those ranges.

Questions about Somalia numbers

What makes a phone number valid in Somalia?
After the country code, its digits must match the pattern of at least one number type in the plan: mobile or landline. The count is 6 to 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 Somalia?
A mobile number is 7 to 9 digits long after +252 and starts 1, 2, 3, 4, 6, 7, 8 or 9 (some ranges only). Written for international use it reads +252 7 1123456; the E.164 form for storing is +25271123456.
Does the leading 0 count when I validate a number?
Written the local way, it is removed before the check, so 071123456 and +25271123456 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.

Validate numbers in bulk

The page checks one number at a time. The phone lookup does the same check for any country from the API, and reports the number type the numbering plan assigns with each result.

The LookValid phone lookup and what one check costs
ProductCreditsDocs
Phone Numbering-Plan Validation1 credit per valid numberAPI docs

Somalia country code and dialling · Phone number formatter · Validate a number from any country

Rules: version 1.13.15 of libphonenumber-js, published 8 October 2026, built on Google's libphonenumber metadata. LookValid is not connected to Google or to any phone company named here.