b2KIT

Envelope Address Formatter

Format mailing addresses for envelope printing with USPS/Royal Mail standards and barcode generation.

Tested tool guide Tested browser tools Checked August 16, 2026

What Envelope Address Formatter does, with a checked example

Paste a half-typed address and this tool returns a print-ready envelope block: recipient on the first line, delivery line second, then city, state, and ZIP or postcode, normalized to the USPS or Royal Mail standard you pick. It can also encode the routing digits as a barcode for the envelope's lower-right corner. What surprises most people: correct USPS formatting is all capitals with no punctuation, which looks like shouting until you remember the sorting machines that read it. And the tool fixes layout only - it formats what you typed, so a nonexistent address comes out just as clean as a real one.

Worked example

A concrete input and expected output from the current implementation.

Input

ms. jane a. smith, 2210 north oak street, apartment 3b, springfield, il 62704

Expected output

MS JANE A SMITH
2210 N OAK ST APT 3B
SPRINGFIELD IL 62704

USPS formatting uppercases every line, strips punctuation, and swaps in the standard abbreviations from Publication 28 (North to N, Street to ST, Apartment to APT). The ZIP stays as typed because the +4 digits come from USPS address data, not rules, so the tool asserts only the five-digit ZIP it was given.

How the result is produced

1

Normalization pass

Text is split into lines, then casing is forced to the authority's convention, punctuation is stripped, and street suffixes, directionals, and secondary unit designators are expanded or abbreviated against the official tables - North becomes N, Street becomes ST, Apartment becomes APT. Lines are reordered as recipient, delivery address, then city, state, and ZIP.

2

Barcode rendering

The routing digits - ZIP or ZIP+4 for USPS, the postcode for Royal Mail - are encoded into that authority's symbology: the Intelligent Mail barcode for USPS, RM4SCC for Royal Mail, each with its own check digit rules. The result prints as a graphic meant for the lower-right band of the envelope where sorting equipment scans it.

Good uses

  • Preparing wedding or holiday card envelopes from a guest spreadsheet, so every address block prints inside the zone the mail sorting machines scan.
  • Cleaning up an address list exported from a CRM, form, or sign-up sheet where each row was typed with different casing, abbreviations, and line breaks.
  • Getting international mail addressed right - placing the UK post town and postcode on their own final lines when sending to Britain, or the US state and ZIP line when sending from abroad.

Limits and checks

  • Formatting is not verification. Wrong house numbers, misspelled streets, and streets that do not exist pass through unchanged and look perfectly clean. A well-formed block says nothing about whether the mail will be delivered.
  • ZIP+4 cannot be guessed. USPS appends the four extra digits from address data, not from rules, so without a lookup the output - and any barcode derived from it - carries only the five-digit ZIP.
  • Standards do not mix. USPS output (all caps, state abbreviation, ZIP last) and Royal Mail output (property, street, locality, post town, then postcode) are deliberately different, and the two barcode symbologies are not interchangeable. The result is only as correct as the standard you selected.

Common questions

Will this guarantee my mail gets delivered?

No. The tool normalizes layout, abbreviations, and line order to the postal standard; it does not check that the address exists, that the ZIP matches the city, or that a unit number is present. What it gives you is a correctly formed block - the part of delivery you can control on your side.

Why is my address returned in all capitals with punctuation removed?

USPS sorting machines read uppercase, punctuation-free lines most reliably, and Royal Mail's clear-addressing guidance likewise favors no punctuation, with the post town and postcode in capitals. Mail in ordinary mixed case usually still arrives; the all-caps block is simply the form the machinery was designed around.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools