Skip to content

+252

Somalia phone numbers

7 1123456

International +252 7 1123456, E.164 +25271123456

The numbering plan of Somalia: formats, lengths, the regular expression for each line type and the prefix blocks allocated to each carrier, as ITU publishes it. A pattern says what a number looks like and where it was allocated; whether it is in service, and who serves it today, is a different question (below).

At a glance

Country code
+252
Exit code
00
Trunk prefix
0
Mobile digits
7 to 9
Fixed-line digits
6 or 7
Number portability
not listed
Carriers on record
10

How to dial a number in Somalia from anywhere: the dialling helper.

Line types in the plan:MobileFixed line
Mobile numbers start with:12346789
Mobile prefix blocks by operator
Somtel
5
Golis Telecom
4
Hormuud
3
Nationlink
3
Somali Networks
3
4 other operators
6

prefix blocks allocated, from the published records; a block is a prefix at the plan's allocation length

Check a number

Valid mobile number in Somalia.

+252
country code
7
network code
1123456
subscriber number
CountrySomalia numbering plan
Line typeMobile
Carrier the block was allocated toAmtel
E.164+25271123456
International+252 7 1123456
National7 1123456
RFC 3966tel:+252-7-1123456

Source: National numbering plan: Somalia (ITU)

Test a pattern

Tick the line types you accept, copy the combined pattern, and paste numbers to see which range each one falls in. Numbers are reduced to their national digits first (no spaces, no +252, no trunk prefix 0); nothing leaves your browser.

Line types to accept
^(?:(?:(?:15|(?:3[59]|4[89]|6\d|7[0-35-9]|8[08])\d|9(?:0\d|[2-9]))\d|2(?:4\d|8))\d{5}|(?:[67]\d\d|904)\d{5}|(?:1\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\d{5}|(?:[134]\d|8[125])\d{4})$
NumberNational digitsMatches
7 112345671123456Mobile
4 0123454012345Fixed line

Need another country, or the pattern as code in your language? Open the regex builder.

Walk the prefixes

Type the first digits of a number in national form, or tap them: the operators holding blocks under those digits, then the block a full prefix falls in. 29 blocks held by 10 operators are on record.

Type the first digits of a number in national form.

In full

Cheat sheet

Country code+252
International exit code (dialling out)00
Trunk prefix (national dialling)0
Mobile number length (national digits)7 to 9
Fixed-line number length (national digits)6 or 7
E.164 example+25271123456
RFC 3966 (tel: URI)tel:+252-7-1123456
Mobile number portabilityNot listed

Line types and their regular expressions

Match each pattern against the national significant number: digits only, without the trunk prefix 0 and without +252. The patterns follow the national numbering plan and are anchored here.

Line typeNational digitsExample, nationalExample, E.164
Mobile7 to 97 1123456+25271123456
Fixed line6 or 74 012345+2524012345

Mobile, 7 to 9 digits

^(?:(?:(?:15|(?:3[59]|4[89]|6\d|7[0-35-9]|8[08])\d|9(?:0\d|[2-9]))\d|2(?:4\d|8))\d{5}|(?:[67]\d\d|904)\d{5})$

Fixed line, 6 or 7 digits

^(?:(?:1\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\d{5}|(?:[134]\d|8[125])\d{4})$

Carrier prefix blocks

The operator each prefix block was allocated to, in national form, from the published allocation records for +252.

OperatorLine typePrefix blocksRanges
SomtelMobile5062, 065–066, 076, 079
AirSomFixed line4035, 039, 048–049
Golis TelecomMobile4060, 070, 072, 090
HormuudMobile3061, 077–078
NationlinkMobile3028, 067, 069
Somali NetworksMobile3064, 080, 088
AmtelMobile2071, 075
TelesomMobile2063, 073
STGMobile109
SomNetMobile1068
TelesomFixed line1024

Questions developers ask

How many digits does a phone number in Somalia have?
Mobile numbers have 7 to 9 national digits. Fixed line numbers have 6 or 7 national digits. That is the national number, without the country code +252 and without the trunk prefix 0.
What is the country code for Somalia?
+252. From abroad, dial your own exit code, then 252, then the national number without its trunk prefix 0. From inside Somalia, the exit code for international calls is 00.
Which prefixes are mobile numbers in Somalia?
Mobile numbers start with 1, 2, 3, 4, 6, 7, 8 or 9 in national form; the mobile regular expression on this page gives the exact ranges (example: 7 1123456). The carrier table shows which prefix blocks were allocated to which operator.
Can a mobile number in Somalia be ported to another carrier?
Not on record. The plan data this page is built from does not list mobile number portability for Somalia, so the carrier a prefix was allocated to is likely, not certainly, the carrier serving the number. Only a live carrier lookup (an HLR or MNP query) confirms it.