Real codes, random picks
Each ZIP code is drawn from the 40,977 five-digit codes that the GeoNames postal code list holds for the 50 states and DC, spread over 29,540 places. With “Any state” the draw is weighted by how many codes a state has, so Texas and California turn up more often than Delaware or Rhode Island, much as they do in real customer data. Each code keeps its place and county, which you can copy as City, ST 12345 or download as CSV and JSON columns.
That makes the output useful where a made-up five-digit number is not: shipping-zone and tax-rate lookups, store locators, delivery-area checks and any form that verifies the ZIP code against the city.
First digit: the national area
The first digit of a ZIP code places it in one of ten national areas, running roughly from the Northeast (0) to the West Coast (9). These are the states in each area according to the codes the generator uses:
| Digit | States | Also |
|---|---|---|
| 0 | CT, MA, ME, NH, NJ, NY, RI, VT | Puerto Rico, US Virgin Islands, military AE |
| 1 | DE, NY, PA | — |
| 2 | DC, MD, NC, SC, VA, WV | — |
| 3 | AL, FL, GA, MS, TN | military AA |
| 4 | IN, KY, MI, OH | — |
| 5 | DC, IA, MN, MT, ND, SD, WI | — |
| 6 | IL, KS, MO, NE | — |
| 7 | AR, LA, MO, OK, TX | — |
| 8 | AZ, CO, ID, NM, NV, TX, UT, WY | — |
| 9 | AK, CA, HI, OR, WA | Guam, American Samoa, military AP |
Some states appear under two digits: New York’s Holtsville (005) and Fishers Island (063) sit in the 0 area, while the rest of New York is 1.
ZIP code prefixes by state
Three-digit prefixes in use in each state, with its number of ZIP codes and the place with the most codes. A state-level check such as “Texas ZIP codes are 75000–79999” misses outliers like Texas’s 733 and 885.
| State | Prefixes | ZIP codes | Most codes |
|---|---|---|---|
| Alabama AL | 350–352, 354–369 | 811 | Birmingham |
| Alaska AK | 995–999 | 273 | Anchorage |
| Arizona AZ | 850–853, 855–857, 859–860, 863–865 | 530 | Phoenix |
| Arkansas AR | 716–729 | 706 | Little Rock |
| California CA | 900–908, 910–928, 930–961 | 2,593 | Sacramento |
| Colorado CO | 800–816 | 645 | Denver |
| Connecticut CT | 060–069 | 429 | Hartford |
| Delaware DE | 197–199 | 96 | Wilmington |
| District of Columbia DC | 200, 202–205, 569 | 277 | Washington |
| Florida FL | 320–339, 341–342, 344, 346–347, 349 | 1,473 | Miami |
| Georgia GA | 300–319, 398–399 | 952 | Atlanta |
| Hawaii HI | 967–968 | 137 | Honolulu |
| Idaho ID | 832–838 | 320 | Boise |
| Illinois IL | 600–620, 622–629 | 1,575 | Chicago |
| Indiana IN | 460–479 | 968 | Indianapolis |
| Iowa IA | 500–516, 520–528 | 1,055 | Des Moines |
| Kansas KS | 660–662, 664–679 | 748 | Wichita |
| Kentucky KY | 400–418, 420–427 | 946 | Louisville |
| Louisiana LA | 700–701, 703–708, 710–714 | 719 | New Orleans |
| Maine ME | 039–049 | 485 | Portland |
| Maryland MD | 205–212, 214–219 | 605 | Baltimore |
| Massachusetts MA | 010–027, 055 | 685 | Boston |
| Michigan MI | 480–499 | 1,159 | Detroit |
| Minnesota MN | 550–551, 553–567 | 992 | Minneapolis |
| Mississippi MS | 386–397 | 531 | Jackson |
| Missouri MO | 630–631, 633–641, 644–658, 726 | 1,157 | Kansas City |
| Montana MT | 590–599 | 404 | Billings |
| Nebraska NE | 680–681, 683–693 | 620 | Omaha |
| Nevada NV | 889–891, 893–895, 897–898 | 254 | Las Vegas |
| New Hampshire NH | 030–038 | 281 | Manchester |
| New Jersey NJ | 070–089 | 723 | Trenton |
| New Mexico NM | 870–871, 873–884 | 427 | Albuquerque |
| New York NY | 005, 063, 100–149 | 2,154 | New York |
| North Carolina NC | 270–289 | 1,081 | Charlotte |
| North Dakota ND | 580–588 | 407 | Fargo |
| Ohio OH | 430–459 | 1,416 | Cincinnati |
| Oklahoma OK | 730–731, 734–741, 743–749 | 765 | Oklahoma City |
| Oregon OR | 970–979 | 481 | Portland |
| Pennsylvania PA | 150–196 | 2,176 | Philadelphia |
| Rhode Island RI | 028–029 | 90 | Providence |
| South Carolina SC | 290–299 | 534 | Columbia |
| South Dakota SD | 570–577 | 385 | Sioux Falls |
| Tennessee TN | 370–385 | 785 | Memphis |
| Texas TX | 733, 739, 750–770, 772–799, 885 | 2,600 | Houston |
| Utah UT | 840–847 | 347 | Salt Lake City |
| Vermont VT | 050–054, 056–059 | 308 | Montpelier |
| Virginia VA | 201, 205, 220–246 | 1,214 | Roanoke |
| Washington WA | 980–986, 988–994 | 716 | Seattle |
| West Virginia WV | 247–268 | 851 | Charleston |
| Wisconsin WI | 530–532, 534–535, 537–549 | 896 | Milwaukee |
| Wyoming WY | 820–831, 834 | 195 | Cheyenne |
ZIP, ZIP+4 and what a checker can tell
A ZIP+4 adds a hyphen and four digits that narrow the code to a block face, a building or a large mail recipient. Those segments are not published as open data, so the generator’s +4 part is random: right format, not a real segment. Use it to test fields that accept both 12345 and 12345-6789, and to check that your code does not cut the extension off or reject the hyphen.
The checker answers two questions: does the prefix belong to a state, and is the exact code in the list? Prefixes outside the states and DC are named too — Puerto Rico (006–009), Guam (969) and military mail (340 AA, 090–098 AE, 962–966 AP), which many forms wrongly accept as state addresses or wrongly reject.
Testing tips for ZIP code fields
- Keep leading zeros.
02134(Boston area) and00501must survive CSV import, spreadsheet export and integer columns. - Don’t hard-code state ranges. Derive the state from a prefix table, or let the user pick it, and accept the outliers above.
- Accept ZIP+4 and strip it only when needed. Users paste
12345-6789,123456789and12345 6789. - One ZIP code, many cities. Some codes cover several places and some places have dozens of codes; a city dropdown filled from the ZIP code should allow more than one answer.
Full address generators by state: AlaskaCaliforniaDelawareFloridaIllinoisNew YorkTexasWashington
ZIP codes, places and counties: GeoNames postal code data, CC BY 4.0, checked October 2026.
Frequently asked questions
Are these real ZIP codes?
Yes. Every five-digit code comes from the GeoNames US postal code list, which follows the ZIP codes the USPS has assigned, including PO Box and unique ZIP codes for large organisations. The place and county are the ones listed for that code. Only the four extra digits of the ZIP+4 format are random, so a ZIP+4 is correct in format but not a real delivery segment.
Why do some ZIP codes start with 0?
ZIP codes in New England, New Jersey and Puerto Rico start with 0, and two New York codes (00501, 00544) are the lowest in the country. Spreadsheets and integer database columns drop the leading zero and turn 02134 into 2134. Store ZIP codes as text and test with a 0-prefixed one.
Can I get ZIP codes for one city?
The state pages linked below have a city picker: choose a state, then a city, and every generated address uses one of that city’s real ZIP codes. Here, pick a state and the ZIP codes come from all of its places.
How do I check whether a ZIP code exists?
Type it into the checker above. It tells you which state the first three digits belong to and whether the full code is in the list. A code that fits a state’s prefix but is not listed is most likely unassigned. For address-level validation you need the USPS address database or a verification service.