Prefixyr.com
Kenya ☎️ Landline / Geographic

Area Code 2 – Nairobi

The phone area code for Nairobi is 2 (international format +2542). Browse local exchange codes (NXX) and carrier assignments below.

Current Local Time
03:33:54
UTC • UTC +00:00
Full Dialing Format
+2542
Population 4,397,073
👥
Admin Region Nairobi County
🗺️
Elevation 1684m
🏔️
GPS Coordinates -1.2833, 36.8167
📍

📍 Geographic Location of Nairobi

Geographic Coverage and Administrative Jurisdiction

The +254 2 country-code prefix is the geographic area code assigned to Nairobi, the capital and largest city of the Republic of Kenya. As a National Destination Code (NDC) under the ITU-T E.164 numbering plan, it serves the entire Nairobi County, which includes the central business district and major administrative, commercial, and diplomatic hubs. The code covers key neighborhoods such as Westlands, Kilimani, Upper Hill, and the industrial area, as well as the city's international airport (JKIA) and major government institutions. Nairobi is the seat of the Kenyan government and the headquarters of numerous multinational corporations and NGOs, making this prefix central to the country's economic and political life.

Dialing Formats and Number Structure

Within Kenya, calls to Nairobi numbers are placed using the trunk prefix '0' followed by the area code and the subscriber number. For example, a Nairobi landline number might be formatted as 020 1234567 when dialed locally. Internationally, callers must use the country code and drop the leading zero, resulting in +254 20 1234567. The subscriber number length for geographic numbers in Kenya is seven digits, making the total national significant number (NSN) nine digits when including the area code. It is important to note that Nairobi is one of the few areas in Kenya that historically used a two-digit area code (20), while other regions typically use three-digit codes. This distinction is crucial for proper call routing.

Overlay and Numbering Considerations

As of the latest ITU-T allocations, Nairobi does not have an overlay code; the 020 area code remains exclusive to the geographic region. However, due to the rapid growth of telecommunications services, the Communications Authority of Kenya has implemented number portability, allowing subscribers to retain their Nairobi numbers even if they switch service providers. This means that a number beginning with 020 may be routed to a mobile or VoIP network, but the geographic association remains unchanged for caller identification and billing purposes. For callers, it is essential to always use the full international format when dialing from abroad to avoid misrouting.

Caller Instructions

For local callers within Kenya, dialing a Nairobi number from outside the city requires the trunk prefix '0' plus the area code (e.g., 020 1234567). If you are calling from within Nairobi, you may dial the seven-digit subscriber number directly, though using the full national format is recommended for clarity. International callers should dial +254 20 1234567 (or the appropriate local number) from any phone. Always check with your service provider for any additional charges or restrictions when calling geographic numbers in Kenya.

❓ Frequently Asked Questions

What is the area code for Nairobi, Kenya?
The area code for Nairobi is 20, which is part of the country code +254. When dialing internationally, you use +254 20 followed by the seven-digit subscriber number.
How do I dial a Nairobi number from abroad?
From abroad, dial your country's international access prefix (e.g., 00 or +), then Kenya's country code 254, then the area code 20 (without the leading zero), and finally the seven-digit local number. For example, +254 20 1234567.
Do I need to dial the area code when calling within Nairobi?
Within Nairobi, you can often dial just the seven-digit subscriber number for local calls. However, for clarity and to avoid issues with number portability, it is recommended to use the full national format: 020 1234567.
Are Nairobi numbers portable between different telecom operators?
Yes, Kenya has implemented mobile number portability, and fixed-line number portability is also in place. This means you can keep your Nairobi geographic number even if you switch service providers.
What is the length of a Nairobi landline number?
A Nairobi landline number consists of the area code 20 plus a seven-digit subscriber number, making a total of nine digits when dialed nationally (including the trunk prefix 0). Internationally, it is +254 20 followed by seven digits.