Start a project

Tool 328 of 425 · UK data

UK Postcode Formatter

Tidies a list of UK postcodes into the standard format and checks each against Royal Mail's format rules, splitting out area, district and sector.

UK Postcode Formatter

Your input

Result

InputFormattedOutwardAreaSectorStatus
Formatted list

    01

    What it does

    Tidies a list of UK postcodes into the standard format and checks each against Royal Mail's format rules, splitting out area, district and sector.

    • Spacing and capitals fixed
    • All six UK formats plus GIR 0AA
    • Letters not used in certain positions caught
    • Area, district and sector split out

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Formatted postcodes and a breakdown, with a Copy and a Download button on every result.

    • UK postcodes
    • Formatting
    • Data cleaning

    Why it matters

    Postcodes typed into forms arrive as sw1a1aa, SW1A 1AA or SW1A-1AA. Before you match, deduplicate or import them, they need to be in one format.

    This formatter fixes spacing and case and checks each against the published format rules. It doesn't look anything up, so nothing about an address leaves your device.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Format. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Does a valid format mean the postcode exists?

    No. It means it follows the rules. Only Royal Mail's Postcode Address File says whether a postcode is in use.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk