Test data · Canada

Random Canadian postal code generator.

Create postal codes in the A1A 1A1 pattern for forms, mock-ups and test data. They follow Canada Post’s letter rules but are random, so a code may not exist as a real delivery area.

Letters D F I O Q U never usedPick a first letterRuns in your browser

Advertisement

Options

The first letter identifies a postal district.
1 to 100.

Result

Press Generate codes.

How Canadian postal codes are built

A Canadian postal code alternates letter and digit: A1A 1A1. The first three characters are the forward sortation area; the first letter marks the province or region, such as V for British Columbia, T for Alberta, M for Toronto and H for Montreal. The last three characters narrow it to a delivery area.

Canada Post does not use the letters D, F, I, O, Q or U, to avoid confusion with digits and other letters, and W and Z are not used as the first letter. This generator draws only from the allowed letters.

First letter by area

Canada Post’s postal code page, read 17 November 2026, lists these first letters and the areas they cover.

First letterArea
ANewfoundland and Labrador
BNova Scotia
CPrince Edward Island
ENew Brunswick
GEastern Quebec
HMetropolitan Montreal
JWestern Quebec
KEastern Ontario
LCentral Ontario
MMetropolitan Toronto
NSouthwestern Ontario
PNorthern Ontario
RManitoba
SSaskatchewan
TAlberta
VBritish Columbia
XNorthwest Territories and Nunavut
YYukon

What it is. The first letter of a code names a large geographic area; it does not name a single province for Quebec and Ontario, which have several letters each. Why it matters. If a form checks that the code matches the province, pick a first letter from the right row so your test data passes.

How many codes can this generator make?

The generator draws the first letter from the 18 above, the three letters from the 20 allowed (A to Z without D, F, I, O, Q, U) and the three digits from 0 to 9. That is 18 × 10 × 20 × 10 × 20 × 10 = 7,200,000 possible patterns. Fixing the first letter leaves 10 × 20 × 10 × 20 × 10 = 400,000. These count patterns the rules allow, not codes Canada Post has assigned, so most of them will not match a real delivery area. If your test needs a real address, use a code from a real, public address instead. The tool skips any repeat within one batch.

A random code that passes the pattern may still not be assigned. For test data that is usually what you want; for real mail, confirm the address with Canada Post. Source: Canada Post, postal code format and letter rules. Checked October 4, 2026.

Frequently asked questions

Are these real postal codes?

They are random. Some may match real areas and some may not exist.

Why is there no D, F, I, O, Q or U?

Canada Post excludes them because they are easily mistaken for digits or other letters.

Which letter is Toronto?

M is used for Toronto. K, L, N and P also cover other parts of Ontario.

For test data

Random codes are not addresses. Do not use them for shipping or to impersonate a real location.

Advertisement
Advertisement