Postal code

Canada postal codes

Canada postal codes have the format @#@ #@#, for example H3Z 2Y7. zipcodestack has 812,920 postal codes for Canada in 13 regions.

Format
@#@ #@#
Example
H3Z 2Y7
Codes in our database
812,920
Local name
postal code

Canada postal code format

Pattern@#@ #@# (# digit, @ letter)
ExamplesH3Z 2Y7, V8X 3X4, T0L 1K0, T0H 1A0, K1A 0B1
Regex^(?:[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z] ?\d[ABCEGHJ-NPRSTV-Z]\d)$
Official lookupwww.canadapost-postescanada.ca

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

Postal Code Areas (FSA) by region

RegionRangeCodes
AlbertaT0A – T9X155
British ColumbiaV0A – V9Z193
ManitobaR0A – R9A67
New BrunswickE1A – E9H111
Newfoundland and LabradorA0A – A8A35
Northwest TerritoryX0E – X1A3
Nova ScotiaB0C – B9A77
Nunavut TerritoryX0A – X0C3
OntarioK0A – P9N527
Prince Edward IslandC0A – C1N7
QuebecG0A – J9Z422
SaskatchewanS0A – S9X50
YukonY0A – Y1A3

Postal Code Areas (FSA) of the largest cities

These lists show forward sortation areas (FSA), the first three characters of a Canadian postal code, e.g. K1A. Full postal codes such as K1A 0B1 are in the zipcodestack API.

Neighbouring countries

Canada postal codes: FAQ

What is the postal code format in Canada?

Canada postal codes follow the pattern @#@ #@# (# = digit, @ = letter). Examples: H3Z 2Y7, V8X 3X4, T0L 1K0, T0H 1A0, K1A 0B1.

What regex validates Canada postal codes?

^(?:[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z] ?\d[ABCEGHJ-NPRSTV-Z]\d)$ 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.

What is the postal code of Ottawa?

Ottawa has 22 postal codes, starting with J8T. The right one depends on the street; see the full list for Ottawa.

How many postal codes are there in Canada?

The zipcodestack database contains 812,920 postal codes for Canada, each with place name, region and coordinates.

Postal code API

Look up Canada 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=H3Z+2Y7&country=ca

{
  "results": {
    "H3Z 2Y7": [{
      "postal_code": "H3Z 2Y7",
      "country_code": "CA",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free