---
id: "ca_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["CA"]
langs: ["en", "fr"]
aliases: ["ca_postalcode"]
quality: 100
url: "http://registry.apicrafter.io/datatype/ca_postcode"
---

# Canadian postal code (`ca_postcode`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Canadian postal code: six characters in the form A1A 1A1, a letter, a digit and a letter, a space, then a digit, a letter and a digit. The letters D, F, I, O, Q and U are not used, and W and Z do not start a code.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Canada (CA)
- Languages: English (en), French (fr)
- Classification: categorical
- Former IDs: `ca_postalcode`

## Detection

Regular expression (Python `re`):

```
^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z] ?\d[ABCEGHJ-NPRSTV-Z]\d$
```

## Examples

- `K1A 0B1` — Ottawa
- `H0H 0H0` — Santa Claus, used by Canada Post for letters to him
- `M5V3L9` — Toronto, written without the space
- `W1A 1AA` (invalid example) — a UK postcode

## Mappings

- fta: `POSTAL_CODE.POSTAL_CODE_CA`

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `ca_pii_postalcodefield` (field, `pii/ca/ca_pii.yaml`)

## Supported by tools

- `collibra`
- `fta`
- `ibmknowledgecatalog`
- `metacrafter`
- `snowflake`

## Translations

- ru: Почтовый индекс Канады

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_Canada>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/ca_postcode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/geo/ca_postcode.yaml>
