Skip to content

+506

Costa Rica phone numbers

8312 3456

International +506 8312 3456, E.164 +50683123456

The numbering plan of Costa Rica: formats, lengths, the regular expression for each line type and the prefix blocks allocated to each carrier, as ITU publishes it. A pattern says what a number looks like and where it was allocated; whether it is in service, and who serves it today, is a different question (below).

At a glance

Country code
+506
Exit code
00
Trunk prefix
none
Mobile digits
8
Fixed-line digits
8
Number portability
not listed
Carriers on record
3

How to dial a number in Costa Rica from anywhere: the dialling helper.

Mobile numbers start with:35678
Mobile prefix blocks by operator
Claro
27
Kolbi ICE
9
Movistar
1

prefix blocks allocated, from the published records; a block is a prefix at the plan's allocation length

Check a number

Valid mobile number in Costa Rica.

+506
country code
8312
network code
3456
subscriber number
CountryCosta Rica numbering plan
Line typeMobile
Carrier the block was allocated toKolbi ICE
E.164+50683123456
International+506 8312 3456
National8312 3456
RFC 3966tel:+506-8312-3456

Source: National numbering plan: Costa Rica (ITU)

Test a pattern

Tick the line types you accept, copy the combined pattern, and paste numbers to see which range each one falls in. Numbers are reduced to their national digits first (no spaces, no +506, no trunk prefix); nothing leaves your browser.

Line types to accept
^(?:(?:3005\d|6500[01])\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\d{6}|210[7-9]\d{4}|2(?:[024-7]\d|1[1-9])\d{5})$
NumberNational digitsMatches
8312 345683123456Mobile
2212 345622123456Fixed line
800-123-45678001234567not in the ticked types
4000 123440001234not in the ticked types

Need another country, or the pattern as code in your language? Open the regex builder.

Walk the prefixes

Type the first digits of a number in national form, or tap them: the operators holding blocks under those digits, then the block a full prefix falls in. 37 blocks held by 3 operators are on record.

Type the first digits of a number in national form.

In full

Cheat sheet

Country code+506
International exit code (dialling out)00
Trunk prefix (national dialling)none
Mobile number length (national digits)8
Fixed-line number length (national digits)8
E.164 example+50683123456
RFC 3966 (tel: URI)tel:+506-8312-3456
Mobile number portabilityNot listed

Line types and their regular expressions

Match each pattern against the national significant number: digits only, without the trunk prefix and without +506. The patterns follow the national numbering plan and are anchored here.

Line typeNational digitsExample, nationalExample, E.164
Mobile88312 3456+50683123456
Fixed line82212 3456+50622123456
Toll-free10800-123-4567+5068001234567
VoIP84000 1234+50640001234
Premium-rate10900-123-4567+5069001234567

Mobile, 8 digits

^(?:(?:3005\d|6500[01])\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\d{6})$

Fixed line, 8 digits

^(?:210[7-9]\d{4}|2(?:[024-7]\d|1[1-9])\d{5})$

Toll-free, 10 digits

^(?:800\d{7})$

VoIP, 8 digits

^(?:(?:210[0-6]|4\d{3}|5100)\d{4})$

Premium-rate, 10 digits

^(?:90[059]\d{7})$

Carrier prefix blocks

The operator each prefix block was allocated to, in national form, from the published allocation records for +506.

OperatorLine typePrefix blocksRanges
ClaroMobile2771–72, 701–709, 7000, 7002–7009, 7300–7301, 70010–70014
Kolbi ICEMobile950, 57, 83–89
MovistarMobile16

Questions developers ask

How many digits does a phone number in Costa Rica have?
Mobile numbers have 8 national digits. Fixed line numbers have 8 national digits. That is the national number, without the country code +506.
What is the country code for Costa Rica?
+506. From abroad, dial your own exit code, then 506, then the national number. From inside Costa Rica, the exit code for international calls is 00.
Which prefixes are mobile numbers in Costa Rica?
Mobile numbers start with 3, 5, 6, 7 or 8 in national form; the mobile regular expression on this page gives the exact ranges (example: 8312 3456). The carrier table shows which prefix blocks were allocated to which operator.
Can a mobile number in Costa Rica be ported to another carrier?
Not on record. The plan data this page is built from does not list mobile number portability for Costa Rica, so the carrier a prefix was allocated to is likely, not certainly, the carrier serving the number. Only a live carrier lookup (an HLR or MNP query) confirms it.