Postal code formats by country

Use this to validate form fields or spot an odd address. Formats can have exceptions; always prefer official postal sources for delivery.

Updated:

Country / regionFormatExample
United StatesNNNNN or NNNNN-NNNN94107 / 10001-0001
CanadaA0A 0A0K1A 0B1
United KingdomA9 9AA / A99 9AA / AA9 9AA …SW1A 1AA
IrelandA65 F4E2 (Eircode)D02 AF30
GermanyNNNNN10115
FranceNNNNN75001
SpainNNNNN28013
ItalyNNNNN00118
NetherlandsNNNN AA1012 AB
BelgiumNNNN1000
SwitzerlandNNNN8001
SwedenNNN NN111 22
NorwayNNNN0150
DenmarkNNNN1050
PolandNN-NNN00-001
PortugalNNNN-NNN1000-001
BrazilNNNNN-NNN01310-100
MexicoNNNNN06600
ArgentinaA9999AAA / NNNNC1000WAM
JapanNNN-NNNN100-0001
South KoreaNNNNN04524
China (mainland)NNNNNN100000
Hong KongNone (district addressing)
TaiwanNNN / NNNNNN100 / 100233
SingaporeNNNNNN018956
IndiaNNNNNN (PIN)110001
AustraliaNNNN2000
New ZealandNNNN6011
UAEOften none / PO Box
Saudi ArabiaNNNNN11564
TurkeyNNNNN34110
RussiaNNNNNN101000
South AfricaNNNN8001

Notes

How to read postal code patterns in this table

Postal codes are country-specific — never assume one global format fits every address field.

Each row shows a typical pattern for that country, not an exhaustive validator. Letters like A and N stand for any letter or digit respectively; spaces and hyphens in the example are part of the format users expect to see. Canada's A0A 0A0 alternates letters and digits, while Germany uses five digits with no separator. When you build a form, pair the pattern with the country selector — the same input box cannot safely accept both a US ZIP+4 and a UK outward code without context.

Common mistakes when validating postal codes

A 5-digit US ZIP and a 6-digit mainland China code both look numeric but follow completely different rules.

Teams often apply one regex globally and reject valid mail. UK postcodes need the space (SW1A 1AA, not SW1A1AA). Netherlands requires a space before the letter suffix (1012 AB). Brazil and Portugal use a hyphen in the middle (01310-100, 1000-001). Leading zeros matter: 00501 is valid in the US and 01000 is valid in Mexico. Do not strip punctuation before validation — capture it in the regex, then normalize only for your internal database if the carrier allows it.

Countries and regions without a national postal code

Hong Kong has no postal codes; mail is sorted by district name and full street address.

Several high-traffic markets in the table deliberately show “None” or em dash. Hong Kong, many UAE addresses, and some island territories rely on district, building name, and PO Box instead of a nationwide code. Ireland added Eircode (e.g. D02 AF30) but older habits still omit it on casual mail. If your checkout requires a postal code everywhere, offer an explicit “not applicable” path or make the field optional when the country is known to lack one — forcing digits creates fake codes that carriers bounce.

Using this table in software and shipping workflows

Validate with a country-specific regex, then verify against the official postal authority before shipping.

Treat this sheet as a pattern cheat sheet for UX hints and first-pass validation, not as a delivery guarantee. Autocomplete APIs from national posts (USPS, Royal Mail, La Poste, Japan Post) remain authoritative for whether a code exists and is in service. Log the country + raw user input + normalized form for support tickets. For bulk CSV imports, normalize Unicode spaces, reject mixed-country rows, and surface rows that match no pattern here for manual review rather than silently dropping mail.

Frequently asked questions

What is the postal code format of Canada?

Canadian postal codes follow A0A 0A0 — alternating letters and digits, e.g. K1A 0B1.

Canadian postal codes follow the pattern A0A 0A0 — alternating letters and digits, e.g. K1A 0B1.
How many digits does a US ZIP code have?

A standard US ZIP code has exactly 5 digits; ZIP+4 adds a hyphen and 4 more.

A standard US ZIP code has 5 digits; the ZIP+4 form adds a hyphen and 4 more digits, e.g. 10001-0001.
Does Hong Kong have postal codes?

Hong Kong does not use postal codes.

No. Hong Kong does not use postal codes; mail is sorted by district and the full address.