libphonenumber API

Somalia Phone Number Format

Country code +252 · ISO SO

How to format, dial, and validate Somalia phone numbers, with live examples.

Country Code

+252

National Prefix

0

International Prefix

00

Mobile Portability

No

Try it now

Pre-filled with a valid fixed line number for Somalia. Edit it and click "Try It" to see the parsed result.

Number Types & Example Formats

Each Somalia phone-number type supported by libphonenumber, with a real example formatted three ways.

Type Length National International E.164
Fixed Line 6–7 digits 4 012345 +252 4 012345 +2524012345
Mobile 7–9 digits 7 1123456 +252 7 1123456 +25271123456

How to Dial Somalia Numbers

From abroad

Dial +252 followed by the national number, dropping any leading 0.

Within Somalia

Dial 0 before the local number to make a domestic call.

Dialing out of Somalia

Dial 00 followed by the destination country code and number.

Area Codes

Browse Somalia area codes with cities, timezones, and example numbers for each.

View Somalia area codes →

Validate a Somalia Number with the API

Send the number to the free libphonenumber API to get the parsed country, type, formatting, and validity.

Request
curl https://libphonenumberapi.com/api/phone-numbers/+2524012345

Frequently Asked Questions

What is the country code for Somalia?

The international country code for Somalia is +252. Use this prefix when dialing Somalia numbers from another country.

How long is a Somalia phone number?

Somalia phone numbers are typically 6–7 digits, not including the +252 country code.

How do I dial a Somalia phone number from abroad?

From abroad, dial +252 followed by the national number, dropping any leading 0. Within Somalia, dial 0 before the local number.

How do I validate a Somalia 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.