Random ZIP code1 of 10
45437
Dayton, Ohio
CountyMontgomery
10 random ZIP codes from all 50 states and DC, no repeats.

Is this ZIP code real?

Type any five digits to see whether they are a ZIP code in the list, and where it is.

Type a ZIP code to check it.Five digits, or ZIP+4 such as 12345-6789.

About the Random ZIP Code Generator

What is a random ZIP code generator?

A random ZIP code generator picks US ZIP codes at random for test data, forms and examples.

ZIP codes are the five-digit postal codes the US Postal Service launched in 1963. This generator draws from 40,977 real ZIP codes in the GeoNames postal code list, each with its city, state and county, so it never makes up a number.

That matters because most five-digit numbers are not ZIP codes. Only about 41% of the 100,000 numbers from 00000 to 99999 are in the list, so a random ZIP code built from five random digits is more often fake than real.

What do the five digits of a ZIP code mean?

A ZIP code's first digit names a broad area, from 0 in the East to 9 in the West.

The next two digits narrow it to a regional area, and the last two point to a specific post office, according to the US Postal Service. The table shows which states each first digit covers in the GeoNames list.

US ZIP codes in the GeoNames list grouped by their first digit
First digitStatesZIP codes
0CT, MA, ME, NH, NJ, RI, VT3,004
1DE, NY, PA4,423
2DC, MD, NC, SC, VA, WV4,556
3AL, FL, GA, MS, TN4,552
4IN, KY, MI, OH4,489
5IA, MN, MT, ND, SD, WI4,145
6IL, KS, MO, NE4,099
7AR, LA, OK, TX4,715
8AZ, CO, ID, NM, NV, TX, UT, WY2,794
9AK, CA, HI, OR, WA4,200

A few ZIP codes cross these lines. El Paso, Texas uses codes that start with 885, Washington, DC has six codes that start with 569, and New York's Holtsville and Fishers Island codes start with 0.

How do you generate a random ZIP code?

Choose a state and how many ZIP codes you need, then press Generate ZIP codes.

  1. Pick a state. Leave Any state selected for ZIP codes from all 50 states and DC.
  2. Set how many. Ask for 1 to 5,000, and with No repeats on, a state with fewer ZIP codes gives you every one it has.
  3. Pick a format. Choose City, ST ZIP lines, ZIP codes only, CSV or JSON.
  4. Generate, then copy or download. The card at the top shows the first ZIP code with its own Copy button.

Example

These settings will be converted to three random California ZIP codes in CSV.

Input: settings
State: California
How many: 3
Format: CSV
Output: one run
zip,city,state,county
93722,Fresno,CA,Fresno
95714,Dutch Flat,CA,Placer
91210,Glendale,CA,Los Angeles

Each run picks its own ZIP codes, but every row is a real California ZIP code with its county.

The ZIP code checker works the other way around. Type 12345 into it and it answers with the place:

Input: ZIP code to check
12345
Output: check result
12345 is a real ZIP code.
Schenectady, New York.
County: Schenectady.

Which ZIP codes are real?

A ZIP code is real only if the US Postal Service has assigned it.

The table checks a few well-known numbers against the GeoNames list. The Postal Service names 00501, a ZIP code of its own for the IRS in Holtsville, New York, as the lowest, and 99950 in Ketchikan, Alaska as the highest.

Well-known ZIP code numbers checked against the GeoNames list
NumberIn the list?Place
00501YesHoltsville, NY
12345YesSchenectady, NY
90210YesBeverly Hills, CA
99950YesKetchikan, AK
00001NoNone
11111NoNone
88888NoNone
99999NoNone

What is the difference between a ZIP code, ZIP+4 and a postal code?

A ZIP code is the US version of a postal code, and ZIP+4 adds four digits to it.

The Postal Service added ZIP+4 in 1983 to sort mail to a group of streets or a single large building. Other countries use their own formats, so a US ZIP code will not fit a Canadian or British address form.

ZIP code, ZIP+4 and two other countries' postal codes compared
CodeFormatExampleUsed for
ZIP code5 digits90210A US delivery area
ZIP+45 digits, a hyphen, 4 digits12345-6789A US group of streets or one large building
Canadian postal codeLetter, digit, letter, space, digit, letter, digitK1A 0B1Canada
UK postcode5 to 7 letters and digits in two partsSW1A 1AAThe United Kingdom

