UK Test Data Generator

Generate bulk synthetic UK address data and export it straight into a staging database, a CI fixture or a spreadsheet. Real postcode districts, post towns and counties; fictional buildings and postcodes; no personal data.

Why synthetic data

Copying live customer records into a test environment is processing personal data under the UK GDPR and the Data Protection Act 2018, and a breach in staging is as reportable as one in production. Synthetic data removes the exposure while exercising the same code paths.

Export formats

What a generated record contains

Each record is a complete fictional UK persona: a forename and surname drawn from common British names, an address with a building number or name, a thoroughfare, an optional locality, the post town in capitals, the county in the terminology of its country, and a structurally valid postcode on a real district; a telephone number from an Ofcom range reserved for drama, so it can never ring a real subscriber; and an email address on a reserved example domain. Business records add a company name with a realistic legal form. Nothing in a record is copied from a real person or property.

Choosing what you get

Filter by country (England, Scotland, Wales or Northern Ireland), by post town, or by address type (residential or commercial), and choose from 1 to 1,000 records per request. The awkward cases that break forms appear at roughly their real frequency: flats and sub-buildings, named houses with no number, long and hyphenated surnames, and Scottish and Northern Irish postcodes. The address generator covers addresses alone; this page is for whole records.

Reproducible datasets

Pass a seed parameter and the same request returns byte-identical records on every run, which keeps snapshot tests stable and lets a failing test be replayed exactly. Change the seed to get a different data set of the same shape.

Where it fits

Seed scripts for a development database, fixtures for automated tests, mock responses for an API your front end calls, load-test data at volume, and demonstration data for screenshots and training. For the reasoning behind synthetic data over masked production copies, see test data management: production copies, masked data and synthetic data; for the identifiers that often sit beside an address in a record, such as NHS numbers, National Insurance numbers, VAT numbers and bank details, the tools index has a validator and generator for each.

Read the REST API documentation or open the address generator.