US ZIP Validator
Validate the format of a US ZIP code, in 5-digit or ZIP+4 form (12345-6789). Great for forms, e-commerce and sign-ups in the United States.
US ZIP code: Zone Improvement Plan, five digits plus four
ZIP stands for Zone Improvement Plan, introduced by the US Postal Service on 1 July 1963. The basic code is 5 digits; the extended ZIP+4 form (NNNNN-NNNN), added in 1983, pins delivery down to a city block, a single building or a PO box group. The validator on this page accepts both 90210 and 90210-1234, checking the structural format — five digits, optional hyphen, four digits.
There is no check digit in the printed code (the old POSTNET barcode carried one, but the digits themselves don't). The five digits cascade from a broad region to a specific post office, and the +4 adds the fine-grained delivery segment.
Reading the five digits
- Digit 1: group of states (e.g.
0New England/NJ,1NY/PA,9CA/Pacific). - Digits 1–3: the Sectional Center Facility (SCF) — a regional sorting hub.
- Digits 4–5: the specific post office or delivery area.
- +4: a block face, a floor of a building, a cluster of PO boxes, or a single high-volume mailer.
Where it shows up
- Address forms: ZIP lookup auto-fills city + state; the standard US checkout flow.
- Tax & shipping: sales-tax rate, shipping zone and carrier rating all key off the ZIP.
- Geo & demographics: the Census Bureau publishes data by ZCTA (ZIP Code Tabulation Area), an approximation of ZIP coverage.
- Mock data / testing: generating format-valid codes for fixtures and form QA.
Gotchas
- Leading zeros: New England ZIPs start with
0(e.g.02101Boston) — store as a string, never an integer. - ZIP ≠ city/county boundary: ZIPs are delivery routes, not geographic areas; one ZIP can cross county or even state lines, and a ZCTA only approximates it.
- Unique ZIPs: some ZIPs belong to a single entity (e.g.
20500the White House,12345General Electric in Schenectady). - Format-valid ≠ real:
00000passes the regex but isn't assigned; the lowest real ZIP is00501(an IRS facility in Holtsville, NY).
FAQ
What does the +4 add? It narrows delivery from a post office to a specific segment — one side of a street, a single building, or a PO box block — speeding up automated sorting and qualifying mailers for postage discounts.
Is the hyphen required? Only to separate the 5 and the +4; 90210 1234 or 902101234 normalise to the same value. The base 5-digit code is always sufficient for delivery.
Is there a check digit? Not in the human-readable code. Validity is by lookup against USPS data; the legacy POSTNET barcode added a correction digit separately.
Related Tools
US TIN Format Validator
Validate the format of a US TIN, either an SSN (individuals) or EIN (businesses). Check American tax identification numbers in your records.
France Postal Validator
Validate the format of a French postal code (5 digits). Useful for forms, e-commerce and international shipping to customers in France.
UK Postcode Validator
Validate the format of a UK postcode, such as SW1A 1AA. Useful for forms, e-commerce and sign-ups that serve customers in the United Kingdom.
Germany Postal Validator
Validate the format of a German postal code (PLZ, 5 digits). Useful for forms, e-commerce and international shipping to customers in Germany.
Portugal Postal Code Validator
Validate Portuguese postal codes (####-###) and identify region by first two digits (Lisboa, Porto, Coimbra, etc.).
Japan Postal Validator
Validate the format of a Japanese postal code (〒NNN-NNNN). Useful for forms, e-commerce and international shipping to customers in Japan.