Address formatter
More details
What the formatter changes
- Turns everything into capital letters.
- Removes periods, commas and # signs.
- Shortens common street words and unit words (STREET → ST, APARTMENT → APT) and directions (NORTH → N).
- Replaces full state names with two-letter codes.
- When the address ends with a state code and ZIP, it moves the city, state and ZIP to their own last line.
Worked example
Input:
123 North Main Street, Apt. 4, Springfield, Illinois 62701
Output:
123 N MAIN ST APT 4 SPRINGFIELD IL 62701
Tips
- For city names with more than one word (for example SAN JOSE), check the line break: only the last word before the state is moved to the city line.
- Formatting does not check that the address exists. Use the address lookup for that and for the ZIP+4.
- The full list of abbreviations is on the street abbreviations page.
How we check this page
This tool uses public data files built from US Census Bureau, GeoNames and NANPA sources, and the examples above are calculated from the same files when the page is built. Pages are rebuilt from the same files whenever the data is refreshed, and automated checks look for broken links and missing values before each update goes live.
Last reviewed: October 2026. Updated: October 23, 2026. Read our sources and methodology, or tell us if something looks wrong.