US Mailing Address Format — 4-Line Layout, State Codes & ZIP+4
How to write a US mailing address line by line: the three-line domestic layout, all 50 state abbreviations plus DC, ZIP and ZIP+4 rules, and the formatting mistakes that break form validation.
What a Standard US Mailing Address Looks Like
A US mailing address is three lines for domestic mail and four lines when the destination is outside the United States. Each line carries exactly one kind of information, which is why address parsers can split a block reliably — and why a block that mixes two kinds of information on one line fails validation.
| Line | What belongs on it | Example |
|---|---|---|
| Line 1 | Recipient name | Jordan Ellis |
| Line 2 | Street number, street name, and unit | 4180 SW Cascade Ave Apt 4B |
| Line 3 | City, two-letter state abbreviation, ZIP | Portland, OR 97209 |
| Line 4 | Country — international mail only | United States |
The same block, ready to paste into a form:
Jordan Ellis
4180 SW Cascade Ave Apt 4B
Portland, OR 97209
USPS reads an address from the bottom up: the ZIP code first, then the city, then the street line. That is why a wrong ZIP breaks delivery even when every other line is correct, and why automated validators check the ZIP before anything else.
The Four Lines, One at a Time
Line 1 — Recipient name
Whoever receives the mail. For test data this is a synthetic name, and it is the one line a form will usually mark optional. If the recipient has a title or department, it goes on the same line or a line of its own above the name — never merged into the street line.
Line 2 — Delivery address line
This is the line that decides whether an address validates. A complete US street line has up to four parts, always in this order:
- Primary number — the house or building number, e.g.
4180 - Predirectional — a compass word before the street name, e.g.
SWinSW Cascade Ave - Street name — e.g.
Cascade - Suffix — the street type, e.g.
Ave - Secondary unit — apartment, suite, floor, building, e.g.
Apt 4B
USPS recognizes a fixed set of suffix and unit abbreviations. A validator that expects AVE will reject Avenue, and one that expects APT will reject Apartment:
| Full word | USPS abbreviation | Full word | USPS abbreviation |
|---|---|---|---|
| Street | ST | Lane | LN |
| Avenue | AVE | Road | RD |
| Boulevard | BLVD | Court | CT |
| Drive | DR | Place | PL |
| Parkway | PKWY | Circle | CIR |
| Highway | HWY | Terrace | TER |
| Apartment | APT | Suite | STE |
| Floor | FL | Building | BLDG |
Line 3 — City, state, ZIP
One line, one comma: City, ST ZIP. The comma goes after the city only. Do not add a second comma before the ZIP, do not put the state on its own line, and do not spell the state out.
Line 4 — Country name
Only for international mail. Domestic US mail has no country line, and adding one to a record destined for a strict three-line validator is a common cause of rejection.
US State Abbreviations — All 50 States Plus DC
| State | Code | State | Code |
|---|---|---|---|
| Alabama | AL | Montana | MT |
| Alaska | AK | Nebraska | NE |
| Arizona | AZ | Nevada | NV |
| Arkansas | AR | New Hampshire | NH |
| California | CA | New Jersey | NJ |
| Colorado | CO | New Mexico | NM |
| Connecticut | CT | New York | NY |
| Delaware | DE | North Carolina | NC |
| Florida | FL | North Dakota | ND |
| Georgia | GA | Ohio | OH |
| Hawaii | HI | Oklahoma | OK |
| Idaho | ID | Oregon | OR |
| Illinois | IL | Pennsylvania | PA |
| Indiana | IN | Rhode Island | RI |
| Iowa | IA | South Carolina | SC |
| Kansas | KS | South Dakota | SD |
| Kentucky | KY | Tennessee | TN |
| Louisiana | LA | Texas | TX |
| Maine | ME | Utah | UT |
| Maryland | MD | Vermont | VT |
| Massachusetts | MA | Virginia | VA |
| Michigan | MI | Washington | WA |
| Minnesota | MN | West Virginia | WV |
| Mississippi | MS | Wisconsin | WI |
| Missouri | MO | Wyoming | WY |
| District of Columbia | DC |
Watch the confusable pairs: MI / MN / MS / MO, NE / NV, AL / AK / AR / AZ, and VT / VA. A transposed pair produces a syntactically perfect address that validates and routes to the wrong state.
ZIP Code and ZIP+4 Rules
- A ZIP code is five digits and may begin with zero. Store it as text, never as an integer or a numeric spreadsheet cell.
- ZIP+4 is the five digits, a hyphen, and four more:
97209-4128. The hyphen is part of the format. - The ZIP must belong to the city and state on line 3. Reference points worth keeping in a fixture file:
| ZIP | City | State |
|---|---|---|
| 02108 | Boston | MA |
| 10001 | New York | NY |
| 19801 | Wilmington | DE |
| 33101 | Miami | FL |
| 60601 | Chicago | IL |
| 90210 | Beverly Hills | CA |
| 97209 | Portland | OR |
| 99501 | Anchorage | AK |
Some ZIP codes legitimately serve more than one city name, but a test fixture should stay one-to-one so that a failure always points at one cause.
Apartment, Suite and PO Box Formats
- Apartment:
Apt 4Bon the delivery line, after the street address. - Suite:
Ste 200, same position. - Floor:
Fl 3, same position. - PO Box: replaces the street line —
PO Box 1234on line 2, then the city, state and ZIP of the post office that owns the box. - Never mix a street address and a PO Box in the same block. Validators treat that as an ambiguous delivery point.
Military and Territory Addresses
Armed Forces mail puts APO or FPO where the city would go, uses the state code AA, AE, or AP, and still needs a ZIP. US territories keep their own code in the state position: PR Puerto Rico, VI Virgin Islands, GU Guam. These codes fit the same two-character state field, so a form that only accepts the 50 states will reject legitimate territory addresses.
Five Formatting Mistakes That Break Test Data
- Leading zeros stripped.
02108stored as a number becomes2108. Fix: text column, and quote it in CSV so spreadsheets do not re-cast it. - ZIP and city out of sync. A real ZIP paired with the wrong state passes length checks and fails real validation.
- Full state name in a two-character field.
Oregonin astateinput limited to 2 characters. - Street suffix spelled out.
Avenuewhere the validator expectsAVE. - Phone area code that does not match the state. A Portland, OR address carrying a 212 (New York) number is internally inconsistent and gets caught by data-quality tests.
Generating a Correctly Formatted Test Address
Writing a consistent block by hand is where most fixtures go wrong. GenAddress builds the whole block at once so the state, city, ZIP and phone area code always agree: use the US address generator for a full 50-state block, the ZIP code generator when you only need postal codes with ZIP+4, the tax-free state address generator for Oregon, Delaware, Montana, New Hampshire and Alaska, or the California address generator for CA cities. Every field is generated locally in your browser — no account, no upload — and exports to JSON, CSV or SQL for fixture files. Start from the fake address generator on the home page if you need other countries.