Addresses around the world

    Postal Code Format vs Address Format

    A postal code format describes one short code; an address format describes the whole layout. Learn how they differ and how they work together.

    Updated 14 October 2026 · 2 min read

    These two phrases sound similar but describe different things. A postal code format describes the pattern of one code: how many characters, which are letters and which are digits, and whether there is a space or hyphen. An address format describes the entire set of lines, their order and which components are required.

    Postal code format

    A postal code format is a pattern, such as a number of digits, or a mix of letters and digits in blocks. Different countries use different patterns. The format helps software check that something looks like a code, but it cannot confirm that the code exists or belongs to a particular street.

    Address format

    An address format specifies the lines: recipient, building and street, locality, city, region, code and country, in the order the country uses. It also determines which of these are required, optional or not used. See how postal addresses are structured.

    How they interact

    The postal code is one component inside the address format. Its position in the address varies: before the town, after the town, or on its own line. Changing the position is a layout decision; changing the characters is a code decision.

    Why the distinction matters

    • Form design: a field-level pattern check is not a replacement for a layout that fits the destination.
    • Validation: a code that passes the pattern may still be wrong for the address.
    • Data storage: store the code as text, not as a number, since leading zeros and letters are common.

    A third, different thing

    UPCS codes are neither postal codes nor address formats. A UPCS code has the shape CC-XXXX-XXXX and marks a 3 m by 3 m cell of the map. It is an extra identifier that can accompany an address, not an official postal code and not a substitute for any national code. See exact-location codes for ambiguous addresses.

    Summary

    The postal code format answers "what does a code look like?" The address format answers "what does the whole address look like?" Treat them as separate decisions.

    Frequently asked questions

    Is a postal code format the same as an address format?

    No. The postal code format describes the pattern of characters in a single code. The address format describes which lines and components an address contains and in what order.

    Can a valid postal code still be on a wrong address?

    Yes. A code can be well-formed and still not match the street or town written with it.