Prefixyr.com
Libya ☎️ Landline / Geographic

Area Code 21 – Tripoli

The phone area code for Tripoli is 21 (international format +21821). Browse local exchange codes (NXX) and carrier assignments below.

Current Local Time
03:33:38
UTC • UTC +00:00
Full Dialing Format
+21821
Population 1,302,947
👥
Admin Region Tripoli
🗺️
Elevation 15m
🏔️
GPS Coordinates 32.8874, 13.1873
📍

📍 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.

❓ Frequently Asked Questions

What area does the +218 21 code cover?
The +218 21 code covers Tripoli, the capital of Libya, and its surrounding metropolitan area, including districts like Ben Ashur and Janzour.
How do I call a Tripoli landline from the United States?
Dial the US international access code 011, then 218 (Libya country code), then 21 (Tripoli area code), followed by the 7-digit local number. For example, 011 218 21 123 4567.
Is +218 21 a mobile or fixed-line prefix?
It is a fixed-line (geographic) prefix. Mobile numbers in Libya use different prefixes such as 91, 92, or 94.
Can I dial a Tripoli number without the area code if I'm in Tripoli?
Yes, for local calls within Tripoli, you may be able to dial just the 7-digit subscriber number, but it is safer to include the area code (021) to ensure the call connects.
What is the correct international format for a Tripoli landline?
The correct format is +218 21 XXX XXXX, where 'XXX XXXX' is the 7-digit subscriber number. Always include the country code and area code when calling from abroad.