Random Birmingham Postcode Generator

These postcodes are structurally valid but fictional, for software testing and form design. This is not a Royal Mail postcode lookup: the Birmingham districts are real, the full postcodes are not assigned to any address.

A random Birmingham postcode generator combines a real Birmingham 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 Birmingham postcode district. There are 39 of them, in the B postcode area, and they all belong to the BIRMINGHAM post town in West Midlands. 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 Birmingham postcodes

Need whole addresses instead?

This page produces postcodes on their own. For complete Birmingham addresses — building number, street, locality, post town, West Midlands and postcode, laid out to Royal Mail conventions — use the random Birmingham address generator.

How a random Birmingham 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 Birmingham's 39 genuine districts is chosen: B1, B2, B3, B4, B5, B6, B7 and B8, and 31 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 Birmingham 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 39 postcode districts serving Birmingham

Birmingham sits in the B postcode area. Every district below is a real outward code assigned to the BIRMINGHAM post town.

DistrictLocalityStructural range
B1—B1 0AA – B1 9ZZ
B2—B2 0AA – B2 9ZZ
B3Colmore Business DistrictB3 0AA – B3 9ZZ
B4Aston TriangleB4 0AA – B4 9ZZ
B5HighgateB5 0AA – B5 9ZZ
B6AstonB6 0AA – B6 9ZZ
B7NechellsB7 0AA – B7 9ZZ
B8Washwood HeathB8 0AA – B8 9ZZ
B9Bordesley GreenB9 0AA – B9 9ZZ
B10Small HeathB10 0AA – B10 9ZZ
B11SparkhillB11 0AA – B11 9ZZ
B12Balsall HeathB12 0AA – B12 9ZZ
B13MoseleyB13 0AA – B13 9ZZ
B14Kings HeathB14 0AA – B14 9ZZ
B15EdgbastonB15 0AA – B15 9ZZ
B16LadywoodB16 0AA – B16 9ZZ
B17HarborneB17 0AA – B17 9ZZ
B18Winson GreenB18 0AA – B18 9ZZ
B19LozellsB19 0AA – B19 9ZZ
B20Handsworth WoodB20 0AA – B20 9ZZ
B21HandsworthB21 0AA – B21 9ZZ
B23ErdingtonB23 0AA – B23 9ZZ
B24TyburnB24 0AA – B24 9ZZ
B25YardleyB25 0AA – B25 9ZZ
B26SheldonB26 0AA – B26 9ZZ
B27Acocks GreenB27 0AA – B27 9ZZ
B28Hall GreenB28 0AA – B28 9ZZ
B29Selly OakB29 0AA – B29 9ZZ
B30BournvilleB30 0AA – B30 9ZZ
B31NorthfieldB31 0AA – B31 9ZZ
B32QuintonB32 0AA – B32 9ZZ
B33StechfordB33 0AA – B33 9ZZ
B34Shard EndB34 0AA – B34 9ZZ
B35Castle ValeB35 0AA – B35 9ZZ
B36Castle BromwichB36 0AA – B36 9ZZ
B38Kings NortonB38 0AA – B38 9ZZ
B42Perry BarrB42 0AA – B42 9ZZ
B43Great BarrB43 0AA – B43 9ZZ
B44KingstandingB44 0AA – B44 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 Birmingham postcode tells you

A postcode carries more than a location. Reading one from Birmingham 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 townBIRMINGHAMRoyal Mail post town, written in capitals on the address
Postcode areaBThe leading letters of every district above
Ceremonial countyWest MidlandsONS administrative geography
CountryEnglandOne of the four countries of the United Kingdom
RegionWest MidlandsONS ITL1 statistical region
Dialling code0121Ofcom National Telephone Numbering Plan

Royal Mail has not required a county line on addressed mail since 1996. BIRMINGHAM plus a correct postcode is sufficient; West Midlands is included because plenty of address forms and legacy databases still expect a county.

What Birmingham 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 Birmingham 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 Birmingham postcodes?

The districts are real: all 39 of them are Royal Mail outward codes genuinely assigned to the BIRMINGHAM 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 Birmingham 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 Birmingham have?

39, in the B postcode area: B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13, B14, B15, B16, B17, B18, B19, B20, B21, B23, B24, B25, B26, B27, B28, B29, B30, B31, B32, B33, B34, B35, B36, B38, B42, B43, B44. That is the count for the BIRMINGHAM 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 "Birmingham".

What is the postcode area for Birmingham?

B. The postcode area is the leading letter or letters of the outward code, so every Birmingham postcode begins B — for example B1. The digits that follow identify the district within the area.

How is this different from the Birmingham address generator?

This page generates postcodes on their own and explains Birmingham's district structure. The Birmingham 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 Birmingham postcodes through the API?

Yes, with no API key. Call GET /api/v1/postcodes/random?location=birmingham&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.