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.

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
Listening…