State to code, code to state
US postal addresses use a two-letter state abbreviation set by the Postal Service — CA for California, NY for New York, TX for Texas. This lookup works in both directions: type a code to get the state, or type a state name to get the code. It covers all 50 states, the District of Columbia, and the five inhabited US territories, with each entity’s capital city.
How it works
The dataset is the official USPS abbreviation table. When your text exactly matches a code or a full name, a highlighted result shows the pairing and the capital. Otherwise the table below filters by any partial match across code, name, or capital. Codes are uppercase with no periods, the USPS standard.
Notes and example
The trickiest cases are states that share an initial letter. The four “M” states are distinguished by a second letter — MS Mississippi, MO Missouri, MN Minnesota, MT Montana — and Maine is ME. Don’t confuse the state of Washington (WA) with the District of Columbia (DC). These two-letter codes are also the basis of the ISO 3166-2 subdivision codes, written as US-CA, US-NY, and so on.