Canadian · Test data

Random Canadian postal codes.

Generate random postal codes in the correct Canadian format, for any province or territory. They are test data: the pattern is valid, but a generated code is not guaranteed to exist or be deliverable. Everything runs in your browser.

Source: Canada Post addressing guidelines Pattern A1A 1A1, never D F I O Q U As of 2026-10-01

Advertisement

Options

The first letter follows the Canada Post province table. Nunavut and the Northwest Territories both use X.

Generated codes (test data)

Press Generate.

How the generator builds a postal code

A Canadian postal code is six characters: letter, digit, letter, a space, digit, letter, digit (A1A 1A1). The first three characters are the forward sortation area (FSA) and the last three the local delivery unit. This tool fills each position at random from what Canada Post allows, and nothing more.

Worked example

Choose Alberta and ask for one code. Alberta maps to the first letter T. The generator picks an urban second digit, say 5, then letters and digits to match the pattern: for example T5K 2R8. Every position is legal (T is Alberta, 5 is urban, K and R are in the 20-letter set), so it passes a format check. Whether T5K 2R8 is an actual delivery area is a separate question this tool cannot answer.

Not for real addresses

Random codes can collide with real ones and say nothing about a street or building. Use them for form validation, database seeding, screenshots and QA only. To check one against the province on an address, use the Postal Code to Province Checker; to confirm a real address, use Canada Post’s own lookup.

Sources

Postal code generator FAQ

Are the generated postal codes real?

They follow the real format (A1A 1A1, first letter matching the province, never D F I O Q U), but they are random. A code may by chance match a real delivery area or may not exist at all. Never use them to mail anything or to claim an address exists.

What makes a Canadian postal code format-valid?

Six characters in the pattern letter-digit-letter, space, digit-letter-digit. Canada Post uses 20 letters (A B C E G H J K L M N P R S T V W X Y Z) and never D, F, I, O, Q or U. W and Z are not used as the first letter.

How does the province setting work?

The first letter of a postal code identifies the province or territory: for example V is British Columbia, T is Alberta, and G, H and J are Quebec. The generator picks the first letter from that Canada Post table. X is shared by the Northwest Territories and Nunavut, so choosing either gives an X code.

What does the rural option do?

The second character is 0 for a rural code and 1 to 9 for an urban one, per Canada Post. Rural codes are off by default; turn the option on to include second-character 0.

Is it random enough for testing?

Yes for form and database testing. It uses the browser's cryptographic random source and removes duplicates within a batch. It is not a model of real code density, so it will not reproduce the real distribution of postal codes.

Is anything I generate sent anywhere?

No. Generation runs entirely in your browser; nothing is transmitted, stored or logged.

Cite this page: TNAADO Tools. “Random Canadian Postal Code Generator.” tools.tnaado.ca, https://tools.tnaado.ca/canadian/postal-code-generator/. Accessed 2026-10-01.

Test data only

Generated codes are random and follow the postal code format and first-letter province mapping only. They do not confirm that a code, or its forward sortation area, exists or is deliverable. Runs entirely in your browser: nothing is transmitted, stored, or logged.

Advertisement
Advertisement