+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.
| 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.
| Country | Tanzania numbering plan |
|---|---|
| Line type | Mobile |
| Carrier the block was allocated to | Viettel |
| E.164 | +255621234567 |
| International | +255 621 234 567 |
| National | 0621 234 567 |
| RFC 3966 | tel:+255-621-234-567 |
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.
^(?:(?:6[0-35-9]|7\d)\d{7}|2[2-8]\d{7})$| Number | National digits | Matches |
|---|---|---|
| 0621 234 567 | 621234567 | Mobile |
| 022 234 5678 | 222345678 | Fixed line |
| 0800 12 3456 | 800123456 | not in the ticked types |
| 041 234 5678 | 412345678 | not 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 portability | Not 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 type | National digits | Example, national | Example, E.164 |
|---|---|---|---|
| Mobile | 9 | 0621 234 567 | +255621234567 |
| Fixed line | 9 | 022 234 5678 | +255222345678 |
| Toll-free | 9 | 0800 12 3456 | +255800123456 |
| VoIP | 9 | 041 234 5678 | +255412345678 |
| Shared cost | 9 | 0840 12 3456 | +255840123456 |
| Premium-rate | 9 | 0900 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})$Carrier prefix blocks
The operator each prefix block was allocated to, in national form, from the published allocation records for +255.
| Operator | Line type | Prefix blocks | Ranges |
|---|---|---|---|
| Airtel | Mobile | 5 | 060, 066, 068–069, 078 |
| Vodacom | Mobile | 5 | 072, 074–076, 079 |
| Yas | Mobile | 5 | 065, 067, 070–071, 077 |
| Viettel | Mobile | 3 | 061–063 |
| Tanzania Telecom | Mobile | 1 | 073 |
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.