Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
"DC": "District Of Columbia",
"FM": "Federated States Of Micronesia",
"FL": "Florida",
"GA": "Georgia",
"GU": "Guam",
"HI": "Hawaii",
"ID": "Idaho",
"IL": "Illinois",
"IN": "Indiana",
"IA": "Iowa",
"KS": "Kansas",
"KY": "Kentucky",
"LA": "Louisiana",
"ME": "Maine",
"MH": "Marshall Islands",
"MD": "Maryland",
"MA": "Massachusetts",
"MI": "Michigan",
"MN": "Minnesota",
"MS": "Mississippi",
"MO": "Missouri",
"MT": "Montana",
"NE": "Nebraska",
"NV": "Nevada",
"NH": "New Hampshire",
"NJ": "New Jersey",
"NM": "New Mexico",
"NY": "New York",
"NC": "North Carolina",
"ND": "North Dakota",
"MP": "Northern Mariana Islands",
"OH": "Ohio",
"OK": "Oklahoma",
"OR": "Oregon",
"PW": "Palau",
"PA": "Pennsylvania",
"PR": "Puerto Rico",
"RI": "Rhode Island",
"SC": "South Carolina",
"SD": "South Dakota",
"TN": "Tennessee",
"TX": "Texas",
"UT": "Utah",
"VT": "Vermont",
"VI": "Virgin Islands",
"VA": "Virginia",
"WA": "Washington",
"WV": "West Virginia",
"WI": "Wisconsin",
"WY": "Wyoming"
}
[
{
"name": "Alabama",
"abbreviation": "AL"
},
{
"name": "Alaska",
"abbreviation": "AK"
},
{
"name": "American Samoa",
"abbreviation": "AS"
},
{
"name": "Arizona",
"abbreviation": "AZ"
},
{
"name": "Arkansas",
"abbreviation": "AR"
},
{
"name": "California",
"abbreviation": "CA"
},
{
"name": "Colorado",
"abbreviation": "CO"
},
{
"name": "Connecticut",
"abbreviation": "CT"
},
{
"name": "Delaware",
"abbreviation": "DE"
},
{
"name": "District Of Columbia",
"abbreviation": "DC"
},
{
"name": "Federated States Of Micronesia",
"abbreviation": "FM"
},
{
"name": "Florida",
"abbreviation": "FL"
},
{
"name": "Georgia",
"abbreviation": "GA"
},
{
"name": "Guam",
"abbreviation": "GU"
},
{
"name": "Hawaii",
"abbreviation": "HI"
},
{
"name": "Idaho",
"abbreviation": "ID"
},
{
"name": "Illinois",
"abbreviation": "IL"
},
{
"name": "Indiana",
"abbreviation": "IN"
},
{
"name": "Iowa",
"abbreviation": "IA"
},
{
"name": "Kansas",
"abbreviation": "KS"
},
{
"name": "Kentucky",
"abbreviation": "KY"
},
{
"name": "Louisiana",
"abbreviation": "LA"
},
{
"name": "Maine",
"abbreviation": "ME"
},
{
"name": "Marshall Islands",
"abbreviation": "MH"
},
{
"name": "Maryland",
"abbreviation": "MD"
},
{
"name": "Massachusetts",
"abbreviation": "MA"
},
{
"name": "Michigan",
"abbreviation": "MI"
},
{
"name": "Minnesota",
"abbreviation": "MN"
},
{
"name": "Mississippi",
"abbreviation": "MS"
},
{
"name": "Missouri",
"abbreviation": "MO"
},
{
"name": "Montana",
"abbreviation": "MT"
},
{
"name": "Nebraska",
"abbreviation": "NE"
},
{
"name": "Nevada",
"abbreviation": "NV"
},
{
"name": "New Hampshire",
"abbreviation": "NH"
},
{
"name": "New Jersey",
"abbreviation": "NJ"
},
{
"name": "New Mexico",
"abbreviation": "NM"
},
{
"name": "New York",
"abbreviation": "NY"
},
{
"name": "North Carolina",
"abbreviation": "NC"
},
{
"name": "North Dakota",
"abbreviation": "ND"
},
{
"name": "Northern Mariana Islands",
"abbreviation": "MP"
},
{
"name": "Ohio",
"abbreviation": "OH"
},
{
"name": "Oklahoma",
"abbreviation": "OK"
},
{
"name": "Oregon",
"abbreviation": "OR"
},
{
"name": "Palau",
"abbreviation": "PW"
},
{
"name": "Pennsylvania",
"abbreviation": "PA"
},
{
"name": "Puerto Rico",
"abbreviation": "PR"
},
{
"name": "Rhode Island",
"abbreviation": "RI"
},
{
"name": "South Carolina",
"abbreviation": "SC"
},
{
"name": "South Dakota",
"abbreviation": "SD"
},
{
"name": "Tennessee",
"abbreviation": "TN"
},
{
"name": "Texas",
"abbreviation": "TX"
},
{
"name": "Utah",
"abbreviation": "UT"
},
{
"name": "Vermont",
"abbreviation": "VT"
},
{
"name": "Virgin Islands",
"abbreviation": "VI"
},
{
"name": "Virginia",
"abbreviation": "VA"
},
{
"name": "Washington",
"abbreviation": "WA"
},
{
"name": "West Virginia",
"abbreviation": "WV"
},
{
"name": "Wisconsin",
"abbreviation": "WI"
},
{
"name": "Wyoming",
"abbreviation": "WY"
}
]
@jearle

This comment has been minimized.

Copy link

jearle commented Jun 28, 2013

I like it

@ruffrey

This comment has been minimized.

Copy link

ruffrey commented Jun 28, 2013

THANK YOU SO MUCH!

@GabrielRatener

This comment has been minimized.

Copy link

GabrielRatener commented Aug 4, 2013

Thanks, this is great!!

@mindpivot

This comment has been minimized.

Copy link

mindpivot commented Aug 13, 2013

Thanks!

@jrmsklar

This comment has been minimized.

Copy link

jrmsklar commented Aug 13, 2013

Thanks!

@gpeters-lv

This comment has been minimized.

Copy link

gpeters-lv commented Aug 14, 2013

Much appreciated

@officiallyandy

This comment has been minimized.

Copy link

officiallyandy commented Sep 6, 2013

just what I was looking for

@Charizard

This comment has been minimized.

Copy link

Charizard commented Sep 6, 2013

Thank you :)

@rnagella

This comment has been minimized.

Copy link

rnagella commented Oct 31, 2013

Thank you :), Incase some one who uses jslint. Here is the json_hash in single quotes

state_hash =  {
    'AL': 'Alabama',
    'AK': 'Alaska',
    'AS': 'American Samoa',
    'AZ': 'Arizona',
    'AR': 'Arkansas',
    'CA': 'California',
    'CO': 'Colorado',
    'CT': 'Connecticut',
    'DE': 'Delaware',
    'DC': 'District Of Columbia',
    'FM': 'Federated States Of Micronesia',
    'FL': 'Florida',
    'GA': 'Georgia',
    'GU': 'Guam',
    'HI': 'Hawaii',
    'ID': 'Idaho',
    'IL': 'Illinois',
    'IN': 'Indiana',
    'IA': 'Iowa',
    'KS': 'Kansas',
    'KY': 'Kentucky',
    'LA': 'Louisiana',
    'ME': 'Maine',
    'MH': 'Marshall Islands',
    'MD': 'Maryland',
    'MA': 'Massachusetts',
    'MI': 'Michigan',
    'MN': 'Minnesota',
    'MS': 'Mississippi',
    'MO': 'Missouri',
    'MT': 'Montana',
    'NE': 'Nebraska',
    'NV': 'Nevada',
    'NH': 'New Hampshire',
    'NJ': 'New Jersey',
    'NM': 'New Mexico',
    'NY': 'New York',
    'NC': 'North Carolina',
    'ND': 'North Dakota',
    'MP': 'Northern Mariana Islands',
    'OH': 'Ohio',
    'OK': 'Oklahoma',
    'OR': 'Oregon',
    'PW': 'Palau',
    'PA': 'Pennsylvania',
    'PR': 'Puerto Rico',
    'RI': 'Rhode Island',
    'SC': 'South Carolina',
    'SD': 'South Dakota',
    'TN': 'Tennessee',
    'TX': 'Texas',
    'UT': 'Utah',
    'VT': 'Vermont',
    'VI': 'Virgin Islands',
    'VA': 'Virginia',
    'WA': 'Washington',
    'WV': 'West Virginia',
    'WI': 'Wisconsin',
    'WY': 'Wyoming'
  };

There is an underscore method to invert the object. where the keys have become the values and the values the keys. Here is the result after inversion

states_hash =
  {
    'Alabama': 'AL',
    'Alaska': 'AK',
    'American Samoa': 'AS',
    'Arizona': 'AZ',
    'Arkansas': 'AR',
    'California': 'CA',
    'Colorado': 'CO',
    'Connecticut': 'CT',
    'Delaware': 'DE',
    'District Of Columbia': 'DC',
    'Federated States Of Micronesia': 'FM',
    'Florida': 'FL',
    'Georgia': 'GA',
    'Guam': 'GU',
    'Hawaii': 'HI',
    'Idaho': 'ID',
    'Illinois': 'IL',
    'Indiana': 'IN',
    'Iowa': 'IA',
    'Kansas': 'KS',
    'Kentucky': 'KY',
    'Louisiana': 'LA',
    'Maine': 'ME',
    'Marshall Islands': 'MH',
    'Maryland': 'MD',
    'Massachusetts': 'MA',
    'Michigan': 'MI',
    'Minnesota': 'MN',
    'Mississippi': 'MS',
    'Missouri': 'MO',
    'Montana': 'MT',
    'Nebraska': 'NE',
    'Nevada': 'NV',
    'New Hampshire': 'NH',
    'New Jersey': 'NJ',
    'New Mexico': 'NM',
    'New York': 'NY',
    'North Carolina': 'NC',
    'North Dakota': 'ND',
    'Northern Mariana Islands': 'MP',
    'Ohio': 'OH',
    'Oklahoma': 'OK',
    'Oregon': 'OR',
    'Palau': 'PW',
    'Pennsylvania': 'PA',
    'Puerto Rico': 'PR',
    'Rhode Island': 'RI',
    'South Carolina': 'SC',
    'South Dakota': 'SD',
    'Tennessee': 'TN',
    'Texas': 'TX',
    'Utah': 'UT',
    'Vermont': 'VT',
    'Virgin Islands': 'VI',
    'Virginia': 'VA',
    'Washington': 'WA',
    'West Virginia': 'WV',
    'Wisconsin': 'WI',
    'Wyoming': 'WY'
  }
