Skip to content

+255

Tanzania phone numbers

0621 234 567

International +255 621 234 567, E.164 +255621234567

The numbering plan of Tanzania: 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
+255
Exit code
—
Trunk prefix
0
Mobile digits
9
Fixed-line digits
9
Number portability
not listed
Carriers on record
5

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

Mobile numbers start with:0607
Mobile prefix blocks by operator
Airtel
5
Vodacom
5
Yas
5
Viettel
3
Tanzania Telecom
1

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 Tanzania.

+255
country code
621
network code
234567
subscriber number
CountryTanzania numbering plan
Line typeMobile
Carrier the block was allocated toViettel
E.164+255621234567
International+255 621 234 567
National0621 234 567
RFC 3966tel:+255-621-234-567

Source: National numbering plan: Tanzania (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 +255, no trunk prefix 0); nothing leaves your browser.

Line types to accept
^(?:(?:6[0-35-9]|7\d)\d{7}|2[2-8]\d{7})$
NumberNational digitsMatches
0621 234 567621234567Mobile
022 234 5678222345678Fixed line
0800 12 3456800123456not in the ticked types
041 234 5678412345678not in the ticked types

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. 19 blocks held by 5 operators are on record.

Type the first digits of a number in national form.

In full

Cheat sheet

Country code+255
International exit code (dialling out)— (the plan also allows 00[056])
Trunk prefix (national dialling)0
Mobile number length (national digits)9
Fixed-line number length (national digits)9
E.164 example+255621234567
RFC 3966 (tel: URI)tel:+255-621-234-567
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 +255. The patterns follow the national numbering plan and are anchored here.

Line typeNational digitsExample, nationalExample, E.164
Mobile90621 234 567+255621234567
Fixed line9022 234 5678+255222345678
Toll-free90800 12 3456+255800123456
VoIP9041 234 5678+255412345678
Shared cost90840 12 3456+255840123456
Premium-rate90900 12 3456+255900123456

Mobile, 9 digits

^(?:(?:6[0-35-9]|7\d)\d{7})$

Fixed line, 9 digits

^(?:2[2-8]\d{7})$

Toll-free, 9 digits

^(?:80[08]\d{6})$

VoIP, 9 digits

^(?:41\d{7})$

Shared cost, 9 digits

^(?:8(?:40|6[01])\d{6})$

Premium-rate, 9 digits

^(?:90\d{7})$

Carrier prefix blocks

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

OperatorLine typePrefix blocksRanges
AirtelMobile5060, 066, 068–069, 078
VodacomMobile5072, 074–076, 079
YasMobile5065, 067, 070–071, 077
ViettelMobile3061–063
Tanzania TelecomMobile1073

Questions developers ask

How many digits does a phone number in Tanzania have?
Mobile numbers have 9 national digits. Fixed line numbers have 9 national digits. That is the national number, without the country code +255 and without the trunk prefix 0.
What is the country code for Tanzania?
+255. From abroad, dial your own exit code, then 255, then the national number without its trunk prefix 0.
Which prefixes are mobile numbers in Tanzania?
Mobile numbers start with 06 or 07 in national form; the mobile regular expression on this page gives the exact ranges (example: 0621 234 567). The carrier table shows which prefix blocks were allocated to which operator.
Can a mobile number in Tanzania be ported to another carrier?
Not on record. The plan data this page is built from does not list mobile number portability for Tanzania, 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.