Area Code 21 – Tripoli
The phone area code for Tripoli is 21 (international format +21821). Browse local exchange codes (NXX) and carrier assignments below.
📍 Geographic Location of Tripoli
Overview of Libya's +218 21 Geographic Code
The +218 21 country-code/area-code combination is the geographic National Destination Code (NDC) for Tripoli, the capital and largest city of Libya. In the ITU-T E.164 international numbering plan, +218 is the country calling code for Libya, and 21 is the NDC that routes calls to the Tripoli metropolitan area and its immediate surroundings. This code is used for fixed-line (PSTN) services, including traditional copper lines and, in many cases, fiber-to-the-home (FTTH) connections provided by Libya's state-owned operator, Libyana, and other licensed providers.
Geographic Coverage and Administrative Jurisdiction
The 21 NDC covers the Tripoli District (Sha'biyah), which includes the city center, the historic medina, and key administrative and commercial districts such as Ben Ashur, Hay Andalus, and the airport area. It also serves adjacent municipalities that form part of the greater Tripoli conurbation, including Tajura and Janzour. As a geographic code, it is tied to the physical location of the subscriber's line, meaning that the number's prefix identifies the region where the line is installed.
Dialing Formats and Caller Instructions
For international callers, the full number must be dialed as +218 21 XXX XXX, where the subscriber number is typically 7 digits long, making the total length after the country code 9 digits (including the NDC). For example, a landline in Tripoli might be +218 21 123 4567. When calling from within Libya, callers must use the national trunk prefix 0 before the NDC, so the number becomes 021 XXX XXX. For local calls within Tripoli, it is often possible to omit the area code and dial just the 7-digit subscriber number, depending on the operator's dialing plan. However, to avoid confusion, it is recommended to always use the full national format.
Overlay and Numbering Considerations
Libya's numbering plan has not implemented overlays for geographic codes; instead, new fixed-line subscribers in Tripoli are assigned numbers under the 21 NDC, and the capacity is managed by the national regulator. Mobile numbers in Libya use separate NDCs (e.g., 91, 92, 94) and are non-geographic. Therefore, a number starting with +218 21 is exclusively a fixed-line number. If you are calling a Tripoli landline from abroad, ensure you replace the international access code (00 or +) with the appropriate code for your country, then dial 218 21 followed by the local number.
Practical Tips for Callers
- International calls: Dial +218 21 followed by the 7-digit subscriber number.
- Calls from other Libyan cities: Dial 021 followed by the subscriber number.
- Local calls within Tripoli: You may dial only the 7-digit subscriber number, but verify with your operator.
- VoIP and mobile calls: Always use the +218 21 format to ensure proper routing.