US ZIP Code Validator
EverydayValidate US ZIP codes and ZIP+4 extended codes for correct format instantly. Identifies geographic region from the first digit — client-side, nothing stored.
What is a ZIP Code?
The US ZIP Code Validator checks whether a US postal code follows the correct USPS format — either a 5-digit ZIP code (XXXXX) or a 9-digit ZIP+4 code (XXXXX-XXXX). It also identifies the geographic zone from the first digit, providing a quick sanity check that the code is in the right part of the country for the intended address.
US ZIP codes range from 00001 to 99950, with the first digit dividing the country into 10 geographic zones (0 for New England/Puerto Rico through 9 for the Pacific states). The ZIP+4 extension narrows the delivery point to a specific side of a street, a building, a floor, or a P.O. Box group — providing the level of precision needed for USPS automation and bulk mailing discount rates.
What the validator checks:
- 5-digit format: all digits, exactly 5 characters
- ZIP+4 format: 5 digits, a hyphen, 4 more digits (XXXXX-XXXX)
- Geographic zone from first digit (0–9)
What it does not check: Whether the specific ZIP code is currently assigned to a geographic area by USPS. Format validation is sufficient for form-field validation and data quality checks; USPS address API verification is needed to confirm active assignment.
For formatting raw ZIP digit strings (without the hyphen) into the correct XXXXX-XXXX format, use the ZIP Code Formatter. For validating both US ZIPs and Indian PIN codes in a combined tool, use the Pincode / ZIP Validator.
All validation is client-side. No data is transmitted.
How to use this ZIP Code calculator
- Enter the ZIP code in the input field — 5 digits (90210) or ZIP+4 format (90210-4567).
- Check the Valid/Invalid badge — updates instantly.
- Read the details — base ZIP, extension (if any), and geographic zone.
- Cross-reference the zone against the expected state — a mismatch suggests a data error.
- Format raw digit strings into ZIP+4 using the ZIP Code Formatter if needed.
Formula & Methodology
Format rules: - 5-digit ZIP:/^\d{5}$/- ZIP+4:/^\d{5}-\d{4}$/Geographic zone by first digit: | First digit | Geographic region | |---|---| | 0 | New England, New York, New Jersey, Puerto Rico | | 1 | New York, Pennsylvania, Delaware, Maryland | | 2 | Virginia, West Virginia, North/South Carolina, Georgia | | 3 | Florida, Alabama, Mississippi, Tennessee | | 4 | Indiana, Kentucky, Michigan, Ohio | | 5 | Iowa, Minnesota, Montana, North/South Dakota, Wisconsin | | 6 | Illinois, Kansas, Missouri, Nebraska | | 7 | Arkansas, Louisiana, Oklahoma, Texas | | 8 | Arizona, Colorado, Idaho, Nevada, New Mexico, Utah, Wyoming | | 9 | Alaska, California, Hawaii, Oregon, Washington, Pacific territories | Valid and invalid examples: | Input | Valid? | Note | |---|---|---| |90210| ✓ | Beverly Hills, CA | |10001| ✓ | New York, NY (Empire State Building) | |90210-4567| ✓ | ZIP+4 format | |06010| ✓ | Bristol, CT (leading zero) | |9021| ✗ | Only 4 digits | |902100| ✗ | 6 digits | |9021A| ✗ | Non-digit character | |90210-456| ✗ | ZIP+4 extension only 3 digits |
Frequently Asked Questions