Random London Postcode Generator

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.

Example London postcodes

Need whole addresses instead?

This 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.

How a random London postcode is built

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.

Outward code — real
One of London's 75 genuine districts is chosen: EC1A, EC1V, EC2A, EC2M, EC3M, EC4M, EC4Y and WC1B, and 67 more. This is why a result is geographically coherent — the area, district, post town, county and country all agree.
Inward code — generated
One sector digit and two unit letters, drawn only from the permitted alphabet. C, I, K, M, O and V never appear in the final pair, because Royal Mail does not use them there.
The result
A postcode that passes structural validation and resolves to London on any district lookup, while not being a live delivery point. It must not be used to send post or to imply a real address.

The 75 postcode districts serving London

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.

DistrictLocalityStructural range
EC1ASmithfieldEC1A 0AA – EC1A 9ZZ
EC1VOld StreetEC1V 0AA – EC1V 9ZZ
EC2AShoreditchEC2A 0AA – EC2A 9ZZ
EC2MLiverpool StreetEC2M 0AA – EC2M 9ZZ
EC3MFenchurch StreetEC3M 0AA – EC3M 9ZZ
EC4MSt Paul’sEC4M 0AA – EC4M 9ZZ
EC4YTempleEC4Y 0AA – EC4Y 9ZZ
WC1BBloomsburyWC1B 0AA – WC1B 9ZZ
WC1XKing’s CrossWC1X 0AA – WC1X 9ZZ
WC2ECovent GardenWC2E 0AA – WC2E 9ZZ
WC2NCharing CrossWC2N 0AA – WC2N 9ZZ
W1DSohoW1D 0AA – W1D 9ZZ
W1JMayfairW1J 0AA – W1J 9ZZ
W1TFitzroviaW1T 0AA – W1T 9ZZ
W2PaddingtonW2 0AA – W2 9ZZ
W4ChiswickW4 0AA – W4 9ZZ
W5EalingW5 0AA – W5 9ZZ
W6HammersmithW6 0AA – W6 9ZZ
W8KensingtonW8 0AA – W8 9ZZ
W9Maida ValeW9 0AA – W9 9ZZ
W11Notting HillW11 0AA – W11 9ZZ
W12Shepherd’s BushW12 0AA – W12 9ZZ
SW1AWestminsterSW1A 0AA – SW1A 9ZZ
SW1PPimlicoSW1P 0AA – SW1P 9ZZ
SW1XBelgraviaSW1X 0AA – SW1X 9ZZ
SW2BrixtonSW2 0AA – SW2 9ZZ
SW3ChelseaSW3 0AA – SW3 9ZZ
SW4ClaphamSW4 0AA – SW4 9ZZ
SW6FulhamSW6 0AA – SW6 9ZZ
SW7South KensingtonSW7 0AA – SW7 9ZZ
SW11BatterseaSW11 0AA – SW11 9ZZ
SW15PutneySW15 0AA – SW15 9ZZ
SW17TootingSW17 0AA – SW17 9ZZ
SW18WandsworthSW18 0AA – SW18 9ZZ
SW19WimbledonSW19 0AA – SW19 9ZZ
SE1SouthwarkSE1 0AA – SE1 9ZZ
SE5CamberwellSE5 0AA – SE5 9ZZ
SE8DeptfordSE8 0AA – SE8 9ZZ
SE10GreenwichSE10 0AA – SE10 9ZZ
SE13LewishamSE13 0AA – SE13 9ZZ
SE15PeckhamSE15 0AA – SE15 9ZZ
SE16RotherhitheSE16 0AA – SE16 9ZZ
SE18WoolwichSE18 0AA – SE18 9ZZ
SE22East DulwichSE22 0AA – SE22 9ZZ
SE23Forest HillSE23 0AA – SE23 9ZZ
N1IslingtonN1 0AA – N1 9ZZ
N4Finsbury ParkN4 0AA – N4 9ZZ
N5HighburyN5 0AA – N5 9ZZ
N6HighgateN6 0AA – N6 9ZZ
N7HollowayN7 0AA – N7 9ZZ
N8HornseyN8 0AA – N8 9ZZ
N10Muswell HillN10 0AA – N10 9ZZ
N16Stoke NewingtonN16 0AA – N16 9ZZ
N17TottenhamN17 0AA – N17 9ZZ
N22Wood GreenN22 0AA – N22 9ZZ
NW1Camden TownNW1 0AA – NW1 9ZZ
NW3HampsteadNW3 0AA – NW3 9ZZ
NW5Kentish TownNW5 0AA – NW5 9ZZ
NW6KilburnNW6 0AA – NW6 9ZZ
NW8St John’s WoodNW8 0AA – NW8 9ZZ
NW10WillesdenNW10 0AA – NW10 9ZZ
NW11Golders GreenNW11 0AA – NW11 9ZZ
E1WhitechapelE1 0AA – E1 9ZZ
E1WWappingE1W 0AA – E1W 9ZZ
E2Bethnal GreenE2 0AA – E2 9ZZ
E3BowE3 0AA – E3 9ZZ
E5ClaptonE5 0AA – E5 9ZZ
E8HackneyE8 0AA – E8 9ZZ
E9HomertonE9 0AA – E9 9ZZ
E10LeytonE10 0AA – E10 9ZZ
E11LeytonstoneE11 0AA – E11 9ZZ
E14PoplarE14 0AA – E14 9ZZ
E15StratfordE15 0AA – E15 9ZZ
E17WalthamstowE17 0AA – E17 9ZZ
E20Queen Elizabeth Olympic ParkE20 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.

What a London postcode tells you

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.

FieldValueWhere it comes from
Post townLONDONRoyal Mail post town, written in capitals on the address
Postcode areasE, EC, N, NW, SE, SW, W, WCThe leading letters of every district above
Ceremonial countyGreater LondonONS administrative geography
CountryEnglandOne of the four countries of the United Kingdom
RegionLondonONS ITL1 statistical region
Dialling code020Ofcom 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 London postcodes are useful for

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.

Frequently asked questions

Are these real London postcodes?

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.

How many postcode districts does London have?

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".

Which postcode areas cover 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.

How is this different from the London address generator?

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.

Can I generate London postcodes through the API?

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.

Will these postcodes pass validation?

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 for nearby post towns

Related pages

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.