I was recently working on a data mining project where I had to clean millions of street addresses. One thing that got old fast was stopping my work to search the Web for a clean list of U.S. states (plus territories) in a particular format. So I made my own set and posted it here so that you and I never have to endure that annoyance again.
As an HTML Table:
AL | ALABAMA | ALABAMA | AL - ALABAMA | Alabama | alabama |
AK | ALASKA | ALASKA | AK - ALASKA | Alaska | alaska |
AZ | ARIZONA | ARIZONA | AZ - ARIZONA | Arizona | arizona |
AR | ARKANSAS | ARKANSAS | AR - ARKANSAS | Arkansas | arkansas |
CA | CALIFORNIA | CALIFORNIA | CA - CALIFORNIA | California | california |
CO | COLORADO | COLORADO | CO - COLORADO | Colorado | colorado |
CT | CONNECTICUT | CONNECTICUT | CT - CONNECTICUT | Connecticut | connecticut |
DE | DELAWARE | DELAWARE | DE - DELAWARE | Delaware | delaware |
FL | FLORIDA | FLORIDA | FL - FLORIDA | Florida | florida |
GA | GEORGIA | GEORGIA | GA - GEORGIA | Georgia | georgia |
HI | HAWAII | HAWAII | HI - HAWAII | Hawaii | hawaii |
ID | IDAHO | IDAHO | ID - IDAHO | Idaho | idaho |
IL | ILLINOIS | ILLINOIS | IL - ILLINOIS | Illinois | illinois |
IN | INDIANA | INDIANA | IN - INDIANA | Indiana | indiana |
IA | IOWA | IOWA | IA - IOWA | Iowa | iowa |
KS | KANSAS | KANSAS | KS - KANSAS | Kansas | kansas |
KY | KENTUCKY | KENTUCKY | KY - KENTUCKY | Kentucky | kentucky |
LA | LOUISIANA | LOUISIANA | LA - LOUISIANA | Louisiana | louisiana |
ME | MAINE | MAINE | ME - MAINE | Maine | maine |
MD | MARYLAND | MARYLAND | MD - MARYLAND | Maryland | maryland |
MA | MASSACHUSETTS | MASSACHUSETTS | MA - MASSACHUSETTS | Massachusetts | massachusetts |
MI | MICHIGAN | MICHIGAN | MI - MICHIGAN | Michigan | michigan |
MN | MINNESOTA | MINNESOTA | MN - MINNESOTA | Minnesota | minnesota |
MS | MISSISSIPPI | MISSISSIPPI | MS - MISSISSIPPI | Mississippi | mississippi |
MO | MISSOURI | MISSOURI | MO - MISSOURI | Missouri | missouri |
MT | MONTANA | MONTANA | MT - MONTANA | Montana | montana |
NE | NEBRASKA | NEBRASKA | NE - NEBRASKA | Nebraska | nebraska |
NV | NEVADA | NEVADA | NV - NEVADA | Nevada | nevada |
NH | NEW HAMPSHIRE | NEW_HAMPSHIRE | NH - NEW HAMPSHIRE | New Hampshire | new hampshire |
NJ | NEW JERSEY | NEW_JERSEY | NJ - NEW JERSEY | New Jersey | new jersey |
NM | NEW MEXICO | NEW_MEXICO | NM - NEW MEXICO | New Mexico | new mexico |
NY | NEW YORK | NEW_YORK | NY - NEW YORK | New York | new york |
NC | NORTH CAROLINA | NORTH_CAROLINA | NC - NORTH CAROLINA | North Carolina | north carolina |
ND | NORTH DAKOTA | NORTH_DAKOTA | ND - NORTH DAKOTA | North Dakota | north dakota |
OH | OHIO | OHIO | OH - OHIO | Ohio | ohio |
OK | OKLAHOMA | OKLAHOMA | OK - OKLAHOMA | Oklahoma | oklahoma |
OR | OREGON | OREGON | OR - OREGON | Oregon | oregon |
PA | PENNSYLVANIA | PENNSYLVANIA | PA - PENNSYLVANIA | Pennsylvania | pennsylvania |
RI | RHODE ISLAND | RHODE_ISLAND | RI - RHODE ISLAND | Rhode Island | rhode island |
SC | SOUTH CAROLINA | SOUTH_CAROLINA | SC - SOUTH CAROLINA | South Carolina | south carolina |
SD | SOUTH DAKOTA | SOUTH_DAKOTA | SD - SOUTH DAKOTA | South Dakota | south dakota |
TN | TENNESSEE | TENNESSEE | TN - TENNESSEE | Tennessee | tennessee |
TX | TEXAS | TEXAS | TX - TEXAS | Texas | texas |
UT | UTAH | UTAH | UT - UTAH | Utah | utah |
VT | VERMONT | VERMONT | VT - VERMONT | Vermont | vermont |
VA | VIRGINIA | VIRGINIA | VA - VIRGINIA | Virginia | virginia |
WA | WASHINGTON | WASHINGTON | WA - WASHINGTON | Washington | washington |
WV | WEST VIRGINIA | WEST_VIRGINIA | WV - WEST VIRGINIA | West Virginia | west virginia |
WI | WISCONSIN | WISCONSIN | WI - WISCONSIN | Wisconsin | wisconsin |
WY | WYOMING | WYOMING | WY - WYOMING | Wyoming | wyoming |
AS | AMERICAN SAMOA | AMERICAN_SAMOA | AS - AMERICAN SAMOA | American Samoa | american samoa |
GU | GUAM | GUAM | GU - GUAM | Guam | guam |
MP | NORTHERN MARIANA ISLANDS | NORTHERN_MARIANA_ISLANDS | MP - NORTHERN MARIANA ISLANDS | Northern Mariana Islands | northern mariana islands |
PR | PUERTO RICO | PUERTO_RICO | PR - PUERTO RICO | Puerto Rico | puerto rico |
VI | VIRGIN ISLANDS | VIRGIN_ISLANDS | VI - VIRGIN ISLANDS | Virgin Islands | virgin islands |
AA | ARMED FORCES AMERICAS | ARMED_FORCES_AMERICAS | AA - ARMED FORCES AMERICAS | Armed Forces Americas | armed forces americas |
AE | ARMED FORCES EUROPE | ARMED_FORCES_EUROPE | AE - ARMED FORCES EUROPE | Armed Forces Europe | armed forces europe |
AP | ARMED FORCES PACIFIC | ARMED_FORCES_PACIFIC | AP - ARMED FORCES PACIFIC | Armed Forces Pacific | armed forces pacific |
DC | DISTRICT OF COLUMBIA | DISTRICT_OF_COLUMBIA | DC - DISTRICT OF COLUMBIA | District Of Columbia | district of columbia |