Random Area Code Generator

Draw genuine United States telephone area codes together with the city and state each one covers.

Area codes8 generated
319 (Cedar Rapids, Iowa)
502 (Louisville, Kentucky)
717 (Harrisburg, Pennsylvania)
518 (Albany, New York)
701 (Fargo, North Dakota)
815 (Rockford, Illinois)
702 (Las Vegas, Nevada)
412 (Pittsburgh, Pennsylvania)
Runs locally in your browser

About the Random Area Code Generator

Every code in this list is a real North American Numbering Plan area code paired with a city it actually serves, from 212 in New York City to 907 covering Alaska. Made up three digit numbers cause trouble in test suites because validators reject codes that begin with 0 or 1 and reject the N11 service codes, so working from a genuine list saves a round of debugging.

The output shows the code first and the location in brackets, which makes it readable as documentation and easy to split on the space if you only want the digits. Roughly 140 codes are included, covering every state plus the District of Columbia, with several of the well known overlays such as 720 over 303 in Denver.

Typical uses are seeding a customer table with believable phone prefixes, building sample call logs, quizzing support staff on regional coverage, and writing test cases for phone parsing rules. Remember that the geographic hints are approximate: many codes span a wide region and some cities carry several. If you need a whole formatted number rather than a prefix, generate the remaining seven digits with the Random Number Generator, or build the full record set with the Random CSV Generator.

How to use

  1. Pick how many area codes you want in one draw.
  2. Keep no repeats on so a sample set covers different regions.
  3. Press Generate and copy the list, or download it for your fixtures folder.

Common questions

Are these real area codes?
Yes, all of them are in service in the North American Numbering Plan and are shown with a city they cover.
Is the city always exact?
It is representative rather than exhaustive. Many codes cover a wide region and large metros use several codes at once.
Can I build a full phone number from this?
Yes. Take the code, then add a three digit exchange and a four digit line number from the Random Number Generator.
Does the list include Canadian codes?
No, this draw is United States only. For Canadian test data try the Random Canada Address Generator.