ZIP and postal codes

ZIP and postal codes are short and structured, which tempts forms to reject valid ones over a space, a dash or a capital letter.

Typing a ZIP+4 code with a space instead of a dash. A strict field rejects it. A forgiving field accepts it and tidies it to 20500-0003.

The answer

Accept ZIP and postal codes however they are typed, and don’t require one where people may not have one that works. As strong as the weakest rule behind it: weak.

The other rules

  • Mark the ZIP or postal code field with the postal-code autocomplete token.
  • Where the data is reliable, fill in the city from the ZIP code, and let people change it.
  • Show a number pad only when every code you accept is all digits, as US ZIP codes are.

Accessibility

Open questions

  • OpenNo study of ZIP code entry was found.
  • OpenKeyboard type (rule 5).
Checked November 12, 2026

Sources