@ikhsan017

This comment has been minimized.

Copy link

ikhsan017 commented Nov 20, 2013

like this!

@kutukaran

This comment has been minimized.

Copy link

kutukaran commented Nov 20, 2013

Lovely !! Thanks a ton!

@dustinrjo

This comment has been minimized.

Copy link

dustinrjo commented Jan 30, 2014

fantastic!

@chuvpilo

This comment has been minimized.

Copy link

chuvpilo commented Feb 6, 2014

Awesome =)

@Ryan-Alfaddaghi

This comment has been minimized.

Copy link

Ryan-Alfaddaghi commented Feb 16, 2014

Thanks a lot !!!

@ArtSabintsev

This comment has been minimized.

Copy link

ArtSabintsev commented Mar 25, 2014

Thanks!

@tannerjt

This comment has been minimized.

Copy link

tannerjt commented Mar 27, 2014

This is awesome! You helped with starting a similar project, which has all states along with a beautiful photo of each state. Heres my repo if anybody is interested in using or forking it:
https://github.com/tannerjt/state_images.json

@sdhull

This comment has been minimized.

Copy link

sdhull commented Apr 9, 2014

PLUS ONE 👍

Super helpful. Thanks for posting this :)

@carlosl

This comment has been minimized.

Copy link

carlosl commented Apr 16, 2014

Awesome, just what I needed :).

@nickaigi

This comment has been minimized.

Copy link

nickaigi commented May 18, 2014

👍
Awesome! Just what I needed :)

@Jinex2012

This comment has been minimized.

Copy link

Jinex2012 commented Jun 20, 2014

great one guys!

@fijimunkii

This comment has been minimized.

Copy link

fijimunkii commented Jun 23, 2014

Thanks!

@bigboy1122

This comment has been minimized.

Copy link

bigboy1122 commented Jun 24, 2014

Nice

@incomestore

This comment has been minimized.

Copy link

incomestore commented Jul 6, 2014

Many thanks!!!

@sdpalley

This comment has been minimized.

Copy link

sdpalley commented Jul 13, 2014

👍
Awesome!

@kevinmesiab

This comment has been minimized.

Copy link

kevinmesiab commented Aug 2, 2014

Thanks!

@matiasmoya

This comment has been minimized.

Copy link

matiasmoya commented Aug 4, 2014

Just what i've been looking for! thanks a lot!

@iotize

This comment has been minimized.

Copy link

iotize commented Aug 24, 2014

Thanks for this, very useful!

@borisdev

This comment has been minimized.

Copy link

borisdev commented Sep 9, 2014

"AA": "U.S. Armed Forces – Americas"
"AE": "U.S. Armed Forces – Europe"
"AP": "U.S. Armed Forces – Pacific"
@GaryReckard

This comment has been minimized.

Copy link

GaryReckard commented Sep 23, 2014

Thank you! This is very handy! Here's a compact version:

var state_index = {"AL":"Alabama","AK":"Alaska","AS":"American Samoa","AZ":"Arizona","AR":"Arkansas","CA":"California","CO":"Colorado","CT":"Connecticut","DE":"Delaware","DC":"District Of Columbia","FM":"Federated States Of Micronesia","FL":"Florida","GA":"Georgia","GU":"Guam","HI":"Hawaii","ID":"Idaho","IL":"Illinois","IN":"Indiana","IA":"Iowa","KS":"Kansas","KY":"Kentucky","LA":"Louisiana","ME":"Maine","MH":"Marshall Islands","MD":"Maryland","MA":"Massachusetts","MI":"Michigan","MN":"Minnesota","MS":"Mississippi","MO":"Missouri","MT":"Montana","NE":"Nebraska","NV":"Nevada","NH":"New Hampshire","NJ":"New Jersey","NM":"New Mexico","NY":"New York","NC":"North Carolina","ND":"North Dakota","MP":"Northern Mariana Islands","OH":"Ohio","OK":"Oklahoma","OR":"Oregon","PW":"Palau","PA":"Pennsylvania","PR":"Puerto Rico","RI":"Rhode Island","SC":"South Carolina","SD":"South Dakota","TN":"Tennessee","TX":"Texas","UT":"Utah","VT":"Vermont","VI":"Virgin Islands","VA":"Virginia","WA":"Washington","WV":"West Virginia","WI":"Wisconsin","WY":"Wyoming"};
@tjhorner

This comment has been minimized.

Copy link

tjhorner commented Sep 24, 2014

oh my god thank you so much

@jalerg

This comment has been minimized.

Copy link

jalerg commented Dec 3, 2014

These lists are incredibly useful, thank you so much

@insaineyesay

This comment has been minimized.

Copy link

insaineyesay commented Jan 20, 2015

Thanks!

@YidingW

This comment has been minimized.

Copy link

YidingW commented Jan 23, 2015

Thank you! Very useful.

@sai571

This comment has been minimized.

Copy link

sai571 commented Jan 29, 2015

Very useful

@lrparker81

This comment has been minimized.

Copy link

lrparker81 commented Feb 3, 2015

Thanks!

@danmcadams

This comment has been minimized.

Copy link

danmcadams commented Feb 5, 2015

Noice!

Here at work, not all of our sites are connected to a DB. Just wrote a little class to make a state dropdown, this helped a lot. Thanks!

@marcus

This comment has been minimized.

Copy link

marcus commented Feb 18, 2015

Appreciate it!

@lucianmldvn

This comment has been minimized.

Copy link

lucianmldvn commented Mar 25, 2015

Great!

@jtibble

This comment has been minimized.

Copy link

jtibble commented Apr 20, 2015

google "usa states json" -> arrive here -> copy/paste -> [fist bump]

good work, and thanks!

@JohnMorales

This comment has been minimized.

Copy link

JohnMorales commented Apr 26, 2015

thanks!

@bharathnayak03

This comment has been minimized.

Copy link

bharathnayak03 commented May 6, 2015

Thanks

@renanmfd

This comment has been minimized.

Copy link

renanmfd commented Jun 18, 2015

Thanks! Save us a lot of time.

@lance-anderson

This comment has been minimized.

Copy link

lance-anderson commented Jul 20, 2015

thanks

@alexstewartja

This comment has been minimized.

Copy link

alexstewartja commented Aug 4, 2015

Thanks so much!!

@GraphicDesignElite

This comment has been minimized.

Copy link

GraphicDesignElite commented Aug 14, 2015

Thank you!

@fedealvarez

This comment has been minimized.

Copy link

fedealvarez commented Aug 14, 2015

Thanks!!!

@rgolea

This comment has been minimized.

Copy link

rgolea commented Aug 25, 2015

aren't there 50 states in the us? how come you have 59?

@LiranCohen

This comment has been minimized.

Copy link

LiranCohen commented Sep 9, 2015

In case anyone needs the opposite:

{
"Alabama": "AL",
"Alaska": "AK",
"American Samoa": "AS",
"Arizona": "AZ",
"Arkansas": "AR",
"California": "CA",
"Colorado": "CO",
"Connecticut": "CT",
"Delaware": "DE",
"District Of Columbia": "DC",
"Federated States Of Micronesia": "FM",
"Florida": "FL",
"Georgia": "GA",
"Guam": "GU",
"Hawaii": "HI",
"Idaho": "ID",
"Illinois": "IL",
"Indiana": "IN",
"Iowa": "IA",
"Kansas": "KS",
"Kentucky": "KY",
"Louisiana": "LA",
"Maine": "ME",
"Marshall Islands": "MH",
"Maryland": "MD",
"Massachusetts": "MA",
"Michigan": "MI",
"Minnesota": "MN",
"Mississippi": "MS",
"Missouri": "MO",
"Montana": "MT",
"Nebraska": "NE",
"Nevada": "NV",
"New Hampshire": "NH",
"New Jersey": "NJ",
"New Mexico": "NM",
"New York": "NY",
"North Carolina": "NC",
"North Dakota": "ND",
"Northern Mariana Islands": "MP",
"Ohio": "OH",
"Oklahoma": "OK",
"Oregon": "OR",
"Palau": "PW",
"Pennsylvania": "PA",
"Puerto Rico": "PR",
"Rhode Island": "RI",
"South Carolina": "SC",
"South Dakota": "SD",
"Tennessee": "TN",
"Texas": "TX",
"Utah": "UT",
"Vermont": "VT",
"Virgin Islands": "VI",
"Virginia": "VA",
"Washington": "WA",
"West Virginia": "WV",
"Wisconsin": "WI",
"Wyoming": "WY"
}

@SeanJM

This comment has been minimized.

Copy link

SeanJM commented Sep 16, 2015

Thank you!

@2016rshah

This comment has been minimized.

Copy link

2016rshah commented Sep 28, 2015

If anybody needs lower case, compact, json with only states (no territories), here you go:

