Random UK Address Generator
These addresses are structurally valid but fictional, for software testing and form design. This is not a Royal Mail address lookup: nothing generated here is a real delivery point.
Generate realistic random UK addresses with genuine postcode districts, post towns and counties across England, Scotland, Wales and Northern Ireland. Every address is fictional and formatted to Royal Mail conventions, ready for QA automation, form validation and database seeding.
Example generated addresses
| Address | Post town | County | Postcode |
| 5 Nelson Street | KILMARNOCK | East Ayrshire | KA1 4WN |
| Suite 1, 203 Mount Pleasant Court | WARRINGTON | Cheshire | WA2 1QQ |
| 67 Lime Terrace, Ormeau | BELFAST | County Antrim | BT7 9SJ |
| 167 Wellington Place | STIRLING | Stirling | FK8 3HZ |
| 214 New Hill | HAMILTON | South Lanarkshire | ML3 5YN |
Press Generate on the page for a fresh set, or call GET /api/v1/addresses/random.
What the generator produces
- Real postal geography: 136 Royal Mail post towns, 803 postcode districts across 108 postcode areas, with the matching county, country, ONS region, coordinates and dialling code.
- Valid postcodes: a real outward code combined with a structurally valid generated inward code, so results pass UK postcode validation without being live delivery points.
- Safe telephone numbers: drawn only from the ranges Ofcom reserves for drama, so no generated number can reach a real subscriber.
- Bulk export: JSON, CSV, TSV, SQL, XML and Royal Mail envelope text, up to 1,000 records per request.
- Free REST API:
GET /api/v1/addresses/random with no API key or sign-up.
How the random UK address generator works
Each address is assembled from a registry entry rather than by shuffling unrelated fields together. The generator picks a post town, then a postcode district that town genuinely serves, and every other part of the address is derived from that single choice. That is why the county, country, region, dialling code and postcode area on a result always agree with one another.
- 1. Pick a location
- A post town is chosen from the registry, honouring any country or town filter you set. The town carries its own county, country, ONS region, coordinates and dialling code.
- 2. Pick a district
- A postcode district served by that town becomes the outward code — the part before the space. These are real Royal Mail districts, which is what makes the result geographically coherent.
- 3. Generate the inward code
- The three characters after the space are generated to the Royal Mail format rules, so the postcode validates but is not a live delivery point.
- 4. Build the delivery line
- A building number or building name is paired with a street, and where the district has a named locality it is added as a dependent locality line.
- 5. Add optional detail
- Recipient name, telephone number, coordinates and a sub-building line are attached on request. Telephone numbers come only from ranges Ofcom reserves for drama.
The structure of a UK address
Royal Mail sets out the expected layout in its Address Management Guide, usually called "Clear Addressing". Lines run from the most specific to the least, the post town goes in capitals on its own line, and the postcode sits last.
- Sub-building
- Flat, apartment, suite or unit number. Only present where a building is subdivided.
- Building name
- A named property such as "Rose Cottage" or "Beaufort House". Used instead of, or alongside, a number.
- Building number
- The number on the thoroughfare. Written on the same line as the street, never on its own line.
- Thoroughfare
- The street: Cheapside, Deansgate, Lime Street. The UK does not use directional prefixes such as "N" or "SW" in street names.
- Dependent locality
- A village or neighbourhood inside the post town’s area. Optional, and only used where it is needed to identify the address.
- Post town
- The sorting town, in capitals. This is a postal designation, not necessarily the town the property sits in.
- County
- Optional since 1996. Royal Mail has not required it for delivery for decades, but many web forms and legacy databases still expect one.
- Postcode
- On its own line, last. An outward code and an inward code separated by a single space.
UK addresses compared with US addresses
Test fixtures written against US addresses tend to break on UK data, because the two systems disagree about more than spelling. If you are localising a form or a validation routine, these are the differences that actually cause bugs.
| Element | United Kingdom | United States |
|---|
| Postal code | Postcode: 5–7 characters, letters and digits, one space (SW1A 1AA) | ZIP code: 5 digits, optionally +4 (90210, 90210-1234) |
|---|
| Administrative area | County — optional, and not part of the delivery address since 1996 | State — mandatory, two-letter abbreviation |
|---|
| Sorting locality | Post town, in capitals, may differ from the physical town | City, generally the physical city |
|---|
| Building identifier | Number or a building name; a name alone is common in rural areas | Street number, effectively always numeric |
|---|
| Street line | Number and street on one line, no directional prefix | Number, optional direction, street, then unit (123 N Main St Apt 4) |
|---|
| Sub-building | Flat 3, 12 Lime Street — above the street line | Apt 4 — appended to the street line |
|---|
| Postal code precision | Averages around 15 properties, enough to identify a street segment | A ZIP covers a delivery route or a whole town |
|---|
| Field to validate on | Postcode alone will resolve an address with a house number | ZIP plus street address are both needed |
|---|
The practical consequence: a form that stores a two-letter state, requires a numeric building number, or enforces a five-digit postal code will reject valid UK addresses. Generating realistic UK data is the quickest way to find those assumptions.
What people use generated UK addresses for
- Filling address forms during manual QA without typing a colleague’s home address into a staging system.
- Seeding a development or staging database with data that looks plausible in a UI and in exported reports.
- Writing automated tests for postcode validation, address parsing and delivery-fee logic, including the awkward cases: a building name with no number, a missing county, a Northern Ireland BT postcode.
- Load-testing checkout and registration flows with varied, well-formed input rather than one repeated fixture.
- Building demos, screenshots and documentation that need to look real without exposing anyone’s details.
- Localising software that was built for US addresses and needs UK data to shake out the assumptions.
What it is not for: anything that presents a generated address as a real one. It cannot be used for identity verification, to obtain goods or services, or to satisfy a Know Your Customer check — the addresses are not real places and will fail any check against the Postcode Address File.
Privacy: nothing you generate is stored
Addresses are generated on demand and returned. They are not written to a database, not logged, and not associated with you. Reloading the page produces different results because nothing was kept, not because anything was cleared.
- No account, sign-up or API key is required, so there is nothing to link a request to a person.
- Generated addresses are never persisted server-side. Access logs record the request path and status, as any web server does, and not the content of a response.
- The addresses themselves contain no personal data: recipient names are drawn from common name lists and combined at random, and no combination is checked against or derived from a real person.
- Telephone numbers come from Ofcom’s reserved drama ranges and email addresses use example.com (reserved by RFC 2606), so neither can reach anyone.
Need postcodes on their own? Use the random UK postcode generator. Writing an address by hand? See the UK address format guide.
Address generators by location
Countries
Post towns
Free UK developer tools
Guides
Related tools
All addresses generated by this site are fictional. They do not correspond to real properties or residents and are provided for software testing and development only.