Text, Copy-friendly List of US States (AND) Abbreviation

Programmers all eventually need to deal with a list of states. Most of the time people will attempt to grab a list off Google…only to find out that they aren’t in an easy-to-use, copy+pastable format. Hopefully the below lists of United States of America (USA) states and abbreviations help Personally, I needed these for a plugin I’m making for WordPress.

Edit: Also, I’ve added an array of abbreviations at the end too. It’s in JavaScript, but obviously can be turned into PHP within seconds. Hope it helps!