{"al":"alabama","ak":"alaska","az":"arizona","ar":"arkansas","ca":"california","co":"colorado","ct":"connecticut","de":"delaware","fl":"florida","ga":"georgia","hi":"hawaii","id":"idaho","il":"illinois","in":"indiana","ia":"iowa","ks":"kansas","ky":"kentucky","la":"louisiana","me":"maine","md":"maryland","ma":"massachusetts","mi":"michigan","mn":"minnesota","ms":"mississippi","mo":"missouri","mt":"montana","ne":"nebraska","nv":"nevada","nh":"new hampshire","nj":"new jersey","nm":"new mexico","ny":"new york","nc":"north carolina","nd":"north dakota","oh":"ohio","ok":"oklahoma","or":"oregon","pa":"pennsylvania","ri":"rhode island","sc":"south carolina","sd":"south dakota","tn":"tennessee","tx":"texas","ut":"utah","vt":"vermont","va":"virginia","wa":"washington","wv":"west virginia","wi":"wisconsin","wy":"wyoming"}
@bikisDesign

This comment has been minimized.

Copy link

bikisDesign commented Nov 7, 2015

Thanks for providing the list!
I added average state taxes to the Object here: https://github.com/bikisDesign/usStateNamesAndTaxes

@ducks

This comment has been minimized.

Copy link

ducks commented Dec 3, 2015

+1

@rmoddel

This comment has been minimized.

Copy link

rmoddel commented Jan 5, 2016

Thanks a million!!

@jazcap53

This comment has been minimized.

Copy link

jazcap53 commented Feb 2, 2016

Thank you very much! Very helpful!

@powerslacker

This comment has been minimized.

Copy link

powerslacker commented Mar 4, 2016

Thanks for making this. You are a righteous dude.

@streamtOtO

This comment has been minimized.

Copy link

streamtOtO commented Mar 28, 2016

Thanks!!!!!

@Quinico

This comment has been minimized.

Copy link

Quinico commented Mar 30, 2016

Not all heroes wear capes.

@johnrhampton

This comment has been minimized.

Copy link

johnrhampton commented Apr 5, 2016

thanks!

@Adoyle2014

This comment has been minimized.

Copy link

Adoyle2014 commented Apr 24, 2016

Thanks a lot!

@wieslawo

This comment has been minimized.

Copy link

wieslawo commented May 13, 2016

Thank you :)

@richardm

This comment has been minimized.

Copy link

richardm commented May 24, 2016

Awesome!

@bogvsdev

This comment has been minimized.

Copy link

bogvsdev commented May 26, 2016

Thanks a lot for publishing this list!

@bryonbean

This comment has been minimized.

Copy link

bryonbean commented May 28, 2016

Dude!

@mikedizon

This comment has been minimized.

Copy link

mikedizon commented Jun 4, 2016

If you only need the abbreviations

[ "AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY" ]

@jmc2082

This comment has been minimized.

Copy link

jmc2082 commented Jun 11, 2016

Nice!

@robbiegleeson

This comment has been minimized.

Copy link

robbiegleeson commented Jun 14, 2016

@rnagella thank you!

@coreyphillips

This comment has been minimized.

Copy link

coreyphillips commented Jun 14, 2016

Thank You!

@simvol

This comment has been minimized.

Copy link

simvol commented Jun 22, 2016

Wiki says there are 50 states, how come there's 59? Very useful though, thanks

@uchilaka

This comment has been minimized.

Copy link

uchilaka commented Aug 9, 2016

EXACTLY what I needed. Simple, elegant solutions are the most beautiful things. Always. Thanks for this.

@alirobe

This comment has been minimized.

Copy link

alirobe commented Aug 15, 2016

59 states...? Which of these aren't states?

@viotti

This comment has been minimized.

Copy link

viotti commented Aug 31, 2016

It seems as of today there are fifty states, DC, and eight insular areas:

Area Name Code
American Samoa AS
Federated States of Micronesia FM
Guam GU
Marshall Islands MH
Commonwealth of the Northern Mariana Islands MP
Palau PW
Puerto Rico PR
U.S. Virgin Islands VI

This explains the fifty nine entries in the JSON.

Sources:

https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations#Table
https://www.census.gov/geo/reference/ansi_statetables.html
https://en.wikipedia.org/wiki/Insular_area

@VivaLaPanda

This comment has been minimized.

Copy link

VivaLaPanda commented Sep 9, 2016

Thanks for this!

@rmfranciacastillo

This comment has been minimized.

Copy link

rmfranciacastillo commented Sep 29, 2016

Thank you very much! This is awesome

@jumbosushi

This comment has been minimized.

Copy link

jumbosushi commented Nov 15, 2016

THIS IS PERFECT THANK YOU!

@irtazabbas

This comment has been minimized.

Copy link

irtazabbas commented Nov 30, 2016

I'll go too. In case you only want array of names, like I did.

["Alabama", "Alaska", "American Samoa", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "District Of Columbia", "Federated States Of Micronesia", "Florida", "Georgia", "Guam", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Marshall Islands", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Northern Mariana Islands", "Ohio", "Oklahoma", "Oregon", "Palau", "Pennsylvania", "Puerto Rico", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virgin Islands", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"]

@GeoffAbbott

This comment has been minimized.

Copy link

GeoffAbbott commented Dec 7, 2016

Very helpful, A+

@huynp

This comment has been minimized.

Copy link

huynp commented Jan 17, 2017

In case you need array of states with id, like I did.
[{"id":0,"text":"Alabama"},{"id":1,"text":"Alaska"},{"id":2,"text":"American Samoa"},{"id":3,"text":"Arizona"},{"id":4,"text":"Arkansas"},{"id":5,"text":"California"},{"id":6,"text":"Colorado"},{"id":7,"text":"Connecticut"},{"id":8,"text":"Delaware"},{"id":9,"text":"District Of Columbia"},{"id":10,"text":"Federated States Of Micronesia"},{"id":11,"text":"Florida"},{"id":12,"text":"Georgia"},{"id":13,"text":"Guam"},{"id":14,"text":"Hawaii"},{"id":15,"text":"Idaho"},{"id":16,"text":"Illinois"},{"id":17,"text":"Indiana"},{"id":18,"text":"Iowa"},{"id":19,"text":"Kansas"},{"id":20,"text":"Kentucky"},{"id":21,"text":"Louisiana"},{"id":22,"text":"Maine"},{"id":23,"text":"Marshall Islands"},{"id":24,"text":"Maryland"},{"id":25,"text":"Massachusetts"},{"id":26,"text":"Michigan"},{"id":27,"text":"Minnesota"},{"id":28,"text":"Mississippi"},{"id":29,"text":"Missouri"},{"id":30,"text":"Montana"},{"id":31,"text":"Nebraska"},{"id":32,"text":"Nevada"},{"id":33,"text":"New Hampshire"},{"id":34,"text":"New Jersey"},{"id":35,"text":"New Mexico"},{"id":36,"text":"New York"},{"id":37,"text":"North Carolina"},{"id":38,"text":"North Dakota"},{"id":39,"text":"Northern Mariana Islands"},{"id":40,"text":"Ohio"},{"id":41,"text":"Oklahoma"},{"id":42,"text":"Oregon"},{"id":43,"text":"Palau"},{"id":44,"text":"Pennsylvania"},{"id":45,"text":"Puerto Rico"},{"id":46,"text":"Rhode Island"},{"id":47,"text":"South Carolina"},{"id":48,"text":"South Dakota"},{"id":49,"text":"Tennessee"},{"id":50,"text":"Texas"},{"id":51,"text":"Utah"},{"id":52,"text":"Vermont"},{"id":53,"text":"Virgin Islands"},{"id":54,"text":"Virginia"},{"id":55,"text":"Washington"},{"id":56,"text":"West Virginia"},{"id":57,"text":"Wisconsin"},{"id":58,"text":"Wyoming"}]

@cumanzor

This comment has been minimized.

Copy link

cumanzor commented Feb 3, 2017

Thanks!

@ninamorena

This comment has been minimized.

Copy link

ninamorena commented Feb 9, 2017

Super awesome!!

@AntonisFK

This comment has been minimized.

Copy link

AntonisFK commented Feb 16, 2017

DOPE

@conixit

This comment has been minimized.

Copy link

conixit commented Mar 2, 2017

I needed this for Mike Tuupola's Edit Select (in-place) - {'AL' : 'AL', 'AK' : 'AK', 'AS' : 'AS', 'AZ' : 'AZ', 'AR' : 'AR', 'CA' : 'CA', 'CO' : 'CO', 'CT' : 'CT', 'DE' : 'DE', 'DC' : 'DC', 'FM' : 'FM', 'FL' : 'FL', 'GA' : 'GA', 'GU' : 'GU', 'HI' : 'HI', 'ID' : 'ID', 'IL' : 'IL', 'IN' : 'IN', 'IA' : 'IA', 'KS' : 'KS', 'KY' : 'KY', 'LA' : 'LA', 'ME' : 'ME', 'MH' : 'MH', 'MD' : 'MD', 'MA' : 'MA', 'MI' : 'MI', 'MN' : 'MN', 'MS' : 'MS', 'MO' : 'MO', 'MT' : 'MT', 'NE' : 'NE', 'NV' : 'NV', 'NH' : 'NH', 'NJ' : 'NJ', 'NM' : 'NM', 'NY' : 'NY', 'NC' : 'NC', 'ND' : 'ND', 'MP' : 'MP', 'OH' : 'OH', 'OK' : 'OK', 'OR' : 'OR', 'PW' : 'PW', 'PA' : 'PA', 'PR' : 'PR', 'RI' : 'RI', 'SC' : 'SC', 'SD' : 'SD', 'TN' : 'TN', 'TX' : 'TX', 'UT' : 'UT', 'VT' : 'VT', 'VI' : 'VI', 'VA' : 'VA', 'WA' : 'WA', 'WV' : 'WV', 'WI' : 'WI', 'WY' : 'WY'}

