libphonenumber API

Libya Phone Number Format

Country code +218 · ISO LY

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

Country Code

+218

National Prefix

0

International Prefix

00

Mobile Portability

No

Try it now

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

Number Types & Example Formats

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

Type Length National International E.164
Fixed Line 9 digits 021-2345678 +218 21-2345678 +218212345678
Mobile 9 digits 091-2345678 +218 91-2345678 +218912345678

How to Dial Libya Numbers

From abroad

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

Within Libya

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

Dialing out of Libya

Dial 00 followed by the destination country code and number.

Area Codes

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

View Libya area codes →

Validate a Libya 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/+218212345678

Frequently Asked Questions

What is the country code for Libya?

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

How long is a Libya phone number?

Libya phone numbers are typically 9 digits, not including the +218 country code.

How do I dial a Libya phone number from abroad?

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

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