Random UK Postcode Generator
Generate real UK Postcodes with verified city and region pairings. Export the results for authentic test data.
How is a UK postcode structured?
A UK postcode has an outward code and an inward code separated by one space. Its length varies because postal areas and districts use different letter-and-number patterns.
Example structure
SW1A 1AASW1AOutward codeArea and district
1AAInward codeSector and unit
- Keep the single middle space. The outward and inward codes should be separated when displaying or mailing.
- Use uppercase letters. Postcodes are conventionally written in uppercase even though lookup systems may be case-insensitive.
- Length can vary. Valid outward-code patterns differ by postal area, so not every postcode has the same number of characters.
Frequently Asked Questions
A UK postcode combines a variable-length outward code with a three-character inward code, separated by one space, such as SW1A 1AA.