@msomu

This comment has been minimized.

Copy link

msomu commented Mar 3, 2017

@ghost

This comment has been minimized.

Copy link

ghost commented Mar 29, 2017

I have created US State and City json Here according to this website information

@tataencu

This comment has been minimized.

Copy link

tataencu commented Apr 6, 2017

Created a repo with all the counties & cities & zipcodes grouped by state, which you can find at: https://github.com/tataencu/us_cities

@Type1J

This comment has been minimized.

Copy link

Type1J commented Apr 19, 2017

Thanks!

@peshoicov

This comment has been minimized.

Copy link

peshoicov commented Apr 20, 2017

Why do these lists contain territories and not only the states, as the title of the gist says ???

It created problems at MY work cause I used the list directly and then we had shipping problems, cause we ship only to the official 50 states!!!

Why?? Whyyyyy???

@Dave-ts

This comment has been minimized.

Copy link

Dave-ts commented May 2, 2017

Thank you for your time in putting this together.

@kaganjd

This comment has been minimized.

Copy link

kaganjd commented May 6, 2017

bless u prayer hands emoji

@reflectivelayer

This comment has been minimized.

Copy link

reflectivelayer commented May 13, 2017

Thanks for saving me time!

@jwmapana

This comment has been minimized.

Copy link

jwmapana commented Jun 7, 2017

Bless your soul for doing this!

@agezew

This comment has been minimized.

Copy link

agezew commented Jul 29, 2017

Why do these lists contain territories and not only the states, as the title of the gist says ???

@jmartinter

This comment has been minimized.

Copy link

jmartinter commented Sep 26, 2017

Thanks for sharing!

@dmi3y

This comment has been minimized.

Copy link

dmi3y commented Oct 6, 2017

Baller!

@kareemkibue

This comment has been minimized.

Copy link

kareemkibue commented Oct 10, 2017

pefect!!

@LuisSevillano

This comment has been minimized.

Copy link

LuisSevillano commented Oct 16, 2017

Here the states by id in a javascript object extracted from the Wikipedia [List of U.S. state abbreviations].(https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations)

var states = {"10":"Delaware","11":"District of Columbia","12":"Florida","13":"Georgia","15":"Hawaii","16":"Idaho","17":"Illinois","18":"Indiana","19":"Iowa","20":"Kansas","21":"Kentucky","22":"Louisiana","23":"Maine","24":"Maryland","25":"Massachusetts","26":"Michigan","27":"Minnesota","28":"Mississippi","29":"Missouri","30":"Montana","31":"Nebraska","32":"Nevada","33":"New Hampshire","34":"New Jersey","35":"New Mexico","36":"New York","37":"North Carolina","38":"North Dakota","39":"Ohio","40":"Oklahoma","41":"Oregon","42":"Pennsylvania","44":"Rhode Island","45":"South Carolina","46":"South Dakota","47":"Tennessee","48":"Texas","49":"Utah","50":"Vermont","51":"Virginia","53":"Washington","54":"West Virginia","55":"Wisconsin","56":"Wyoming","60":"American Samoa","64":"Micronesia","66":"Guam","67":"Johnston Atoll","68":"Marshall Islands","69":"Northern Mariana Islands","70":"Palau","71":"Midway Islands","72":"Puerto Rico","74":"U.S. Minor Outlying Islands","76":"Navassa Island","78":"U.S. Virgin Islands","79":"Wake Island","81":"Baker Island","84":"Howland Island","86":"Jarvis Island","89":"Kingman Reef","95":"Palmyra Atoll[4]","01":"Alabama","02":"Alaska","04":"Arizona","05":"Arkansas","06":"California","08":"Colorado","09":"Connecticut"}

This way you could access to the name state name this way states[state.id] where state.id = "01".

@kspearrin

This comment has been minimized.

Copy link

kspearrin commented Oct 18, 2017

Lowercase name => code mapping:

var isoStates = {
  alabama: 'AL',
  alaska: 'AK',
  'american samoa': 'AS',
  arizona: 'AZ',
  arkansas: 'AR',
  california: 'CA',
  colorado: 'CO',
  connecticut: 'CT',
  delaware: 'DE',
  'district of columbia': 'DC',
  'federated states of micronesia': 'FM',
  florida: 'FL',
  georgia: 'GA',
  guam: 'GU',
  hawaii: 'HI',
  idaho: 'ID',
  illinois: 'IL',
  indiana: 'IN',
  iowa: 'IA',
  kansas: 'KS',
  kentucky: 'KY',
  louisiana: 'LA',
  maine: 'ME',
  'marshall islands': 'MH',
  maryland: 'MD',
  massachusetts: 'MA',
  michigan: 'MI',
  minnesota: 'MN',
  mississippi: 'MS',
  missouri: 'MO',
  montana: 'MT',
  nebraska: 'NE',
  nevada: 'NV',
  'new hampshire': 'NH',
  'new jersey': 'NJ',
  'new mexico': 'NM',
  'new york': 'NY',
  'north carolina': 'NC',
  'north dakota': 'ND',
  'northern mariana islands': 'MP',
  ohio: 'OH',
  oklahoma: 'OK',
  oregon: 'OR',
  palau: 'PW',
  pennsylvania: 'PA',
  'puerto rico': 'PR',
  'rhode island': 'RI',
  'south carolina': 'SC',
  'south dakota': 'SD',
  tennessee: 'TN',
  texas: 'TX',
  utah: 'UT',
  vermont: 'VT',
  'virgin islands': 'VI',
  virginia: 'VA',
  washington: 'WA',
  'west virginia': 'WV',
  wisconsin: 'WI',
  wyoming: 'WY'
};
@MoatazAbdAlmageed

This comment has been minimized.

Copy link

MoatazAbdAlmageed commented Oct 19, 2017

USA_states: {
"AL": {
"name": "Alabama",
"abbreviation": "AL"
},
"AK": {
"name": "Alaska",
"abbreviation": "AK"
},
"AS": {
"name": "American Samoa",
"abbreviation": "AS"
},
"AZ": {
"name": "Arizona",
"abbreviation": "AZ"
},
"AR": {
"name": "Arkansas",
"abbreviation": "AR"
},
"CA": {
"name": "California",
"abbreviation": "CA"
},
"CO": {
"name": "Colorado",
"abbreviation": "CO"
},
"CT": {
"name": "Connecticut",
"abbreviation": "CT"
},
"DE": {
"name": "Delaware",
"abbreviation": "DE"
},
"DC": {
"name": "District Of Columbia",
"abbreviation": "DC"
},
"FM": {
"name": "Federated States Of Micronesia",
"abbreviation": "FM"
},
"FL": {
"name": "Florida",
"abbreviation": "FL"
},
"GA": {
"name": "Georgia",
"abbreviation": "GA"
},
"GU": {
"name": "Guam",
"abbreviation": "GU"
},
"HI": {
"name": "Hawaii",
"abbreviation": "HI"
},
"ID": {
"name": "Idaho",
"abbreviation": "ID"
},
"IL": {
"name": "Illinois",
"abbreviation": "IL"
},
"IN": {
"name": "Indiana",
"abbreviation": "IN"
},
"IA": {
"name": "Iowa",
"abbreviation": "IA"
},
"KS": {
"name": "Kansas",
"abbreviation": "KS"
},
"KY": {
"name": "Kentucky",
"abbreviation": "KY"
},
"LA": {
"name": "Louisiana",
"abbreviation": "LA"
},
"ME": {
"name": "Maine",
"abbreviation": "ME"
},
"MH": {
"name": "Marshall Islands",
"abbreviation": "MH"
},
"MD": {
"name": "Maryland",
"abbreviation": "MD"
},
"MA": {
"name": "Massachusetts",
"abbreviation": "MA"
},
"MI": {
"name": "Michigan",
"abbreviation": "MI"
},
"MN": {
"name": "Minnesota",
"abbreviation": "MN"
},
"MS": {
"name": "Mississippi",
"abbreviation": "MS"
},
"MO": {
"name": "Missouri",
"abbreviation": "MO"
},
"MT": {
"name": "Montana",
"abbreviation": "MT"
},
"NE": {
"name": "Nebraska",
"abbreviation": "NE"
},
"NV": {
"name": "Nevada",
"abbreviation": "NV"
},
"NH": {
"name": "New Hampshire",
"abbreviation": "NH"
},
"NJ": {
"name": "New Jersey",
"abbreviation": "NJ"
},
"NM": {
"name": "New Mexico",
"abbreviation": "NM"
},
"NY": {
"name": "New York",
"abbreviation": "NY"
},
"NC": {
"name": "North Carolina",
"abbreviation": "NC"
},
"ND": {
"name": "North Dakota",
"abbreviation": "ND"
},
"MP": {
"name": "Northern Mariana Islands",
"abbreviation": "MP"
},
"OH": {
"name": "Ohio",
"abbreviation": "OH"
},
"OK": {
"name": "Oklahoma",
"abbreviation": "OK"
},
"OR": {
"name": "Oregon",
"abbreviation": "OR"
},
"PW": {
"name": "Palau",
"abbreviation": "PW"
},
"PA": {
"name": "Pennsylvania",
"abbreviation": "PA"
},
"PR": {
"name": "Puerto Rico",
"abbreviation": "PR"
},
"RI": {
"name": "Rhode Island",
"abbreviation": "RI"
},
"SC": {
"name": "South Carolina",
"abbreviation": "SC"
},
"SD": {
"name": "South Dakota",
"abbreviation": "SD"
},
"TN": {
"name": "Tennessee",
"abbreviation": "TN"
},
"TX": {
"name": "Texas",
"abbreviation": "TX"
},
"UT": {
"name": "Utah",
"abbreviation": "UT"
},
"VT": {
"name": "Vermont",
"abbreviation": "VT"
},
"VI": {
"name": "Virgin Islands",
"abbreviation": "VI"
},
"VA": {
"name": "Virginia",
"abbreviation": "VA"
},
"WA": {
"name": "Washington",
"abbreviation": "WA"
},
"WV": {
"name": "West Virginia",
"abbreviation": "WV"
},
"WI": {
"name": "Wisconsin",
"abbreviation": "WI"
},
"WY": {
"name": "Wyoming",
"abbreviation": "WY"
}
}

