Postal code

Costa Rica postal codes

Costa Rica postal codes have the format ##### (5 digits), for example 1000. zipcodestack has 648 postal codes for Costa Rica in 7 regions.

Format
#####
Example
1000
Codes in our database
648
Local name
Postal code

Costa Rica postal code format

Pattern##### (# digit, @ letter)
Examples1000, 2010, 1001
Regex^(?:\d{4,5}|\d{3}-\d{4})$
Official lookupcorreos.go.cr

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Postal Codes by region

RegionRangeCodes
Provincia de Alajuela20101 – 21504111
Provincia de Cartago30101 – 3080451
Provincia de Guanacaste50101 – 5110459
Provincia de Heredia40101 – 4100547
Provincia de Limón70101 – 7060528
Provincia de Puntarenas60101 – 6110257
Provincia de San José10101 – 12006120

Postal Codes of the largest cities

Costa Rica postal codes: FAQ

What is the postal code format in Costa Rica?

Costa Rica postal codes follow the pattern ##### (# = digit, @ = letter), i.e. 5 digits. Examples: 1000, 2010, 1001.

What regex validates Costa Rica postal codes?

^(?:\d{4,5}|\d{3}-\d{4})$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

How many postal codes are there in Costa Rica?

The zipcodestack database contains 648 postal codes for Costa Rica, each with place name, region and coordinates.

Postal code API

Look up Costa Rica postal codes by API

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=1000&country=cr

{
  "results": {
    "1000": [{
      "postal_code": "1000",
      "country_code": "CR",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free