UK Postcode Format Validator

Paste postcodes to check the format, add the space in the right place, and see the area, district, sector and unit of each one.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Type or paste postcodes

    One per line, in any case or spacing.

  2. 2
    Read the status

    A tick shows a valid format and the corrected postcode.

  3. 3
    See the parts

    Check the area, district, sector and unit.

  4. 4
    Fix the failures

    A failing line shows the rule it broke.

  5. 5
    Export

    Copy the valid codes or download a CSV.

Tentang alat ini

A UK postcode has two parts: the outward code (the area and the district) and the inward code (a digit for the sector and two letters for the unit). Formats vary: M1 1AE, B33 8TH, CR2 6XH, DN55 1PT, W1A 1HQ and EC1A 1BB are all valid shapes. This validator checks the shape and the letters that are allowed in each position, puts the space before the last three characters, corrects the case and splits each postcode into its parts. Paste a list to clean a whole spreadsheet column and export the results. It checks format only, not whether the postcode exists.

Who this is for

Anyone who handles addresses: small businesses cleaning a customer list, web form developers, charities that receive donations with postcodes and people filling in forms who are unsure how to write their code.

The structure

The outward code has one or two letters for the postcode area (such as M for Manchester or EC for East Central London), followed by a digit and sometimes a second digit or a letter for the district. The inward code always has one digit and two letters: the digit identifies the sector and the two letters the unit, a group of addresses or one large user. So SW1A 1AA has area SW, district 1A, sector SW1A 1 and unit AA.

What the validator checks

It removes spaces and converts to upper case, checks the length, tests that the inward code is a digit followed by two letters from the allowed set (the letters C, I, K, M, O and V are not used in the last two positions), and checks that the outward code matches one of the valid patterns: A9, A99, AA9, AA99, A9A and AA9A. The first position cannot be Q, V or X, and the second position cannot be I, J or Z. The special code GIR 0AA, used by a former bank, is accepted.

Using it

Type or paste postcodes, one per line. The result shows whether each code is valid in format, the correctly spaced form, the outward and inward parts, the area, district, sector and unit. Use the CSV export to keep a clean list, or copy only the valid codes back to your sheet.

Worked example

Entering m1 1ae gives M1 1AE: area M, district 1, sector M1 1, unit AE. EC1A1BB becomes EC1A 1BB. Q1 1AA is rejected because Q is not used as the first letter. 123 456 fails because it has no letters. B33 8TH is valid with area B and district 33.

Format is not existence

A postcode can have a valid shape and still not exist, or have been retired. To check that an address exists, use Royal Mail's Postcode Address File or a service that has licensed it. This tool does not look anything up and nothing you type leaves your browser.

Limits

Overseas territories and British Forces Post Office codes follow other rules. It is a format check and not an address lookup.

Contoh berselesaian

m1 1ae becomes M1 1AE (area M, district 1, sector M1 1, unit AE), EC1A1BB becomes EC1A 1BB, and Q1 1AA is rejected because Q cannot start a postcode.

Ringkasnya

Soalan lazim

What are the parts of a postcode?

The outward code (area and district) and the inward code (sector digit and unit letters), for example SW1A and 1AA.

Where does the space go?

Before the last three characters. The tool adds it for you.

Does it prove the postcode exists?

No. It checks the format only. Use Royal Mail data to check existence.

Which letters are not allowed?

Q, V and X in the first position, I, J and Z in the second, and C, I, K, M, O and V in the last two letters.

Can I check a list?

Yes. Paste one postcode per line and export the table.

Is my list uploaded?

No. It stays in your browser.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa