Switzerland postal code validator

How the postal code format works

Format
4 digits
Example
8001

Things to watch for

  • Format-only check — does not confirm the postal code actually exists
  • Always exactly 4 digits with no separators
Regex for postal code
^[0-9]{4}$

A Swiss postal code — Postleitzahl in German, Numéro Postal d’Acheminement in French, Codice di Avviamento Postale in Italian — is the 4-digit code Die Post uses to route mail nationwide, written with no separator, for example 8001 for central Zürich. The numbering was assigned in a rough geographic sweep across the country, so codes run roughly lower in the west and climb toward the east and south. Anyone validating a Swiss shipping address or a checkout form needs the code to at least be the right length and shape before it’s trusted.

Because the code is a plain 4-digit run with no hyphen, space, or letter to anchor against, a dropped or duplicated digit is easy to miss visually while still producing something that looks entirely plausible. Catching that at entry is cheaper than a parcel misrouted across the country.

How this validator works

This tool checks that the input is exactly 4 digits with no letters, spaces, or hyphens, entirely in your browser, with nothing sent to a server.

What a pass doesn’t tell you

A Swiss postal code carries no check digit, so a correctly shaped 4-digit string is the most a client-side tool can confirm — not that Die Post has assigned it to a real town or district. Confirming that requires Die Post’s own postal code lookup.

Scope: this page and tool cover format validation only — not address lookup, canton or district matching, or confirming a code is currently in use.

postal code FAQ

Why is the Swiss postal code sometimes called PLZ, NPA, or CAP?

Those are the same 4-digit code named in Switzerland's three main national languages: Postleitzahl in German, Numéro Postal d'Acheminement in French, and Codice di Avviamento Postale in Italian. Die Post assigns one nationwide 4-digit system regardless of which language an address is written in.

Does the number of a Swiss postal code mean anything about location?

Roughly, yes. Codes were assigned in a broad geographic sweep across the country, so lower numbers cluster toward the west (the Lake Geneva region) and higher numbers cluster toward the east and south. It's a coarse directional hint rather than a precise location marker.

Does a correctly formatted code mean it actually exists?

No. This tool only confirms the string is exactly 4 digits — it doesn't check it against Die Post's actual assignment list. Confirming a code is real, and seeing which town it covers, requires Die Post's own postal code lookup.

← More postal code validators