← All datasets

US Counties

All 3,272 United States counties and county-equivalents from Wikidata, keyed on the five-digit FIPS code: state, county seat, population, area in square kilometres and square miles, population density, year established, what the county is named after, and coordinates. The set is the roughly 3,140 counties plus Louisiana parishes, Alaska boroughs and census areas, Virginia independent cities and Puerto Rico municipios, with metropolitan and micropolitan statistical areas excluded so population ranks by county. Texas leads with 254 counties and Georgia follows with 159. Los Angeles County is the most populous at over ten million. Area is normalized from Wikidata's per-statement units to square kilometres and derived to square miles. A clean lookup table for FIPS county codes, county populations and county seats, free as a CSV download. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.
3,272 rows 1 file last pulled 2026-10-23
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • Which states have the most counties per resident?
  • Which county names repeat most across states?
  • How do county sizes differ between east and west?
US Counties 3,272 rows × 15 columns
CountyCounty_IDFIPSStateState_AbbrCounty_SeatPopulationArea_km2Area_sqmiPopulation_Density_sqmiEstablished_YearNamed_AfterLatitudeLongitudeCounty_URL

Questions and answers

What is the US Counties dataset?

All 3,272 United States counties and county-equivalents from Wikidata, keyed on the five-digit FIPS code: state, county seat, population, area in square kilometres and square miles, population density, year established, what the county is named after, and coordinates. The set is the roughly 3,140 counties plus Louisiana parishes, Alaska boroughs and census areas, Virginia independent cities and Puerto Rico municipios, with metropolitan and micropolitan statistical areas excluded so population ranks by county. Texas leads with 254 counties and Georgia follows with 159. Los Angeles County is the most populous at over ten million. Area is normalized from Wikidata's per-statement units to square kilometres and derived to square miles. A clean lookup table for FIPS county codes, county populations and county seats, free as a CSV download. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.

How big is the US Counties dataset?

3,272 rows in one CSV file, with 15 columns in total: County, County_ID, FIPS, State, State_Abbr, County_Seat, Population, Area_km2, Area_sqmi, Population_Density_sqmi, Established_Year, Named_After, Latitude, Longitude, County_URL.

Where does the data come from?

It is built by programmatically scraping en.wikipedia.org, last pulled on 2026-10-23. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.

Browse every free dataset on CodeSights