United States 5-Digit ZIP Codes - Premium Edition

United States 5-Digit ZIP Codes

The Premium Edition contains a complete listing of all United States ZIP Codes, associated geographic coordinates, population based Metropolitan Statistical Area codes, times zones, DST recognized, FIPS codes and county cross-reference data.

This data is well suited for many type applications. Typical uses include ZIP Code lookup, ecommerce, user input validation, customer support and marketing, nearest dealer location and so on.

Produced: on or before 5th calendar day quarterly
Current Release: December 3, 2024
Distribution Frequency: quarterly (issue date: January, April, July, October)
Distribution Format: Internet download

pdf file United States ZIP Codes Database Premium Edition Reference Manual
zipped file United States ZIP Codes Database Premium Edition Sample Data

Portions of data provided by and Copyright United States Postal Service 2023. Quentin Sager Consulting is a non-exclusive licensee of the United States Postal Service.


ZIP Code Assignments File

FieldData TypeField Description
ZIPCHAR (5)The United States 5-digit ZIP code
CityVARCHAR (64)City, organization, or entity name associated with the ZIP Code
AbbreviationVARCHAR (13)USPS abbreviation for the City name
CountyNameVARCHAR (64)Name of primary county, parish, or borough for the ZIP Code location
StateNameVARCHAR (64)Full name of the state or territory
StateCHAR (2)USPS state or territory abbreviation
CityTypeCHAR (1)USPS recognition of the CITY name when used with this ZIP code
ZipTypeCHAR (1)General classification or type for the ZIP code
FIPSCHAR (3)FIPS 5-digit county number
AreaCodeVARCHAR (28)Predominate 3-digit telephone area code
OverlayVARCHAR (28)Additional telephone area codes in use when the predominate telephone area code is an overlayed area code.
TimeZoneCHAR (2)Primary time zone the ZIP code is located within
DSTCHAR (1)Single character Y/N value indicating whether daylight saving time is observed at this location.
UTCVARCHAR (28)The standard time Coordinated Universal Time (UTC) offset at this location. Format is +\-HH:MM.
LatitudeDOUBLELatitude in decimal degrees of the geographic centroid of the ZIP code
LongitudeDOUBLELongitude in decimal degrees of the geographic centroid of the ZIP code
FieldData TypeField Description
ZipCodeCHAR (5)The United States 5-digit ZIP code
ZipTypeCHAR (1)General classification or type for the ZIP code
CityTypeCHAR (1)USPS recognition of the CITY name when used with this ZIP code
CityVARCHAR (64)City, organization, or entity name associated with the ZIP Code
StateCHAR (2)USPS state or territory abbreviation
FieldData TypeField Description
FIPSCHAR (5)FIPS county code
CountyNameVARCHAR (64)Name of the county, parish, or borough
StateCHAR (2)USPS state or territory abbreviation
Pop2000DOUBLEUnited States Census 2000 population
Pop2009DOUBLEUnited States Census 2009 population
Pop2010DOUBLEUnited States Census 2010 population
LandAreaSquareMilesDOUBLECounty land area in square miles
WaterAreaSquareMileDOUBLE DEFAULTCounty water area in square miles
CountyTypeVARCHAR (128)County or entity type described by county name
County_SeatVARCHAR (64)County seat or center of county government

SQL Table Definitions


CREATE DATABASE IF NOT EXISTS `zippremium`;
USE `zippremium`;

DROP TABLE IF EXISTS `zipcodes`;
CREATE TABLE `zipcodes` (
	`ZIP` CHAR(5) NOT NULL,
	`City` VARCHAR(64) DEFAULT NULL,
	`Abbreviation` VARCHAR(13) DEFAULT NULL,
	`CountyName` VARCHAR(64) DEFAULT NULL,
	`StateName` VARCHAR(64) DEFAULT NULL,
	`State` CHAR(2) DEFAULT NULL,
	`CityType` CHAR(1) DEFAULT NULL,
	`ZipType` CHAR(1) DEFAULT NULL,
	`FIPS` CHAR(5) DEFAULT NULL,
	`AreaCode` CHAR(3) DEFAULT NULL,
	`Overlay` VARCHAR(28) DEFAULT NULL,
	`TimeZone` CHAR(2) DEFAULT NULL,
	`DST` CHAR(1) DEFAULT NULL,
	`UTC` VARCHAR(28) DEFAULT NULL,
	`Latitude` DOUBLE DEFAULT 0,
	`Longitude` DOUBLE DEFAULT 0,
	PRIMARY KEY (`ZIP`));

DROP TABLE IF EXISTS `us_alternate`;
CREATE TABLE `us_alternate` (
	`ZipCode` CHAR(5) NOT NULL,
	`ZipType` CHAR(1) DEFAULT NULL,
	`CityType` CHAR(1) DEFAULT NULL,
	`City` VARCHAR(64) DEFAULT NULL,
	`State` CHAR(2) DEFAULT NULL,
	KEY (`ZipCode`));

DROP TABLE IF EXISTS `counties`;
CREATE TABLE `counties` (
	`FIPS` CHAR(5) NOT NULL,
	`CountyName` VARCHAR(64) DEFAULT NULL,
	`State` CHAR(2) DEFAULT NULL,
	`Pop2000` DOUBLE DEFAULT 0,
	`Pop2009` DOUBLE DEFAULT 0,
	`Pop2010` DOUBLE DEFAULT 0,
	`LandAreaSquareMiles` DOUBLE DEFAULT -1,
	`WaterAreaSquareMile` DOUBLE DEFAULT -1,
	`CountyType` VARCHAR(128) DEFAULT NULL,
	`County_Seat` VARCHAR(64) DEFAULT NULL,
	PRIMARY KEY (`FIPS`));