Home código postal Costa Rica
Costa Rica código postal validator
How the código postal format works
- Format
- 5 digits
- Example
- 10101
Things to watch for
- Format-only check — does not confirm the código postal actually exists
- Always exactly 5 digits with no separators
- Introduced in March 2007; the first digit is one of Costa Rica's seven provinces, the next two the canton, and the last two the district
^[0-9]{5}$A Costa Rican código postal is the 5-digit code Correos de Costa Rica uses to route mail, introduced nationwide in March 2007 — for example 10101 for San José. Its three-tier structure of province, canton, then district means the code doubles as a compact summary of exactly where in the country an address sits, provided all 5 digits are correct. Anyone validating a Costa Rican shipping address, checkout form, or spreadsheet of customer records needs the código postal to be the right length and shape before it’s trusted.
Because the code is a bare 5-digit run with no separator, a transposed digit pair still produces a plausible-looking province-canton combination, which is exactly the kind of error a shape check catches at the point of entry rather than after a delivery goes wrong.
How this validator works
This tool checks that the input is exactly 5 digits with no letters, spaces, or hyphens, entirely in your browser — nothing is sent to a server, and there’s no signup.
What a pass doesn’t tell you
A código postal carries no check digit, so confirming it’s 5 digits long is the most a client-side tool can do — not that Correos de Costa Rica has assigned it to a real district. Confirming that requires Costa Rica’s own postal code lookup.
Scope: this page and tool cover código postal format validation only — not address lookup, canton matching, or confirming a code is currently in use.
código postal FAQ
When was Costa Rica's postal code system introduced?
In March 2007 — relatively recent compared to many countries. It replaced an older, less consistent addressing approach with a structured 5-digit code, such as 10101 for San José.
What do the 5 digits of a Costa Rican postal code encode?
The first digit identifies one of the country's seven provinces, the next two the canton within that province, and the last two the specific district.
Does a correctly formatted código postal mean it actually exists?
No. This tool only confirms the string is 5 digits — it doesn't check it against Correos de Costa Rica's actual assignment list. Confirming a code is real requires Costa Rica's own postal code lookup.