@andrey-zelenin

This comment has been minimized.

Copy link

andrey-zelenin commented Nov 4, 2017

Thanks

@kristianb21

This comment has been minimized.

Copy link

kristianb21 commented Dec 5, 2017

Thanks @huynp

@michaelqiji

This comment has been minimized.

Copy link

michaelqiji commented Dec 11, 2017

with Canada.
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
"DC": "District Of Columbia",
"FM": "Federated States Of Micronesia",
"FL": "Florida",
"GA": "Georgia",
"GU": "Guam",
"HI": "Hawaii",
"ID": "Idaho",
"IL": "Illinois",
"IN": "Indiana",
"IA": "Iowa",
"KS": "Kansas",
"KY": "Kentucky",
"LA": "Louisiana",
"ME": "Maine",
"MH": "Marshall Islands",
"MD": "Maryland",
"MA": "Massachusetts",
"MI": "Michigan",
"MN": "Minnesota",
"MS": "Mississippi",
"MO": "Missouri",
"MT": "Montana",
"NE": "Nebraska",
"NV": "Nevada",
"NH": "New Hampshire",
"NJ": "New Jersey",
"NM": "New Mexico",
"NY": "New York",
"NC": "North Carolina",
"ND": "North Dakota",
"MP": "Northern Mariana Islands",
"OH": "Ohio",
"OK": "Oklahoma",
"OR": "Oregon",
"PW": "Palau",
"PA": "Pennsylvania",
"PR": "Puerto Rico",
"RI": "Rhode Island",
"SC": "South Carolina",
"SD": "South Dakota",
"TN": "Tennessee",
"TX": "Texas",
"UT": "Utah",
"VT": "Vermont",
"VI": "Virgin Islands",
"VA": "Virginia",
"WA": "Washington",
"WV": "West Virginia",
"WI": "Wisconsin",
"WY": "Wyoming",
"AB": "Alberta",
"BC": "British Columbia",
"MB": "Manitoba",
"NB": "New Brunswick",
"NL": "Newfoundland and Labrador",
"NT": "Northwest Territories",
"NS": "Nova Scotia",
"NU": "Nunavut",
"ON": "Ontario",
"PE": "Prince Edward Island",
"QC": "Quebec",
"SK": "Saskatchewan",
"YT": "Yukon Territory"
}

@ssultan

This comment has been minimized.

Copy link

ssultan commented Jan 4, 2018

All the States of US and Canada: lowercase state name -> Upper case state short form in swift

static let StatesDictionary: [String : String] = [
"alabama": "AL",
"alaska": "AK",
"american samoa": "AS",
"arizona": "AZ",
"arkansas": "AR",
"california": "CA",
"colorado": "CO",
"connecticut": "CT",
"delaware": "DE",
"district of columbia": "DC",
"federated states of micronesia": "FM",
"florida": "FL",
"georgia": "GA",
"guam": "GU",
"hawaii": "HI",
"idaho": "ID",
"illinois": "IL",
"indiana": "IN",
"iowa": "IA",
"kansas": "KS",
"kentucky": "KY",
"louisiana": "LA",
"maine": "ME",
"marshall islands": "MH",
"maryland": "MD",
"massachusetts": "MA",
"michigan": "MI",
"minnesota": "MN",
"mississippi": "MS",
"missouri": "MO",
"montana": "MT",
"nebraska": "NE",
"nevada": "NV",
"new hampshire": "NH",
"new kersey": "NJ",
"new mexico": "NM",
"new york": "NY",
"north carolina": "NC",
"north dakota": "ND",
"northern mariana islands": "MP",
"ohio": "OH",
"oklahoma": "OK",
"oregon": "OR",
"palau": "PW",
"pennsylvania": "PA",
"puerto rico": "PR",
"rhode island": "RI",
"south carolina": "SC",
"south dakota": "SD",
"tennessee": "TN",
"texas": "TX",
"utah": "UT",
"vermont": "VT",
"virgin islands": "VI",
"virginia": "VA",
"washington": "WA",
"west virginia": "WV",
"wisconsin": "WI",
"wyoming": "WY",
"alberta" : "AB",
"british columbia" : "BC",
"manitoba" : "MB",
"new brunswick" : "NB",
"newfoundland" : "NL",
"nova scotia" : "NS" ,
"nunavut" : "NU",
"ontario" : "ON" ,
"prince edward island" : "PE" ,
"quebec" : "QC" ,
"saskatchewan" : "SK" ,
"northwest territories" : "NT" ,
"yukon territory" : "YT"]

@mercurytw

This comment has been minimized.

Copy link

mercurytw commented Feb 11, 2018

cheers :)

@mikermcneil

This comment has been minimized.

Copy link

mikermcneil commented Feb 13, 2018

\o/

@MissingHandle

This comment has been minimized.

Copy link

MissingHandle commented Mar 1, 2018

💯 - woot!

@cdleon

This comment has been minimized.

Copy link

cdleon commented Apr 13, 2018

In collection form

export const STATES = [
  {
    label: 'AL',
    value: 'AL'
  },
  {
    label: 'AK',
    value: 'AK'
  },
  {
    label: 'AS',
    value: 'AS'
  },
  {
    label: 'AZ',
    value: 'AZ'
  },
  {
    label: 'AR',
    value: 'AR'
  },
  {
    label: 'CA',
    value: 'CA'
  },
  {
    label: 'CO',
    value: 'CO'
  },
  {
    label: 'CT',
    value: 'CT'
  },
  {
    label: 'DE',
    value: 'DE'
  },
  {
    label: 'DC',
    value: 'DC'
  },
  {
    label: 'FM',
    value: 'FM'
  },
  {
    label: 'FL',
    value: 'FL'
  },
  {
    label: 'GA',
    value: 'GA'
  },
  {
    label: 'GU',
    value: 'GU'
  },
  {
    label: 'HI',
    value: 'HI'
  },
  {
    label: 'ID',
    value: 'ID'
  },
  {
    label: 'IL',
    value: 'IL'
  },
  {
    label: 'IN',
    value: 'IN'
  },
  {
    label: 'IA',
    value: 'IA'
  },
  {
    label: 'KS',
    value: 'KS'
  },
  {
    label: 'KY',
    value: 'KY'
  },
  {
    label: 'LA',
    value: 'LA'
  },
  {
    label: 'ME',
    value: 'ME'
  },
  {
    label: 'MH',
    value: 'MH'
  },
  {
    label: 'MD',
    value: 'MD'
  },
  {
    label: 'MA',
    value: 'MA'
  },
  {
    label: 'MI',
    value: 'MI'
  },
  {
    label: 'MN',
    value: 'MN'
  },
  {
    label: 'MS',
    value: 'MS'
  },
  {
    label: 'MO',
    value: 'MO'
  },
  {
    label: 'MT',
    value: 'MT'
  },
  {
    label: 'NE',
    value: 'NE'
  },
  {
    label: 'NV',
    value: 'NV'
  },
  {
    label: 'NH',
    value: 'NH'
  },
  {
    label: 'NJ',
    value: 'NJ'
  },
  {
    label: 'NM',
    value: 'NM'
  },
  {
    label: 'NY',
    value: 'NY'
  },
  {
    label: 'NC',
    value: 'NC'
  },
  {
    label: 'ND',
    value: 'ND'
  },
  {
    label: 'MP',
    value: 'MP'
  },
  {
    label: 'OH',
    value: 'OH'
  },
  {
    label: 'OK',
    value: 'OK'
  },
  {
    label: 'OR',
    value: 'OR'
  },
  {
    label: 'PW',
    value: 'PW'
  },
  {
    label: 'PA',
    value: 'PA'
  },
  {
    label: 'PR',
    value: 'PR'
  },
  {
    label: 'RI',
    value: 'RI'
  },
  {
    label: 'SC',
    value: 'SC'
  },
  {
    label: 'SD',
    value: 'SD'
  },
  {
    label: 'TN',
    value: 'TN'
  },
  {
    label: 'TX',
    value: 'TX'
  },
  {
    label: 'UT',
    value: 'UT'
  },
  {
    label: 'VT',
    value: 'VT'
  },
  {
    label: 'VI',
    value: 'VI'
  },
  {
    label: 'VA',
    value: 'VA'
  },
  {
    label: 'WA',
    value: 'WA'
  },
  {
    label: 'WV',
    value: 'WV'
  },
  {
    label: 'WI',
    value: 'WI'
  },
  {
    label: 'WY',
    value: 'WY'
  }
]
@ghost

This comment has been minimized.

Copy link

ghost commented Apr 18, 2018

Thanks all!

@wallawe

This comment has been minimized.

Copy link

wallawe commented Apr 26, 2018

States with slugs:

