Skip to content

Canada (CA)

National-ID patterns loaded when you pass countries=["CA"] (or "all"). Universal patterns always stay.

This is a detector, not a legal opinion

id-extract matches the shape of these numbers. A hit is not proof that the value was issued, is still valid, or that the cited statute applies to your document. Checksums, where present, only test the extra digit.

SIN_CA β€” Social Insurance Number (SIN)

A unique 9-digit number issued by Service Canada. It identifies a person for income tax under Income Tax Act s. 237 and for certain federal programs. A personal SIN does not begin with 0 or 8. Temporary SINs begin with 9.

Package type SIN_CA
Shape this package looks for NNN-NNN-NNN, first digit 1–7 or 9
Checksum Luhn
Example (synthetic) 123-456-782

Official sources

DRIVERS_LICENSE_CA β€” Driver licence (province or territory)

Licences are issued by each province or territory. Formats vary. The second alternative in the pattern is very broad.

Package type DRIVERS_LICENSE_CA
Shape this package looks for Letter + grouped digits, or 5–15 alphanumeric
Checksum none
Example (synthetic) A1234-12345-12345

Official sources

PROGRAM_ACCOUNT_CA β€” CRA program account

The business number plus a program identifier and a four-digit reference. The letters this package accepts are RT, RP, RC, RM, RZ, RR, and RG.

Package type PROGRAM_ACCOUNT_CA
Shape this package looks for 9 digits + program letters + 4 digits
Checksum none
Example (synthetic) 123456789RT0001

Official sources

DIN_CA β€” Drug Identification Number (DIN)

The eight-digit number Health Canada assigns to a drug before it is marketed. The label prints the prefix DIN. The match includes that prefix.

Package type DIN_CA
Shape this package looks for DIN + 8 digits
Checksum none
Example (synthetic) DIN 00000000

Official sources

NPN_CA β€” Natural Product Number (NPN)

The eight-digit licence number on a natural health product. The match includes the prefix NPN.

Package type NPN_CA
Shape this package looks for NPN + 8 digits
Checksum none
Example (synthetic) NPN 00000000

Official sources

DIN_HM_CA β€” Homeopathic medicine number (DIN-HM)

The eight-digit number on a licensed homeopathic medicine. The match includes the prefix DIN-HM.

Package type DIN_HM_CA
Shape this package looks for DIN-HM + 8 digits
Checksum none
Example (synthetic) DIN-HM 00000000

Official sources

UCI_CA β€” Unique Client Identifier (UCI)

The client id IRCC prints on its documents. This package matches the 10-digit form NN-NNNN-NNNN. The 8-digit form is omitted because that hyphenation is too common.

Package type UCI_CA
Shape this package looks for NN-NNNN-NNNN
Checksum none
Example (synthetic) 00-0000-0000

Official sources

The example values are synthetic or well-known public test numbers. Do not treat them as issued identifiers.