Part of a Data Solution
- Explore →
Postal Codes Solution
Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.
Premium
You're viewing a free sample
Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.
- Secure checkout via Stripe
- Instant download after payment
- Lifetime access to the latest version
- Creative Commons Attribution 4.0 license
API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.yaml to inspect schema and resources
- 2. Download data resources listed in datapackage.yaml
- 3. Read README.md for full context
Data Files
postal-codes-ca-sample
| Field | Type | Description | Constraints | Title |
|---|---|---|---|---|
| country_code | string | ISO 3166-1 alpha-2 country code — always CA | { "pattern": "^CA$", "required": true } | Country Code |
| postal_code | string | Six-character postal code, formatted 'A1A 1A1' — primary key | { "pattern": "^[A-Z]\\d[A-Z] \\d[A-Z]\\d$", "required": true } | Postal Code |
| place_name | string | Place / locality name for the postal code | Place Name | |
| admin_name1 | string | Province or territory name | Administrative Name 1 | |
| admin_code1 | string | Province or territory two-letter code | Administrative Code 1 | |
| admin_name2 | string | Census Division name (SGC 2021), derived by spatial join | Administrative Name 2 | |
| admin_code2 | string | Four-digit Census Division UID (SGC 2021) | Administrative Code 2 | |
| admin_name3 | string | Census Subdivision name (SGC 2021) — municipality, city, town, township or reserve | Administrative Name 3 | |
| admin_code3 | string | Seven-digit Census Subdivision UID (SGC 2021). Its first four digits are the Census Division UID in admin_code2 | Administrative Code 3 | |
| latitude | number | Latitude, decimal degrees (WGS84) | Latitude | |
| longitude | number | Longitude, decimal degrees (WGS84) | Longitude | |
| accuracy | string | Coordinate accuracy indicator as supplied by the source | Accuracy | |
| alternative_city_name | string | Pipe-separated alternate place names, where known | Alternative City Name |
Download
Download sample CSVAbout
- Last updated
- 12 October 2026
- Total rows
- 100
- Format
- CSV
- File size
- 12 kB
- Sources
- GeoNames postal code export for Canada, CA_full (CC BY 4.0) - postal codes, place names and coordinates
- Statistics Canada, 2021 Census cartographic boundary files (Census Divisions and Census Subdivisions), Open Government Licence - Canada and Statistics Canada Open Licence Agreement - census geography, assigned to each postal code by spatial join. Not endorsed by or affiliated with Statistics Canada or GeoNames.
About this dataset
Postal Codes Dataset for Canada (CA)
This dataset lists Canada's postal codes, one row per postal code, covering every province and territory. Each record carries the place name, the province or territory, the Census Division and the Census Subdivision (municipality, town, township or reserve) with their SGC 2021 codes, and WGS84 coordinates. The SGC codes join directly against other Statistics Canada geography.
Column definitions, row count, size and last-updated date are in datapackage.yaml.
Data Sources
- Postal codes, place names and coordinates: © GeoNames, postal code
export for Canada (
CA_full), CC BY 4.0. - Census Division and Census Subdivision names and SGC 2021 codes: contains information licensed under the Open Government Licence – Canada (Statistics Canada 2021 Census cartographic boundary files). Adapted from Statistics Canada, 2021 Census Boundary Files (cartographic boundary files, Census Divisions and Census Subdivisions), reference date 2021. This does not constitute an endorsement by Statistics Canada of this product. The boundary data is used under the Statistics Canada Open Licence Agreement and the Open Government Licence – Canada, as stated by the service that provides it.
Changes made to the source data: each postal code's Census Division and Census Subdivision are assigned by placing its GeoNames coordinate inside the Statistics Canada 2021 boundaries; a postal code that appears more than once in the source keeps one row, named by the alphabetically first place name (compared without regard to case or accents; ties go to the raw name, then latitude, then longitude), with that row's coordinate and the other names listed as alternative names in the same order; coordinates that are demonstrably wrong are removed.
Not endorsed by, or affiliated with, Statistics Canada or GeoNames.
Known limitations
- Where a postal code's coordinate could not be placed inside a boundary reliably, the Census Division and Subdivision cells are left blank rather than estimated.
- Coordinates are postal-code level from GeoNames, not surveyed locations. A small share of coordinates that were demonstrably wrong have been removed, leaving those cells blank.
Usage
The dataset files are available in CSV format and can be accessed and downloaded using
the links provided in datapackage.yaml.
Read postal_code as text (format A1A 1A1), never as a number.
For other inquiries, contact datahub@datopian.com