[
  {name: "Alabama", slug: "alabama"},
  {name: "Alaska", slug: "alaska"},
  {name: "American Samoa", slug: "american-samoa"},
  {name: "Arizona", slug: "arizona"},
  {name: "Arkansas", slug: "arkansas"},
  {name: "California", slug: "california"},
  {name: "Colorado", slug: "colorado"},
  {name: "Connecticut", slug: "connecticut"},
  {name: "Delaware", slug: "delaware"},
  {name: "District Of Columbia", slug: "district-of-columbia"},
  {name: "Federated States Of Micronesia", slug: "federated-states-of-micronesia"},
  {name: "Florida", slug: "florida"},
  {name: "Georgia", slug: "georgia"},
  {name: "Guam", slug: "guam"},
  {name: "Hawaii", slug: "hawaii"},
  {name: "Idaho", slug: "idaho"},
  {name: "Illinois", slug: "illinois"},
  {name: "Indiana", slug: "indiana"},
  {name: "Iowa", slug: "iowa"},
  {name: "Kansas", slug: "kansas"},
  {name: "Kentucky", slug: "kentucky"},
  {name: "Louisiana", slug: "louisiana"},
  {name: "Maine", slug: "maine"},
  {name: "Marshall Islands", slug: "marshall-islands"},
  {name: "Maryland", slug: "maryland"},
  {name: "Massachusetts", slug: "massachusetts"},
  {name: "Michigan", slug: "michigan"},
  {name: "Minnesota", slug: "minnesota"},
  {name: "Mississippi", slug: "mississippi"},
  {name: "Missouri", slug: "missouri"},
  {name: "Montana", slug: "montana"},
  {name: "Nebraska", slug: "nebraska"},
  {name: "Nevada", slug: "nevada"},
  {name: "New Hampshire", slug: "new-hampshire"},
  {name: "New Jersey", slug: "new-jersey"},
  {name: "New Mexico", slug: "new-mexico"},
  {name: "New York", slug: "new-york"},
  {name: "North Carolina", slug: "north-carolina"},
  {name: "North Dakota", slug: "north-dakota"},
  {name: "Northern Mariana Islands", slug: "northern-mariana-islands"},
  {name: "Ohio", slug: "ohio"},
  {name: "Oklahoma", slug: "oklahoma"},
  {name: "Oregon", slug: "oregon"},
  {name: "Palau", slug: "palau"},
  {name: "Pennsylvania", slug: "pennsylvania"},
  {name: "Puerto Rico", slug: "puerto-rico"},
  {name: "Rhode Island", slug: "rhode-island"},
  {name: "South Carolina", slug: "south-carolina"},
  {name: "South Dakota", slug: "south-dakota"},
  {name: "Tennessee", slug: "tennessee"},
  {name: "Texas", slug: "texas"},
  {name: "Utah", slug: "utah"},
  {name: "Vermont", slug: "vermont"},
  {name: "Virgin Islands", slug: "virgin-islands"},
  {name: "Virginia", slug: "virginia"},
  {name: "Washington", slug: "washington"},
  {name: "West Virginia", slug: "west-virginia"},
  {name: "Wisconsin", slug: "wisconsin"},
  {name: "Wyoming", slug: "wyoming"}
]
@zhisme

This comment has been minimized.

Copy link

zhisme commented Apr 27, 2018

in case you also need street types.

https://gist.github.com/zhisme/718dc44cb2b507949f034c5c958550a4

{
"ALY": "Alley",
"AVE": "Avenue",
"BLVD": "Boulevard",
"CSWY": "Causeway",
"CIR": "Circle",
"CT": "Court",
"CV": "Cove",
"CRES": "CRES",
"DR": "Drive",
"HWY": "Highway",
"LN": "Lane",
"LOOP": "Loop",
"MHP": "MHP",
"PARK": "Park",
"PKWY": "Parkway",
"PL": "Place",
"RD": "Road",
"SQ": "Square",
"ST": "Street",
"TER": "Terrace",
"TRL": "Trail",
"WAY": "Ways"
}
@NugzarGaguliya

This comment has been minimized.

Copy link

NugzarGaguliya commented May 29, 2018

50 states

[
  {
    "name": "Alabama",
    "abbr": "AL"
  },
  {
    "name": "Alaska",
    "abbr": "AK"
  },
  {
    "name": "Arizona ",
    "abbr": "AZ"
  },
  {
    "name": "Arkansas",
    "abbr": "AR"
  },
  {
    "name": "California ",
    "abbr": "CA"
  },
  {
    "name": "Colorado ",
    "abbr": "CO"
  },
  {
    "name": "Connecticut",
    "abbr": "CT"
  },
  {
    "name": "Delaware",
    "abbr": "DE"
  },
  {
    "name": "Florida",
    "abbr": "FL"
  },
  {
    "name": "Georgia",
    "abbr": "GA"
  },
  {
    "name": "Hawaii",
    "abbr": "HI"
  },
  {
    "name": "Idaho",
    "abbr": "ID"
  },
  {
    "name": "Illinois",
    "abbr": "IL"
  },
  {
    "name": "Indiana",
    "abbr": "IN"
  },
  {
    "name": "Iowa",
    "abbr": "IA"
  },
  {
    "name": "Kansas",
    "abbr": "KS"
  },
  {
    "name": "Kentucky",
    "abbr": "KY"
  },
  {
    "name": "Louisiana",
    "abbr": "LA"
  },
  {
    "name": "Maine",
    "abbr": "ME"
  },
  {
    "name": "Maryland",
    "abbr": "MD"
  },
  {
    "name": "Massachusetts",
    "abbr": "MA"
  },
  {
    "name": "Michigan",
    "abbr": "MI"
  },
  {
    "name": "Minnesota",
    "abbr": "MN"
  },
  {
    "name": "Mississippi",
    "abbr": "MS"
  },
  {
    "name": "Missouri",
    "abbr": "MO"
  },
  {
    "name": "Montana",
    "abbr": "MT"
  },
  {
    "name": "Nebraska",
    "abbr": "NE"
  },
  {
    "name": "Nevada",
    "abbr": "NV"
  },
  {
    "name": "New Hampshire",
    "abbr": "NH"
  },
  {
    "name": "New Jersey",
    "abbr": "NJ"
  },
  {
    "name": "New Mexico",
    "abbr": "NM"
  },
  {
    "name": "New York",
    "abbr": "NY"
  },
  {
    "name": "North Carolina",
    "abbr": "NC"
  },
  {
    "name": "North Dakota",
    "abbr": "ND"
  },
  {
    "name": "Ohio",
    "abbr": "OH"
  },
  {
    "name": "Oklahoma",
    "abbr": "OK"
  },
  {
    "name": "Oregon",
    "abbr": "OR"
  },
  {
    "name": "Pennsylvania",
    "abbr": "PA"
  },
  {
    "name": "Rhode Island",
    "abbr": "RI"
  },
  {
    "name": "South Carolina",
    "abbr": "SC"
  },
  {
    "name": "South Dakota",
    "abbr": "SD"
  },
  {
    "name": "Tennessee",
    "abbr": "TN"
  },
  {
    "name": "Texas",
    "abbr": "TX"
  },
  {
    "name": "Utah",
    "abbr": "UT"
  },
  {
    "name": "Vermont",
    "abbr": "VT"
  },
  {
    "name": "Virginia ",
    "abbr": "VA"
  },
  {
    "name": "Washington",
    "abbr": "WA"
  },
  {
    "name": "West Virginia",
    "abbr": "WV"
  },
  {
    "name": "Wisconsin",
    "abbr": "WI"
  },
  {
    "name": "Wyoming",
    "abbr": "WY"
  }
]
@nicothed

This comment has been minimized.

Copy link

nicothed commented May 31, 2018

The 2 lists in very compact form (without the quotes, when unnecessary):

USstates  = {AL: "Alabama", AK: "Alaska", AS: "American Samoa", AZ: "Arizona", AR: "Arkansas", CA: "California", CO: "Colorado", CT: "Connecticut", DE: "Delaware", DC: "District Of Columbia", FM: "Federated States Of Micronesia", FL: "Florida", GA: "Georgia", GU: "Guam", HI: "Hawaii", ID: "Idaho", IL: "Illinois", IN: "Indiana", IA: "Iowa", KS: "Kansas", KY: "Kentucky", LA: "Louisiana", ME: "Maine", MH: "Marshall Islands", MD: "Maryland", MA: "Massachusetts", MI: "Michigan", MN: "Minnesota", MS: "Mississippi", MO: "Missouri", MT: "Montana", NE: "Nebraska", NV: "Nevada", NH: "New Hampshire", NJ: "New Jersey", NM: "New Mexico", NY: "New York", NC: "North Carolina", ND: "North Dakota", MP: "Northern Mariana Islands", OH: "Ohio", OK: "Oklahoma", OR: "Oregon", PW: "Palau", PA: "Pennsylvania", PR: "Puerto Rico", RI: "Rhode Island", SC: "South Carolina", SD: "South Dakota", TN: "Tennessee", TX: "Texas", UT: "Utah", VT: "Vermont", VI: "Virgin Islands", VA: "Virginia", WA: "Washington", WV: "West Virginia", WI: "Wisconsin", WY: "Wyoming"}

USstates2 = {Alabama: "AL", Alaska: "AK", "American Samoa": "AS", Arizona: "AZ", Arkansas: "AR", California: "CA", Colorado: "CO", Connecticut: "CT", Delaware: "DE", "District Of Columbia": "DC", "Federated States Of Micronesia": "FM", Florida: "FL", Georgia: "GA", Guam: "GU", Hawaii: "HI", Idaho: "ID", Illinois: "IL", Indiana: "IN", Iowa: "IA", Kansas: "KS", Kentucky: "KY", Louisiana: "LA", Maine: "ME", "Marshall Islands": "MH", Maryland: "MD", Massachusetts: "MA", Michigan: "MI", Minnesota: "MN", Mississippi: "MS", Missouri: "MO", Montana: "MT", Nebraska: "NE", Nevada: "NV", "New Hampshire": "NH", "New Jersey": "NJ", "New Mexico": "NM", "New York": "NY", "North Carolina": "NC", "North Dakota": "ND", "Northern Mariana Islands": "MP", Ohio: "OH", Oklahoma: "OK", Oregon: "OR", Palau: "PW", Pennsylvania: "PA", "Puerto Rico": "PR", "Rhode Island": "RI", "South Carolina": "SC", "South Dakota": "SD", Tennessee: "TN", Texas: "TX", Utah: "UT", Vermont: "VT", "Virgin Islands": "VI", Virginia: "VA", Washington: "WA", "West Virginia": "WV", Wisconsin: "WI", Wyoming: "WY"}

