Area Code 2 – Nairobi
The phone area code for Nairobi is 2 (international format +2542). Browse local exchange codes (NXX) and carrier assignments below.
📍 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.