libphonenumber API

Costa Rica Phone Number Format

Country code +506 · ISO CR

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

Country Code

+506

National Prefix

International Prefix

00

Mobile Portability

No

Try it now

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

Number Types & Example Formats

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

Type Length National International E.164
Fixed Line 8 digits 2212 3456 +506 2212 3456 +50622123456
Mobile 8 digits 8312 3456 +506 8312 3456 +50683123456
Premium Rate 10 digits 900-123-4567 +506 900-123-4567 +5069001234567
Toll Free 10 digits 800-123-4567 +506 800-123-4567 +5068001234567
VoIP 8 digits 4000 1234 +506 4000 1234 +50640001234

How to Dial Costa Rica Numbers

From abroad

Dial +506 followed by the national number.

Dialing out of Costa Rica

Dial 00 followed by the destination country code and number.

Area Codes

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

View Costa Rica area codes →

Validate a Costa Rica 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/+50622123456

Frequently Asked Questions

What is the country code for Costa Rica?

The international country code for Costa Rica is +506. Use this prefix when dialing Costa Rica numbers from another country.

How long is a Costa Rica phone number?

Costa Rica phone numbers are typically 8 digits, not including the +506 country code.

How do I dial a Costa Rica phone number from abroad?

From abroad, dial +506 followed by the national number.

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