Six-character postal code, formatted 'A1A 1A1' — primary key
pattern ^[A-Z]\d[A-Z] \d[A-Z]\d$ · required
Postal Code
place_name
string
Place name for the postal code: the most common mailing municipality in the address registers, else the GeoNames place name
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): the median of the postal code's addresses in the registers, else GeoNames' point
Latitude
longitude
number
Longitude, decimal degrees (WGS84)
Longitude
accuracy
string
Where the coordinate comes from: 'address' = median of the postal code's address points in the National Address Register or Quebec's address register; 1-6 = GeoNames' accuracy scale (6 = postal code centroid), for codes the registers do not locate
Accuracy
alternative_city_name
string
Pipe-separated other place names for the postal code (other mailing municipalities, then GeoNames names), where known
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, address points and mailing municipality names: Statistics Canada,
National Address Register,
newest release, used under the Statistics Canada Open Licence.
Adapted from Statistics Canada, National Address Register. This does not constitute an endorsement by
Statistics Canada of this product. Statistics Canada releases the register about every six months.
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: for each postal code in the address registers, the coordinate is the
median of its address points (in the National Address Register, only buildings whose mail is delivered
to a street; in Quebec's register, only current addresses), and the place name is its most common
municipality; Quebec's register is used for every code it has. Where a code's addresses are spread over
more than about 5 km and GeoNames has a point for it, GeoNames' point is kept. Each postal code's Census
Division and Census Subdivision are assigned by placing its coordinate inside the Statistics Canada 2021
boundaries. A postal code that appears more than once in GeoNames keeps one row, named by the
alphabetically first place name, with the other names listed as alternative names; coordinates that are
demonstrably wrong are removed.
Not endorsed by, or affiliated with, Statistics Canada, the Gouvernement du Québec or GeoNames.
Known limitations
accuracy is address where the point comes from the address registers, and GeoNames' 1-6 scale
(6 = postal code centroid) where it comes from GeoNames.
Codes that are not on any street address (PO boxes, large-volume receivers, some rural route codes)
come from GeoNames, which updates its Canada data only occasionally, so some of them may be
retired codes.
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. 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.