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) |
|---|---|
| Examples | H3Z 2Y7, V8X 3X4, T0L 1K0, T0H 1A0, K1A 0B1 |
| Regex | ^(?:[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z] ?\d[ABCEGHJ-NPRSTV-Z]\d)$ |
| Official lookup | www.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
| Region | Range | Codes |
|---|---|---|
| Alberta | T0A β T9X | 155 |
| British Columbia | V0A β V9Z | 193 |
| Manitoba | R0A β R9A | 67 |
| New Brunswick | E1A β E9H | 111 |
| Newfoundland and Labrador | A0A β A8A | 35 |
| Northwest Territory | X0E β X1A | 3 |
| Nova Scotia | B0C β B9A | 77 |
| Nunavut Territory | X0A β X0C | 3 |
| Ontario | K0A β P9N | 527 |
| Prince Edward Island | C0A β C1N | 7 |
| Quebec | G0A β J9Z | 422 |
| Saskatchewan | S0A β S9X | 50 |
| Yukon | Y0A β Y1A | 3 |
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?
@#@ #@# (# = 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?
How many postal codes are there in Canada?
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": β¦
}]
}
}