@nharrisanalyst

This comment has been minimized.

Copy link

nharrisanalyst commented Jun 24, 2018

had to make this for a project thought I would add it here for future help this is state name to fips code helpful for anyone working with geo data.

var states_fips_hash =
{
'Alabama': '01',
'Alaska': '02',
'Arizona': '04',
'Arkansas': '05',
'California': '06',
'Colorado': '08',
'Connecticut': '09',
'Delaware': '10',
'District Of Columbia': '11',
'Florida': '12',
'Georgia': '13',
'Hawaii': '15',
'Idaho': '16',
'Illinois': '17',
'Indiana': '18',
'Iowa': '19',
'Kansas': '20',
'Kentucky': '21',
'Louisiana': '22',
'Maine': '23',
'Maryland': '24',
'Massachusetts': '25',
'Michigan': '26',
'Minnesota': '27',
'Mississippi': '28',
'Missouri': '29',
'Montana': '30',
'Nebraska': '31',
'Nevada': '32',
'New Hampshire': '33',
'New Jersey': '34',
'New Mexico': '35',
'New York': '36',
'North Carolina': '37',
'North Dakota': '38',
'Ohio': '39',
'Oklahoma': '40',
'Oregon': '41',
'Pennsylvania': '42',
'Rhode Island': '44',
'South Carolina': '45',
'South Dakota': '46',
'Tennessee': '47',
'Texas': '48',
'Utah': '49',
'Vermont': '50',
'Virginia': '51',
'Washington': '53',
'West Virginia': '54',
'Wisconsin': '55',
'Wyoming': '56'
}

@micah-akpan

This comment has been minimized.

Copy link

micah-akpan commented Jul 8, 2018

Thanks for this!

@dsoverby1986

This comment has been minimized.

Copy link

dsoverby1986 commented Jul 10, 2018

var states = [
    { name: 'Alabama', abbrev: 'AL' },
    { name: 'Alaska', abbrev: 'AK' },
    { name: 'Arizona', abbrev: 'AZ' },
    { name: 'Arkansas', abbrev: 'AR' },
    { name: 'California', abbrev: 'CA' },
    { name: 'Colorado', abbrev: 'CO' },
    { name: 'Connecticut', abbrev: 'CT' },
    { name: 'Delaware', abbrev: 'DE' },
    { name: 'Florida', abbrev: 'FL' },
    { name: 'Georgia', abbrev: 'GA' },
    { name: 'Hawaii', abbrev: 'HI' },
    { name: 'Idaho', abbrev: 'ID' },
    { name: 'Illinois', abbrev: 'IL' },
    { name: 'Indiana', abbrev: 'IN' },
    { name: 'Iowa', abbrev: 'IA' },
    { name: 'Kansas', abbrev: 'KS' },
    { name: 'Kentucky', abbrev: 'KY' },
    { name: 'Louisiana', abbrev: 'LA' },
    { name: 'Maine', abbrev: 'ME' },
    { name: 'Maryland', abbrev: 'MD' },
    { name: 'Massachusetts', abbrev: 'MA' },
    { name: 'Michigan', abbrev: 'MI' },
    { name: 'Minnesota', abbrev: 'MN' },
    { name: 'Mississippi', abbrev: 'MS' },
    { name: 'Missouri', abbrev: 'MO' },
    { name: 'Montana', abbrev: 'MT' },
    { name: 'Nebraska', abbrev: 'NE' },
    { name: 'Nevada', abbrev: 'NV' },
    { name: 'New Hampshire', abbrev: 'NH' },
    { name: 'New Jersey', abbrev: 'NJ' },
    { name: 'New Mexico', abbrev: 'NM' },
    { name: 'New York', abbrev: 'NY' },
    { name: 'North Carolina', abbrev: 'NC' },
    { name: 'North Dakota', abbrev: 'ND' },
    { name: 'Ohio', abbrev: 'OH' },
    { name: 'Oklahoma', abbrev: 'OK' },
    { name: 'Oregon', abbrev: 'OR' },
    { name: 'Pennsylvania', abbrev: 'PA' },
    { name: 'Rhode Island', abbrev: 'RI' },
    { name: 'South Carolina', abbrev: 'SC' },
    { name: 'South Dakota', abbrev: 'SD' },
    { name: 'Tennessee', abbrev: 'TN' },
    { name: 'Texas', abbrev: 'TX' },
    { name: 'Utah', abbrev: 'UT' },
    { name: 'Vermont', abbrev: 'VT' },
    { name: 'Virginia', abbrev: 'VA' },
    { name: 'Washington', abbrev: 'WA' },
    { name: 'West Virginia', abbrev: 'WV' },
    { name: 'Wisconsin', abbrev: 'WI' },
    { name: 'Wyoming', abbrev: 'WY' }
];

https://gist.github.com/dsoverby1986/df89c1ed31f3b74b1b85c73bfae1d095

var stateCapitals = [
	{ name: 'Montgomery', stateAbbrev: 'AL' },
	{ name: 'Juneau', stateAbbrev: 'AK' },
	{ name: 'Phoenix', stateAbbrev: 'AZ' },
	{ name: 'Little Rock', stateAbbrev: 'AR' },
	{ name: 'Sacramento', stateAbbrev: 'CA' },
	{ name: 'Denver', stateAbbrev: 'CO' },
	{ name: 'Hartford', stateAbbrev: 'CT' },
	{ name: 'Dover', stateAbbrev: 'DE' },
	{ name: 'Tallahassee', stateAbbrev: 'FL' },
	{ name: 'Atlanta', stateAbbrev: 'GA' },
	{ name: 'Honolulu', stateAbbrev: 'HI' },
	{ name: 'Boise', stateAbbrev: 'ID' },
	{ name: 'Springfield', stateAbbrev: 'IL' },
	{ name: 'Indianapolis', stateAbbrev: 'IN' },
	{ name: 'Des Moines', stateAbbrev: 'IA' },
	{ name: 'Topeka', stateAbbrev: 'KS' },
	{ name: 'Frankfort', stateAbbrev: 'KY' },
	{ name: 'Baton Rouge', stateAbbrev: 'LA' },
	{ name: 'Augusta', stateAbbrev: 'ME' },
	{ name: 'Annapolis', stateAbbrev: 'MD' },
	{ name: 'Boston', stateAbbrev: 'MA' },
	{ name: 'Lansing', stateAbbrev: 'MI' },
	{ name: 'Saint Paul', stateAbbrev: 'MN' },
	{ name: 'Jackson', stateAbbrev: 'MS' },
	{ name: 'Jefferson City', stateAbbrev: 'MO' },
	{ name: 'Helena', stateAbbrev: 'MT' },
	{ name: 'Lincoln', stateAbbrev: 'NE' },
	{ name: 'Carson City', stateAbbrev: 'NV' },
	{ name: 'Concord', stateAbbrev: 'NH' },
	{ name: 'Trenton', stateAbbrev: 'NJ' },
	{ name: 'Santa Fe', stateAbbrev: 'NM' },
	{ name: 'Albany', stateAbbrev: 'NY' },
	{ name: 'Raleigh', stateAbbrev: 'NC' },
	{ name: 'Bismarck', stateAbbrev: 'ND' },
	{ name: 'Columbus', stateAbbrev: 'OH' },
	{ name: 'Oklahoma City', stateAbbrev: 'OK' },
	{ name: 'Salem', stateAbbrev: 'OR' },
	{ name: 'Harrisburg', stateAbbrev: 'PA' },
	{ name: 'Providence', stateAbbrev: 'RI' },
	{ name: 'Columbia', stateAbbrev: 'SC' },
	{ name: 'Pierre', stateAbbrev: 'SD' },
	{ name: 'Nashville', stateAbbrev: 'TN' },
	{ name: 'Austin', stateAbbrev: 'TX' },
	{ name: 'Salt Lake City', stateAbbrev: 'UT' },
	{ name: 'Montpelier', stateAbbrev: 'VT' },
	{ name: 'Richmond', stateAbbrev: 'VA' },
	{ name: 'Olympia', stateAbbrev: 'WA' },
	{ name: 'Charleston', stateAbbrev: 'WV' },
	{ name: 'Madison', stateAbbrev: 'WI' },
	{ name: 'Cheyenne', stateAbbrev: 'WY' }
];

https://gist.github.com/dsoverby1986/820b7d8c40d5b81ef02a5c565ef0906f

var territoriesUS = [
	{ name: 'American Samoa', abbrev: 'AS' },
	{ name: 'Guam', abbrev: 'GU' },
	{ name: 'Northern Mariana Islands', abbrev: 'MP' },
	{ name: 'Puerto Rico', abbrev: 'PR' },
	{ name: 'U.S. Virgin Islands', abbrev: 'VI' }
];

https://gist.github.com/dsoverby1986/347ec802987764779fee9dc43b8247b1

