Skip to main content
GenAddress

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:

  1. Primary number — the house or building number, e.g. 4180
  2. Predirectional — a compass word before the street name, e.g. SW in SW Cascade Ave
  3. Street name — e.g. Cascade
  4. Suffix — the street type, e.g. Ave
  5. 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 4B on 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 1234 on 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

  1. Leading zeros stripped. 02108 stored as a number becomes 2108. Fix: text column, and quote it in CSV so spreadsheets do not re-cast it.
  2. ZIP and city out of sync. A real ZIP paired with the wrong state passes length checks and fails real validation.
  3. Full state name in a two-character field. Oregon in a state input limited to 2 characters.
  4. Street suffix spelled out. Avenue where the validator expects AVE.
  5. 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.

Frequently Asked Questions

How many lines is a standard US mailing address?

Three lines for mail sent inside the United States: recipient name, delivery address line, and the city/state/ZIP line. A fourth line is added only when the destination is outside the US, and then it holds the country name.

Do I need a country line on a domestic US address?

No. USPS delivery inside the United States does not use a country line. Adding "United States" to a domestic address is harmless on paper but fails strict form validators that expect exactly three lines.

Is there a comma between the state abbreviation and the ZIP code?

No. The third line is written as City, ST ZIP — one comma after the city, then a space between the two-letter state code and the ZIP code. "Portland, OR 97209" is correct; "Portland, OR, 97209" is not.

Can I write the full state name instead of the two-letter abbreviation?

USPS prefers the two-letter abbreviation and every automated address checker expects it. Write Oregon, not OR, only in body copy. Forms that validate a two-character state field will reject the full name.

What is ZIP+4 and when is it required?

ZIP+4 is the 5-digit ZIP code plus a hyphen and a 4-digit delivery-sector code, for example 97209-4128. It is optional for most mail but required by some enterprise validators and label printers. Never drop the hyphen.

Why do New England ZIP codes lose their leading zero?

Because the value was stored as a number. 02108 becomes 2108, and 03101 becomes 3101. Store ZIP codes as text or a zero-padded string in the database, the CSV file, and the spreadsheet column.

Does the ZIP code have to match the city and state?

Yes for any address that will pass validation. 90210 belongs to Beverly Hills, CA; 97209 to Portland, OR; 60601 to Chicago, IL. A valid ZIP paired with the wrong city is one of the most common test-data failures.

How do I format an apartment or suite number?

Keep it on the delivery address line, after the street address, using the USPS abbreviation: APT 4B, STE 200, FL 3, UNIT 12, BLDG C. Do not put the unit on its own line and do not write out "Apartment".

How do I format a PO Box address?

The PO Box replaces the street line entirely: "PO Box 1234" goes on line 2, followed by the city, state and ZIP of the post office that owns the box. Never combine a street address and a PO Box on the same address.

How are military and territory addresses formatted?

Armed Forces mail uses APO or FPO in place of the city, with the state code AA, AE, or AP followed by a ZIP. US territories keep their own code in the state position — PR for Puerto Rico, VI for the Virgin Islands, GU for Guam.