UK random address generator with postcode

Generate synthetic UK addresses with postcodes for testing. Full postcodes include synthetic inward codes; allocation and delivery are not verified.

Data for testing only
中文

Synthetic test data; complete postcode includes synthetic inward code, allocation unverified.

Dataset and rule versions

geonames-gb-50ddbf085eca-selection-v1 · gb-synthetic-inward-v1

Pat Reynolds-Boehm
123 Meadow Road
Westminster Abbey
SW1A 1NX
Synthetic test address · postcode allocation unverified

Address field details

Postal code
SW1A 1NX
Copy
Constituent country (reference filter, not required county)
England
Copy
Town / locality
Westminster Abbey
Copy
Street
Meadow Road
Copy
Building number
123
Copy
Unit (optional)
Copy
Country code
GB
Copy

Synthetic recipient

Name
Pat Reynolds-Boehm
Copy
Gender
Non-binary
Copy
Date of birth
1985-04-24
Copy
Test phone
0141 201 5397
Copy
Test email
[email protected]
Copy

Company and employment

Company
King Inc
Copy
Department
Applications
Copy
Job title
Global Applications Planner
Copy
Company website
https://gb-company-10ssdwn.example
Copy

Test identity document

Test document number
TEST-GB-2225135975
Copy
Document type
Test identity record
Copy
Issue date
2026-01-01
Copy
Expiry date
2036-01-01
Copy

Financial information

Bank
Cedar Test Bank
Copy
Type
Visa
Copy
Card number
4242 4242 4242 4242
Copy
CVV
766
Copy
Expiry
12/2034
Copy
Cardholder name
Pat Reynolds-Boehm
Copy

For testing only; coincidental matches are possible. No delivery, payment, identity or third-party validation is guaranteed. Localities are not verified post towns; county is optional.

UK address format

Write recipient, optional unit, building number and street, any necessary dependent locality, town/locality, then postcode. International output adds UNITED KINGDOM on its final line. County is optional when town and postcode are present. A constituent-country filter is not a required postal county.

Single-line addressSynthetic format sample
TEST RECIPIENT, Flat 2, 12 Synthetic Lane, INVENTED LOCALITY, M1 2AB, UNITED KINGDOM
Multi-line addressSynthetic format sample
TEST RECIPIENT
Flat 2
12 Synthetic Lane
INVENTED LOCALITY
M1 2AB
UNITED KINGDOM

Synthetic format example only. Uppercase the postcode with one space before its three-character inward code. Outward codes have varying lengths. Town/locality is not a Royal Mail verified post town.

Coverage and sources

England
Westminster Abbey · SW1A
England
Manchester · M1
Scotland
Edinburgh · EH1
Wales
Cardiff · CF10
Northern Ireland
Belfast · BT1

The list above is the actual representative selection, not complete national coverage. Source-linked outward codes, locality and coordinates remain together. Unmapped records are excluded.

GeoNames source and attribution · CC BY 4.0

GB.zip provides outward codes, not allocated complete postcodes. Inward codes are synthesized. GB_full is not used. Code-Point Open excludes Northern Ireland; restricted ONS BT data is not included. Reference maps describe source areas, never synthetic buildings.

Testing and failure cases

Checkout forms

Illustrative test: normalize lowercase postcode input to uppercase with one space, leave county empty, and compare UI, copied values and submitted strings.

CRM round trips

Save and reload the postcode as a string without filling an empty county from stale data. Town/locality is not a verified post town.

Reproduction and recovery

Keep the seed, generation count, dataset and rule versions. Version changes may change samples. Empty selections clear results.

United Kingdom address generator FAQ

Are these postcodes allocated?

No allocation check is performed. Complete postcodes contain synthetic inward codes; no delivery or third-party acceptance is promised. Use a fake address for testing only, never to receive deliveries, issue real bills or prove an address. Synthetic results may coincidentally overlap real records.

Which countries are in scope?

England, Scotland, Wales and Northern Ireland, code GB. Excludes the Republic of Ireland, Crown Dependencies and overseas territories. See the actual coverage list and source versions above.

How do I reproduce a record?

Keep the same filter, seed, generation action count, dataset and rule version. JSON and CSV retain provenance and synthetic flags.

Explore other country generators