var usTerritoryCapitals = [
	{ name: 'Pago Pago', territoryAbbrev: 'AS' },
	{ name: 'Hagåtña', territoryAbbrev: 'GU' },
	{ name: 'Saipan', territoryAbbrev: 'MP' },
	{ name: 'San Juan', territoryAbbrev: 'PR' },
	{ name: 'Charlotte Amalie', territoryAbbrev: 'VI' }
];

https://gist.github.com/dsoverby1986/2735feab355547deab1b12fe846a3d1e

@Krusheuski

This comment has been minimized.

Copy link

Krusheuski commented Aug 29, 2018

There are currently 50 states!
U.S. states. Contains id + name + iso code.

@kailashgajara

This comment has been minimized.

Copy link

kailashgajara commented Sep 5, 2018

This thread is lovely!!

@harrybanda

This comment has been minimized.

Copy link

harrybanda commented Oct 1, 2018

Thanks!!!!!!!!!!

@RobZuazua

This comment has been minimized.

@OliveIT

This comment has been minimized.

Copy link

OliveIT commented Nov 6, 2018

Thanks.

@TomasVotruba

This comment has been minimized.

Copy link

TomasVotruba commented Nov 12, 2018

Thank you 🥇

@Cariosvertel

This comment has been minimized.

Copy link

Cariosvertel commented Nov 30, 2018

Hi,
I implemented your list, but it's missing these Army states:

{ "AA": "Armed Forces Americas",
  "AE": "Armed Forces Europe",
  "AP": "Armed Forces Pacific" }
@SmellydogCoding

This comment has been minimized.

Copy link

SmellydogCoding commented Dec 9, 2018

This saved me so much time. Thank You!!!!!!

@madcarpe

This comment has been minimized.

Copy link

madcarpe commented Dec 23, 2018

You are a saint! Thank you!

@reddeguzman

This comment has been minimized.

Copy link

reddeguzman commented Jan 17, 2019

Hi. Do we have one with regions included too?

@AnalyzePlatypus

This comment has been minimized.

Copy link

AnalyzePlatypus commented Feb 19, 2019

Wooo!

@rqroz

This comment has been minimized.

Copy link

rqroz commented Mar 18, 2019

Thank you!

@cb-christopher

This comment has been minimized.

Copy link

cb-christopher commented Mar 25, 2019

Awesome!!

@Williams-Christopher

This comment has been minimized.

Copy link

Williams-Christopher commented Mar 28, 2019

This is beautiful!

@TomFaulkner

This comment has been minimized.

Copy link

TomFaulkner commented Apr 5, 2019

Thanks!

@pckilgore

This comment has been minimized.

Copy link

pckilgore commented Apr 11, 2019

thanks so much @cdleon

@GibranPolonsky

This comment has been minimized.

Copy link

GibranPolonsky commented Apr 12, 2019

Thanks so much. I really appreciate the time taken on build this gist.

@space-dweeb

This comment has been minimized.

Copy link

space-dweeb commented Apr 14, 2019

Thank you so much this saved me so much time, you're the coolest :)

@space-dweeb

This comment has been minimized.

Copy link

space-dweeb commented Apr 14, 2019

Here's a "name", "value" version for anyone needing this for a Quasar selector:

https://gist.github.com/space-dweeb/e9ddde8c26e837fdf2d1abe01e62bb8e

@SafiMed

This comment has been minimized.

Copy link

SafiMed commented May 18, 2019

In case you need it as a python tuple to be used in django model choices field for example

US_STATES_CHOICES = (
    ('AL', 'Alabama'),
    ('AK', 'Alaska'),
    ('AS', 'American Samoa'),
    ('AZ', 'Arizona'),
    ('AR', 'Arkansas'),
    ('CA', 'California'),
    ('CO', 'Colorado'),
    ('CT', 'Connecticut'),
    ('DE', 'Delaware'),
    ('DC', 'District Of Columbia'),
    ('FM', 'Federated States Of Micronesia'),
    ('FL', 'Florida'),
    ('GA', 'Georgia'),
    ('GU', 'Guam'),
    ('HI', 'Hawaii'),
    ('ID', 'Idaho'),
    ('IL', 'Illinois'),
    ('IN', 'Indiana'),
    ('IA', 'Iowa'),
    ('KS', 'Kansas'),
    ('KY', 'Kentucky'),
    ('LA', 'Louisiana'),
    ('ME', 'Maine'),
    ('MH', 'Marshall Islands'),
    ('MD', 'Maryland'),
    ('MA', 'Massachusetts'),
    ('MI', 'Michigan'),
    ('MN', 'Minnesota'),
    ('MS', 'Mississippi'),
    ('MO', 'Missouri'),
    ('MT', 'Montana'),
    ('NE', 'Nebraska'),
    ('NV', 'Nevada'),
    ('NH', 'New Hampshire'),
    ('NJ', 'New Jersey'),
    ('NM', 'New Mexico'),
    ('NY', 'New York'),
    ('NC', 'North Carolina'),
    ('ND', 'North Dakota'),
    ('MP', 'Northern Mariana Islands'),
    ('OH', 'Ohio'),
    ('OK', 'Oklahoma'),
    ('OR', 'Oregon'),
    ('PW', 'Palau'),
    ('PA', 'Pennsylvania'),
    ('PR', 'Puerto Rico'),
    ('RI', 'Rhode Island'),
    ('SC', 'South Carolina'),
    ('SD', 'South Dakota'),
    ('TN', 'Tennessee'),
    ('TX', 'Texas'),
    ('UT', 'Utah'),
    ('VT', 'Vermont'),
    ('VI', 'Virgin Islands'),
    ('VA', 'Virginia'),
    ('WA', 'Washington'),
    ('WV', 'West Virginia'),
    ('WI', 'Wisconsin'),
    ('WY', 'Wyoming'),
)
@AnthonyClausing

This comment has been minimized.

Copy link

AnthonyClausing commented May 26, 2019

In case anyone uses b-form-select from Bootstrap Vue and wants to show and use the full state name but gets abbreviations from an api

{
"AL": {text: "Alabama", value: "Alabama"},
"AK": {text: "Alaska", value: "Alaska"},
"AS": {text: "American Samoa", value: "American Samoa"},
"AZ": {text: "Arizona", value: "Arizona"},
"AR": {text: "Arkansas", value: "Arkansas"},
"CA": {text: "California", value: "California"},
"CO": {text: "Colorado", value: "Colorado"},
"CT": {text: "Connecticut", value: "Connecticut"},
"DE": {text: "Delaware", value: "Delaware"},
"DC": {text: "District Of Columbia", value: "District Of Columbia"},
"FM": {text: "Federated States Of Micronesia", value: "Federated States Of Micronesia"},
"FL": {text: "Florida", value: "Florida"},
"GA": {text: "Georgia", value: "Georgia"},
"GU": {text: "Guam", value: "Guam"},
"HI": {text: "Hawaii", value: "Hawaii"},
"ID": {text: "Idaho", value: "Idaho"},
"IL": {text: "Illinois", value: "Illinois"},
"IN": {text: "Indiana", value: "Indiana"},
"IA": {text: "Iowa", value: "Iowa" },
"KS": {text: "Kansas", value: "Kansas"},
"KY": {text: "Kentucky", value: "Kentucky"},
"LA": {text: "Louisiana", value: "Louisiana"},
"ME": {text: "Maine", value: "Maine"},
"MH": {text: "Marshall Islands", value: "Marshall Islands"},
"MD": {text: "Maryland", value: "Maryland"},
"MA": {text: "Massachusetts", value: "Massachusetts"},
"MI": {text: "Michigan", value: "Michigan"},
"MN": {text: "Minnesota", value: "Minnesota"},
"MS": {text: "Mississippi", value: "Mississippi"},
"MO": {text: "Missouri", value: "Missouri"},
"MT": {text: "Montana", value: "Montana"},
"NE": {text: "Nebraska", value: "Nebraska"},
"NV": {text: "Nevada", value: "Nevada"},
"NH": {text: "New Hampshire", value: "New Hampshire"},
"NJ": {text: "New Jersey", value: "New Jersey"},
"NM": {text: "New Mexico", value: "New Mexico"},
"NY": {text: "New York", value: "New York"},
"NC": {text: "North Carolina", value: "North Carolina"},
"ND": {text: "North Dakota", value: "North Dakota"},
"MP": {text: "Northern Mariana Islands", value: "Northern Mariana Islands"},
"OH": {text: "Ohio", value: "Ohio"},
"OK": {text: "Oklahoma", value: "Oklahoma"},
"OR": {text: "Oregon", value: "Oregon"},
"PW": {text: "Palau", value: "Palau"},
"PA": {text: "Pennsylvania", value: "Pennsylvania"},
"PR": {text: "Puerto Rico", value: "Puerto Rico"},
"RI": {text: "Rhode Island", value: "Rhode Island"},
"SC": {text: "South Carolina", value: "South Carolina"},
"SD": {text: "South Dakota", value: "South Dakota"},
"TN": {text: "Tennessee", value: "Tennessee"},
"TX": {text: "Texas", value: "Texas"},
"UT": {text:"Utah", value: "Utah"},
"VT": {text: "Vermont", value: "Vermont"},
"VI": {text: "Virgin Islands", value: "Virgin Islands"},
"VA": {text: "Virginia", value: "Virginia"},
"WA": {text: "Washington", value: "Washington"},
"WV": {text: "West Virginia", value: "West Virginia"},
"WI": {text: "Wisconsin", value: "Wisconsin"},
"WY": {text: "Wyoming", value: "Wyoming"}
}

@404Assassin

This comment has been minimized.

Copy link

404Assassin commented Oct 3, 2019

wow, awesome and thanks so much!

@anthony-duque

This comment has been minimized.

Copy link

anthony-duque commented Oct 30, 2019

This is freakin' awesome! B-) Saved me a bunch of work! Thanks! :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.