These postcodes are structurally valid but fictional, for software testing and form design. This is not a Royal Mail postcode lookup: the London districts are real, the full postcodes are not assigned to any address.
A random London postcode generator combines a real London postcode district with a generated inward code, producing a structurally valid postcode that is not assigned to any delivery point.
Every postcode on this page starts from a genuine London postcode district. There are 75 of them, in the E, EC, N, NW, SE, SW, W and WC postcode areas, and they all belong to the LONDON post town in Greater London. The three characters after the space are generated to the Royal Mail format rules, so a result validates in any form or database while belonging to no real property.
E17 9BD — district E17, sector E17 9, LONDON, Greater LondonWC1X 6BP — district WC1X, sector WC1X 6, LONDON, Greater LondonNW6 7JR — district NW6, sector NW6 7, LONDON, Greater LondonSW18 2AF — district SW18, sector SW18 2, LONDON, Greater LondonWC2E 0ZG — district WC2E, sector WC2E 0, LONDON, Greater LondonE9 7XX — district E9, sector E9 7, LONDON, Greater LondonThis page produces postcodes on their own. For complete London addresses — building number, street, locality, post town, Greater London and postcode, laid out to Royal Mail conventions — use the random London address generator.
A UK postcode splits into an outward code and an inward code. The outward code identifies the district; the inward code narrows it to a small group of properties. This generator keeps the first half real and generates the second, which is what makes the output safe to use and still valid.
London spans the E, EC, N, NW, SE, SW, W and WC postcode areas. Every district below is a real outward code assigned to the LONDON post town.
| District | Locality | Structural range |
|---|---|---|
| EC1A | Smithfield | EC1A 0AA – EC1A 9ZZ |
| EC1V | Old Street | EC1V 0AA – EC1V 9ZZ |
| EC2A | Shoreditch | EC2A 0AA – EC2A 9ZZ |
| EC2M | Liverpool Street | EC2M 0AA – EC2M 9ZZ |
| EC3M | Fenchurch Street | EC3M 0AA – EC3M 9ZZ |
| EC4M | St Paul’s | EC4M 0AA – EC4M 9ZZ |
| EC4Y | Temple | EC4Y 0AA – EC4Y 9ZZ |
| WC1B | Bloomsbury | WC1B 0AA – WC1B 9ZZ |
| WC1X | King’s Cross | WC1X 0AA – WC1X 9ZZ |
| WC2E | Covent Garden | WC2E 0AA – WC2E 9ZZ |
| WC2N | Charing Cross | WC2N 0AA – WC2N 9ZZ |
| W1D | Soho | W1D 0AA – W1D 9ZZ |
| W1J | Mayfair | W1J 0AA – W1J 9ZZ |
| W1T | Fitzrovia | W1T 0AA – W1T 9ZZ |
| W2 | Paddington | W2 0AA – W2 9ZZ |
| W4 | Chiswick | W4 0AA – W4 9ZZ |
| W5 | Ealing | W5 0AA – W5 9ZZ |
| W6 | Hammersmith | W6 0AA – W6 9ZZ |
| W8 | Kensington | W8 0AA – W8 9ZZ |
| W9 | Maida Vale | W9 0AA – W9 9ZZ |
| W11 | Notting Hill | W11 0AA – W11 9ZZ |
| W12 | Shepherd’s Bush | W12 0AA – W12 9ZZ |
| SW1A | Westminster | SW1A 0AA – SW1A 9ZZ |
| SW1P | Pimlico | SW1P 0AA – SW1P 9ZZ |
| SW1X | Belgravia | SW1X 0AA – SW1X 9ZZ |
| SW2 | Brixton | SW2 0AA – SW2 9ZZ |
| SW3 | Chelsea | SW3 0AA – SW3 9ZZ |
| SW4 | Clapham | SW4 0AA – SW4 9ZZ |
| SW6 | Fulham | SW6 0AA – SW6 9ZZ |
| SW7 | South Kensington | SW7 0AA – SW7 9ZZ |
| SW11 | Battersea | SW11 0AA – SW11 9ZZ |
| SW15 | Putney | SW15 0AA – SW15 9ZZ |
| SW17 | Tooting | SW17 0AA – SW17 9ZZ |
| SW18 | Wandsworth | SW18 0AA – SW18 9ZZ |
| SW19 | Wimbledon | SW19 0AA – SW19 9ZZ |
| SE1 | Southwark | SE1 0AA – SE1 9ZZ |
| SE5 | Camberwell | SE5 0AA – SE5 9ZZ |
| SE8 | Deptford | SE8 0AA – SE8 9ZZ |
| SE10 | Greenwich | SE10 0AA – SE10 9ZZ |
| SE13 | Lewisham | SE13 0AA – SE13 9ZZ |
| SE15 | Peckham | SE15 0AA – SE15 9ZZ |
| SE16 | Rotherhithe | SE16 0AA – SE16 9ZZ |
| SE18 | Woolwich | SE18 0AA – SE18 9ZZ |
| SE22 | East Dulwich | SE22 0AA – SE22 9ZZ |
| SE23 | Forest Hill | SE23 0AA – SE23 9ZZ |
| N1 | Islington | N1 0AA – N1 9ZZ |
| N4 | Finsbury Park | N4 0AA – N4 9ZZ |
| N5 | Highbury | N5 0AA – N5 9ZZ |
| N6 | Highgate | N6 0AA – N6 9ZZ |
| N7 | Holloway | N7 0AA – N7 9ZZ |
| N8 | Hornsey | N8 0AA – N8 9ZZ |
| N10 | Muswell Hill | N10 0AA – N10 9ZZ |
| N16 | Stoke Newington | N16 0AA – N16 9ZZ |
| N17 | Tottenham | N17 0AA – N17 9ZZ |
| N22 | Wood Green | N22 0AA – N22 9ZZ |
| NW1 | Camden Town | NW1 0AA – NW1 9ZZ |
| NW3 | Hampstead | NW3 0AA – NW3 9ZZ |
| NW5 | Kentish Town | NW5 0AA – NW5 9ZZ |
| NW6 | Kilburn | NW6 0AA – NW6 9ZZ |
| NW8 | St John’s Wood | NW8 0AA – NW8 9ZZ |
| NW10 | Willesden | NW10 0AA – NW10 9ZZ |
| NW11 | Golders Green | NW11 0AA – NW11 9ZZ |
| E1 | Whitechapel | E1 0AA – E1 9ZZ |
| E1W | Wapping | E1W 0AA – E1W 9ZZ |
| E2 | Bethnal Green | E2 0AA – E2 9ZZ |
| E3 | Bow | E3 0AA – E3 9ZZ |
| E5 | Clapton | E5 0AA – E5 9ZZ |
| E8 | Hackney | E8 0AA – E8 9ZZ |
| E9 | Homerton | E9 0AA – E9 9ZZ |
| E10 | Leyton | E10 0AA – E10 9ZZ |
| E11 | Leytonstone | E11 0AA – E11 9ZZ |
| E14 | Poplar | E14 0AA – E14 9ZZ |
| E15 | Stratford | E15 0AA – E15 9ZZ |
| E17 | Walthamstow | E17 0AA – E17 9ZZ |
| E20 | Queen Elizabeth Olympic Park | E20 0AA – E20 9ZZ |
The structural range is what the postcode grammar permits for each district, not a list of codes Royal Mail has issued. Which sectors and units are actually allocated is Postcode Address File data, which is licensed and not held here — so a generated postcode inside the range may well be unallocated. For test data that is the point.
A postcode carries more than a location. Reading one from London tells you which country's addressing conventions apply, which ceremonial county the address sits in, and — if you need a matching telephone number — which dialling code area it falls in.
| Field | Value | Where it comes from |
|---|---|---|
| Post town | LONDON | Royal Mail post town, written in capitals on the address |
| Postcode areas | E, EC, N, NW, SE, SW, W, WC | The leading letters of every district above |
| Ceremonial county | Greater London | ONS administrative geography |
| Country | England | One of the four countries of the United Kingdom |
| Region | London | ONS ITL1 statistical region |
| Dialling code | 020 | Ofcom National Telephone Numbering Plan |
Royal Mail has not required a county line on addressed mail since 1996. LONDON plus a correct postcode is sufficient; Greater London is included because plenty of address forms and legacy databases still expect a county.
What they are not for: sending post, verifying an identity, or implying that a property exists. If you need to know whether a London address is deliverable, that is a licensed Royal Mail Postcode Address File lookup, and no generator can answer it.
The districts are real: all 75 of them are Royal Mail outward codes genuinely assigned to the LONDON post town. The three characters after the space are generated, so the full postcode is almost certainly not allocated to any property. That combination is deliberate — the result resolves to London in a district lookup and passes validation, but it is not a live delivery point and must never be used to send post.
75, in the E, EC, N, NW, SE, SW, W and WC postcode areas: EC1A, EC1V, EC2A, EC2M, EC3M, EC4M, EC4Y, WC1B, WC1X, WC2E, WC2N, W1D, W1J, W1T, W2, W4, W5, W6, W8, W9, W11, W12, SW1A, SW1P, SW1X, SW2, SW3, SW4, SW6, SW7, SW11, SW15, SW17, SW18, SW19, SE1, SE5, SE8, SE10, SE13, SE15, SE16, SE18, SE22, SE23, N1, N4, N5, N6, N7, N8, N10, N16, N17, N22, NW1, NW3, NW5, NW6, NW8, NW10, NW11, E1, E1W, E2, E3, E5, E8, E9, E10, E11, E14, E15, E17, E20. That is the count for the LONDON post town as recorded in this site's registry; a post town does not follow council boundaries, so it may not match what a resident would call "London".
E, EC, N, NW, SE, SW, W and WC. London is large enough to span more than one postcode area, so the leading letters vary between districts: EC1A, EC1V, EC2A, EC2M, EC3M are all London districts despite the different prefixes.
This page generates postcodes on their own and explains London's district structure. The London address generator produces complete postal addresses — building number, street, locality, post town, county and postcode — laid out to Royal Mail conventions. Use this page when you need postcodes to test a postcode field; use the address generator when you need whole addresses.
Yes, with no API key. Call GET /api/v1/postcodes/random?location=london&count=25 for JSON. Add &seed=1 to get the same set back on every request, which keeps snapshot tests stable. The response carries the outward code, inward code, area, district and sector for each postcode alongside the post town and county.
Structural validation, yes: the format, the length and the excluded letters are all respected, so a correctly written regex or a library check will accept them. A validator backed by licensed Postcode Address File data will reject most of them, correctly, because the full postcode is not an allocated delivery point. If your test suite needs addresses that pass a PAF lookup, no generator can supply them.
Postcodes are generated on demand and never stored. They are for software testing and development only, and must not be used to send post, to imply a real address, or for identity verification.