libphonenumber API

Tanzania Phone Number Format

Country code +255 · ISO TZ

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

Country Code

+255

National Prefix

0

International Prefix

Mobile Portability

No

Try it now

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

Number Types & Example Formats

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

Type Length National International E.164
Fixed Line 9 digits 022 234 5678 +255 22 234 5678 +255222345678
Mobile 9 digits 0621 234 567 +255 621 234 567 +255621234567
Premium Rate 9 digits 0900 12 3456 +255 900 12 3456 +255900123456
Shared Cost 9 digits 0840 12 3456 +255 840 12 3456 +255840123456
Toll Free 9 digits 0800 12 3456 +255 800 12 3456 +255800123456
VoIP 9 digits 041 234 5678 +255 41 234 5678 +255412345678

How to Dial Tanzania Numbers

From abroad

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

Within Tanzania

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

Area Codes

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

View Tanzania area codes →

Validate a Tanzania 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/+255222345678

Frequently Asked Questions

What is the country code for Tanzania?

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

How long is a Tanzania phone number?

Tanzania phone numbers are typically 9 digits, not including the +255 country code.

How do I dial a Tanzania phone number from abroad?

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

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