What is a Canadian postal code?

A Canadian postal code has six characters in the pattern letter-digit-letter, space, digit-letter-digit, for example K1A 0B1. The first three characters identify a forward sortation area, the last three a local delivery unit. It is always written in capitals with a space in the middle.

The format, character by character

The first letter is a province or region code — K for eastern Ontario, V for British Columbia, M for Toronto. The first digit is 0 for a rural area and 1–9 for an urban area. The rest narrow the code down to a street, a building or a single address.

How it differs from a US ZIP code

A US ZIP code is five digits; a Canadian postal code mixes letters and digits and is six characters long. Do not strip the letters or the space when you store it — a checkout form that only accepts digits will reject every Canadian address.

Using it in test data

Use a postal code that matches the city and province in your test address, for example Toronto, ON M5V 2T6 or Vancouver, BC V6B 1A1. Our generator pairs each Canadian city with a matching postal code and area code.

GeneratorAll guidesllms.txt

Frequently asked questions

Do Canadian postal codes have a ZIP+4 equivalent?

No. The six-character code is already precise enough to identify a street or building, so there is no extra four-digit extension.

Is the space in the middle required?

Yes, in the official format. Many forms accept it without the space, but always store it with the space so it matches official records.

Can I use a random postal code in testing?

Use one that matches the city and province in the same test address. A mismatched postal code will fail any validation that checks the two together.

Test data — not a real person. All addresses on this page are test data for software testing only. No address belongs to a real person; no SSN is generated; phone numbers use the 555-0100–555-0199 test range and emails use example.com.