Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Standardizes a free-form postal address into one canonical mailing form — uppercased, punctuation stripped, USPS-approved street-suffix and directional abbreviations, secondary-unit designators, two-letter state, ZIP+4, one element per line. Use when normalizing, deduplicating, or cleaning mailing addresses for storage, matching, or bulk import. Do NOT use for geocoding an address to coordinates, verifying an address is deliverable, or parsing an address into typed fields without reformatting.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 549% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 272% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 311% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 277% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 498% | 0% |
Rewrites a free-form postal address into a single canonical mailing form. US addresses follow USPS Publication 28. The base model knows the approved abbreviations but does not apply them by default: asked to "clean up" an address it returns Title Case, spelled-out suffixes ("Street", "Avenue"), and comma separators. This skill forces the canonical form instead.
Apply every rule. Output is a mailing block, one element per line, in this exact order:
PRIMARY-NUMBER [PRE-DIR] STREET-NAME SUFFIX [POST-DIR] [UNIT-DESIGNATOR UNIT-NUMBER], all on one line.CITY STATE ZIP (or CITY STATE ZIP+4).Transformation rules:
# used as a separator. The ONE retainedseparator is the hyphen inside a ZIP+4.
LANE→LN, ROAD→RD, COURT→CT, PLACE→PL, PLAZA→PLZ, TERRACE→TER, CIRCLE→CIR, HIGHWAY→HWY, PARKWAY→PKWY, TRAIL→TRL, WAY→WAY, SQUARE→SQ, LOOP→LOOP. Full table: see references.
EAST→E, WEST→W, NORTHEAST→NE, NORTHWEST→NW, SOUTHEAST→SE, SOUTHWEST→SW.
FLOOR→FL, UNIT→UNIT, ROOM→RM, DEPARTMENT→DEPT, PENTHOUSE→PH, TRAILER→TRLR. When the unit type is not stated, use # immediately before the number (e.g. # 4B).
62704-1234. A bare 5-digit ZIPstays five digits.
PO BOX <number>.IN: 123 North Main Street, Apartment 4, Springfield, Il. 62704-1234
OUT: 123 N MAIN ST APT 4
SPRINGFIELD IL 62704-1234
IN: Attn: Dana Reyes; 88 southwest Grand Boulevard, Suite 210, Portland, Oregon 97205
OUT: DANA REYES
88 SW GRAND BLVD STE 210
PORTLAND OR 97205
IN: P.O. Box 45, Apt. B, Reno NV 89501
OUT: PO BOX 45 # B
RENO NV 89501USPS Pub 28 is US-only, and postal conventions vary by country. For a non-US address, do NOT force US suffix abbreviations or a ZIP+4 shape. Uppercase the block, keep the country's own postal-code format as written, and put the COUNTRY name on the last line. Example: a UK address keeps its outward/inward postcode (SW1A 1AA) and does not become a ZIP+4.
For large batches where identical input must map to identical output, run the converter rather than reasoning each one out: scripts/normalizer.py applies the lookup tables mechanically. The full USPS Pub 28 Appendix C1 suffix list, all directionals, and the complete secondary-unit designator table live in references/usps-pub28-abbreviations.md — consult it for a suffix or designator not shown inline above.
Other measured skills in the registry, with their headline benchmark lift.