libphonenumber API

Sri Lanka Phone Number Format

Country code +94 · ISO LK

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

Country Code

+94

National Prefix

0

International Prefix

00

Mobile Portability

No

Try it now

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

Number Types & Example Formats

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

Type Length National International E.164
Fixed Line 9 digits 0112 345 678 +94 112 345 678 +94112345678
Mobile 9 digits 071 234 5678 +94 71 234 5678 +94712345678
UAN 9 digits 0197 312 345 +94 197 312 345 +94197312345

How to Dial Sri Lanka Numbers

From abroad

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

Within Sri Lanka

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

Dialing out of Sri Lanka

Dial 00 followed by the destination country code and number.

Area Codes

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

View Sri Lanka area codes →

Validate a Sri Lanka 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/+94112345678

Frequently Asked Questions

What is the country code for Sri Lanka?

The international country code for Sri Lanka is +94. Use this prefix when dialing Sri Lanka numbers from another country.

How long is a Sri Lanka phone number?

Sri Lanka phone numbers are typically 9 digits, not including the +94 country code.

How do I dial a Sri Lanka phone number from abroad?

From abroad, dial +94 followed by the national number, dropping any leading 0. Within Sri Lanka, dial 0 before the local number.

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