The Random ZIP Code Generator only makes US ZIP codes, so it cannot give you a random postal code for Canada or the UK. With ZIP+4 turned on, the last four digits are random, so they will not match the real ZIP+4 of any address.

How many ZIP codes does each state have?

Texas has the most ZIP codes in the GeoNames list, 2,600, and Rhode Island the fewest, 90.

California is a close second with 2,593. The table counts every state and Washington, DC, 40,977 ZIP codes in all, which is also how many the State menu can draw from.

Number of ZIP codes per state in the GeoNames list dated 2026-09-23
StateCodeZIP codes
AlabamaAL811
AlaskaAK273
ArizonaAZ530
ArkansasAR706
CaliforniaCA2,593
ColoradoCO645
ConnecticutCT429
DelawareDE96
District of ColumbiaDC277
FloridaFL1,473
GeorgiaGA952
HawaiiHI137
IdahoID320
IllinoisIL1,575
IndianaIN968
IowaIA1,055
KansasKS748
KentuckyKY946
LouisianaLA719
MaineME485
MarylandMD605
MassachusettsMA685
MichiganMI1,159
MinnesotaMN992
MississippiMS531
MissouriMO1,157
MontanaMT404
NebraskaNE620
NevadaNV254
New HampshireNH281
New JerseyNJ723
New MexicoNM427
New YorkNY2,154
North CarolinaNC1,081
North DakotaND407
OhioOH1,416
OklahomaOK765
OregonOR481
PennsylvaniaPA2,176
Rhode IslandRI90
South CarolinaSC534
South DakotaSD385
TennesseeTN785
TexasTX2,600
UtahUT347
VermontVT308
VirginiaVA1,214
WashingtonWA716
West VirginiaWV851
WisconsinWI896
WyomingWY195

Common mistakes

These mistakes with random ZIP codes are easy to make and easy to avoid.

  • Opening the CSV in a spreadsheet. Excel reads 01001 as the number 1001 and drops the leading zero. Import the zip column as text, or use the JSON output.
  • Treating the +4 as real. With ZIP+4 on, the last four digits are random and will not match a real delivery point. Leave ZIP+4 off when every digit has to be real.
  • Mixing states. Each ZIP code in the list belongs to one state, so 90210 with Texas fails a form that checks the two together. The generator keeps the city, state and county of each ZIP code together.

Common Use Cases

People use random ZIP codes wherever they need a real US location without a real person behind it.

  • Testing address forms. Check that a form accepts leading zeros, ZIP+4 and ZIP codes from every state.
  • Sample datasets. Fill a database, a spreadsheet or a demo with CSV or JSON rows that carry a real city, state and county.
  • Placeholders in designs. Put a real city and ZIP code in a mockup instead of a fake ZIP code.
  • Teaching and examples. Show how ZIP codes map to states and counties with codes that exist.

For fake US phone numbers to go with them, use the Random Phone Number Generator. To turn the CSV output into JSON or back, use CSV to JSON and JSON to CSV, and to read a large CSV file in a table, use the CSV Viewer.

Frequently Asked Questions

Are the ZIP codes from this generator real?

Yes, every ZIP code comes from the GeoNames list of 40,977 real US ZIP codes. GeoNames is not an official Postal Service source and ZIP codes can change, so use them as test data rather than for real mail.

Is 12345 a real ZIP code?

Yes, 12345 is a real ZIP code for Schenectady, New York. Type any five digits into our ZIP code checker to test another number the same way.

Is there a 00001 ZIP code?

No, the lowest ZIP code is 00501. The US Postal Service lists 00501 as a ZIP code of its own for the IRS in Holtsville, New York.

Can you use a random ZIP code as a billing ZIP code?

No, not for a real card payment. Payment forms that verify the card compare the ZIP code with the billing address your bank has on file, so a random one can get the payment declined.

Can you get random ZIP codes for one state?

Yes, choose the state in the generator and every ZIP code comes from that state. Delaware has 96 ZIP codes in the list, so asking for more with No repeats on gives you all 96.

The ZIP code data comes from the GeoNames postal code file for the United States (CC BY 4.0), dated 2026-09-23. The Random ZIP Code Generator leaves out military (APO, FPO, DPO) and territory ZIP codes.