+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.
| 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.
| Country | Costa Rica numbering plan |
|---|---|
| Line type | Mobile |
| Carrier the block was allocated to | Kolbi ICE |
| E.164 | +50683123456 |
| International | +506 8312 3456 |
| National | 8312 3456 |
| RFC 3966 | tel:+506-8312-3456 |
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.
^(?:(?: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})$| Number | National digits | Matches |
|---|---|---|
| 8312 3456 | 83123456 | Mobile |
| 2212 3456 | 22123456 | Fixed line |
| 800-123-4567 | 8001234567 | not in the ticked types |
| 4000 1234 | 40001234 | not 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 portability | Not 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 type | National digits | Example, national | Example, E.164 |
|---|---|---|---|
| Mobile | 8 | 8312 3456 | +50683123456 |
| Fixed line | 8 | 2212 3456 | +50622123456 |
| Toll-free | 10 | 800-123-4567 | +5068001234567 |
| VoIP | 8 | 4000 1234 | +50640001234 |
| Premium-rate | 10 | 900-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})$Carrier prefix blocks
The operator each prefix block was allocated to, in national form, from the published allocation records for +506.
| Operator | Line type | Prefix blocks | Ranges |
|---|---|---|---|
| Claro | Mobile | 27 | 71–72, 701–709, 7000, 7002–7009, 7300–7301, 70010–70014 |
| Kolbi ICE | Mobile | 9 | 50, 57, 83–89 |
| Movistar | Mobile | 1 | 6 |
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.