
ZIP and Postal Codes Data
Description
A worldwide postal code database in four ready-to-load formats. The main table has more than 1.8 million rows covering over 120 countries: every row gives the country, the postal or ZIP code, the place it belongs to, up to three levels of administrative division (state or region, county or district, municipality) with their codes, and latitude and longitude. The United States is complete with more than 41,000 ZIP codes, each with city, state, county and county FIPS code, and large countries such as Germany, France, Spain, India, Japan, Mexico and Australia are covered in full. Because the worldwide source carries only the first part of British and Dutch codes, a second table adds the full postcodes: about 1.8 million UK postcodes with local authority and coordinates, and about 470,000 Dutch postcodes. A countries table lists every country with its name, the pattern and regular expression of its postal codes, the number of codes and a plain statement of how complete they are, so you know before you build which countries have partial codes (Canada, Ireland, Malta, Chile, China, Argentina and Brazil). For the United States a fourth table joins on ZIP code and adds Census demographics for more than 33,000 ZIP code areas: population, median age, households, median household income, income per person, poverty and unemployment rates, education, housing units, home ownership, median home value and rent, broadband, and the make-up of the population. Postal codes are stored as text so leading zeros survive. You get CSV, JSON, a ready-made SQLite database indexed on country and code, and a standard SQL file for PostgreSQL or MySQL; download everything in one zip or only the format you need. The file is rebuilt every month. The postal codes come from GeoNames under the Creative Commons Attribution 4.0 licence, which allows commercial use as long as GeoNames is credited; the UK postcodes contain Royal Mail data; the demographics are public domain Census Bureau data. Coordinates are estimates suited to maps, distance searches and store locators. Full Canadian postal codes are not included. Useful for address forms and validation, store and dealer locators, shipping zones, sales territories, market sizing by ZIP code and enriching customer data.
Available Languages
Data Size
Formats
Capturing frequency
Legal Terms / Usage Permission
Data Attributes
Postal_codes
| Name | Type | Example |
|---|---|---|
| country_code | String | US |
| postal_code | String | 90210 |
| place_name | String | Beverly Hills |
| region | String | California |
| region_code | String | CA |
| district | String | Los Angeles |
| district_code | String | 037 |
| community | String | empty in the US |
| community_code | String | empty in the US |
| latitude | Number | 34.0901 |
| longitude | Number | -118.4065 |
| accuracy | Integer | 4 |
Full_postal_codes
| Name | Type | Example |
|---|---|---|
| country_code | String | GB |
| postal_code | String | SW1A 1AA |
| place_name | String | London |
| region | String | England |
| region_code | String | ENG |
| district | String | Greater London |
| district_code | String | GLA |
| community | String | City of Westminster |
| community_code | String | E09000033 |
| latitude | Number | 51.501 |
| longitude | Number | -0.1416 |
| accuracy | Integer | 6 |
Countries
| Name | Type | Example |
|---|---|---|
| country_code | String | NL |
| country_name | String | The Netherlands |
| continent | String | EU |
| postal_code_format | String | #### @@ |
| postal_code_regex | String | a regular expression for the format |
| rows | Integer | 4334 |
| postal_codes | Integer | 4086 |
| full_rows | Integer | 468809 |
| coverage | String | first four digits; full postcodes are in full_postal_codes |
Us_zip_demographics
| Name | Type | Example |
|---|---|---|
| zip | String | 90210 |
| population | Integer | 19652 |
| median_age | Number | 51.2 |
| male_pct | Number | 51.1 |
| female_pct | Number | 48.9 |
| under_18_pct | Number | 18.0 |
| over_65_pct | Number | 28.3 |
| households | Integer | 8025 |
| avg_household_size | Number | 2.45 |
| median_household_income | Integer | 190382 |
| per_capita_income | Integer | 144533 |
| poverty_rate | Number | 8.4 |
| unemployment_rate | Number | 4.2 |
| labor_force_participation | Number | 54.2 |
| bachelors_or_higher_pct | Number | 68.4 |
| hs_or_higher_pct | Number | 96.8 |
| housing_units | Integer | 9714 |
| occupied_units | Integer | 8025 |
| vacant_units | Integer | 1689 |
| owner_occupied_pct | Number | 71.6 |
| median_home_value | Integer | 2000000 |
| median_gross_rent | Integer | 3045 |
| median_year_built | Integer | 1967 |
| broadband_pct | Number | 94.9 |
| foreign_born_pct | Number | 35.7 |
| hispanic_pct | Number | 5.8 |
| white_pct | Number | 82.3 |
| black_pct | Number | 2.0 |
| native_american_pct | Number | 0.2 |
| asian_pct | Number | 6.6 |
| pacific_islander_pct | Number | 0.0 |
| other_race_pct | Number | 1.3 |
| two_or_more_races_pct | Number | 7.5 |
Files
| Name | Type | Example |
|---|---|---|
| csv/ | CSV | one file per table, comma separated, UTF-8, header row |
| json/ | JSON | one file per table, an array of objects, empty values left out |
| sqlite/postal_codes.sqlite | SQLite | 4 tables, indexed on country and code |
| sql/postal_codes.sql | SQL | the same 4 tables as standard SQL |
1 Month Access
- File formats: CSV, JSON, SQLite, SQL
- World postal codes, full UK and Dutch codes, US ZIP demographics
- Future updates: 1 Month
Need a Custom Solution?
For businesses with specific requirements or higher volume needs
Downloads
ZIP and Postal Codes Data - All formats.zip
ZIP and Postal Codes Data - CSV.zip
ZIP and Postal Codes Data - JSON.zip
ZIP and Postal Codes Data - SQLite.zip
ZIP and Postal Codes Data - SQL.zip
Subscribe to Access Downloads
Get immediate access to all data files
Community Discussions Coming Soon
We're building a space for community discussions where you can share insights, ask questions, and connect with other data enthusiasts.


