Skip to content
M2TOOLKIT

Text · free tool

Postal and ZIP Code Formatter

Fix the spacing and case of postcodes, and spot invalid ones.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Text
  • Free
  • No sign-up
  • Nothing is sent or stored
  • Updated
0 characters

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Postal & ZIP Code Formatter

  1. Choose the country.
  2. Paste codes, one per line.
  3. Copy the formatted list — problem codes are flagged.

What does this tool do?

Postal codes typed by people are messy: sw1a1aa, SW1A-1AA, sw1a 1aa. The formatter normalises them to the official style, such as SW1A 1AA in the UK or K1A 0B1 in Canada.

Each country's pattern is checked, so codes with the wrong number of characters stand out before they cause failed deliveries.

Why use it?

  • 12 countries.
  • Bulk cleanup.
  • Invalid codes flagged.

Use cases

  • Clean addresses before printing labels or importing to a shipping tool.
  • Check a customer list for invalid postcodes.
  • Standardise data from web forms.

Messy in, tidy out

Each country has its own official style:

TypedFormatted
sw1a1aaSW1A 1AA (UK)
k1a0b1K1A 0B1 (Canada)
12345678912345-6789 (US ZIP+4)

Common mistakes

  • Storing ZIP codes as numbers, which drops leading zeros — 02134 becomes 2134.
  • Assuming a correctly formatted code really exists.
  • Formatting codes for the wrong country.

Accuracy and limits

  • Validates the format, not whether the postcode is actually in use.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

Does it check that the address exists?

No. It checks the pattern, so wrong-length or badly formed codes stand out.

Can I paste a whole column?

Yes, one code per line.

Why is the space in UK postcodes important?

It separates the outward and inward codes and is part of the official format.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the postal & zip code formatter.