Convert state names to 2-letter postal abbreviations or full names
Convert US, Canadian, and Australian state names to official 2-letter postal codes (e.g. CA, NY) or expand codes to full names.
Interactive Sample Data
| account_id | contact_name | raw_state | city |
|---|---|---|---|
| ACC-101 | John Miller | California | Los Angeles |
| ACC-102 | Sarah Davis | ny | New York |
| ACC-103 | Michael Clark | Texas | Austin |
| ACC-104 | Emily Wilson | fla. | Miami |
How this tool works
Things that usually go wrong
- Legacy Dot Abbreviations (Fla., Calif.): Legacy abbreviations with periods confuse standard lookups. DataFix maps traditional forms to modern 2-letter codes.
- Lowercase Codes ("ca" vs "CA"): Lowercase state codes look unprofessional. DataFix capitalizes all 2-letter codes.
- Canadian / US Clashes (e.g. WA vs MB): Specify country context to ensure correct province or state mapping.
Edge cases we tested
Safely handled without schema corruption.
Sanitized prior to processing.
Streamed via client-side Web Worker without tab freezing.
Frequently Asked Questions
Can it convert in both directions (names to codes and codes to names)?
Yes! You can convert full names into 2-letter codes or expand codes into full names.
Does it support Canadian provinces and Australian states?
Yes. It supports US states, Canadian provinces, and Australian states.
How does it handle lowercase codes like "tx"?
It automatically capitalizes them into standard uppercase (TX).
Is my data private?
Your rows never leave your browser. All processing runs in a JavaScript Web Worker inside this tab.
Related tools
Standardize Country Names and Codes
Convert inconsistent country names ("USA", "US", "United States") to standardized ISO 3166-1 alpha-2, alpha-3, or full country names.
Open Tool →Fix ZIP and Postal Codes
Repair postal codes damaged by Excel auto-truncation, format US ZIP+4, and standardize UK and Canadian formats.
Open Tool →Trim Whitespace
Clean up accidental leading, trailing, and duplicate spaces across all columns in your spreadsheet.
Open Tool →