Test data guides

Check a UK address card and its structured export

·

A checkout prototype shows an address card and stores each field in a test fixture. Use a UK example to check that the building, flat and postcode each have enough room, then compare the fields your form receives.

Placeholder Address Generator

Build a UK test address with a flat from seed 79

Select Load example. The tool creates two United Kingdom rows with the recipient and apartment or flat options selected. The first address starts with Ellis Alder, then Flat 28 and 105 Fixture Willow Lane.

Find EDINBURGH on the following line and EH1 1BB on the next one. The Post Office's UK format places the post town and postcode on separate lines. The fixture displays the town in uppercase and uses an invented street.

UK Post Office guide to addressing mailAback Tools Placeholder Address Generator

Verify the flat and postcode in the JSON export

Switch Output format to JSON and download placeholder-addresses.json. Check that the first object stores 105 Fixture Willow Lane in line1, Flat 28 in line2 and EH1 1BB in postalCode. The region field contains City of Edinburgh.

Switch to Single-line text to inspect the same two records as comma-separated address lines. When a test covers a house, clear Include apartment or flat and generate again with seed 79. The first street and postal code stay the same and the line2 field is absent.

UK Post Office guide to addressing mailRFC 8259, JSON Data Interchange Format

Keep leading zeros when testing US CSV imports

Select United States, set Seed to 1 and Count to 1, then generate. The Boston row has postalCode 02108. Switch to CSV and import its postalCode column as text to preserve the opening zero.

Regional formats let you test input shape. The United States uses five-digit ZIP examples. The India layout uses six-digit PIN examples. The examples do not verify a street with a postal carrier.

USPS Domestic Mail Manual section 602, AddressingIndia Post, Locate Post Office

Common questions

Why does the flat appear above the street in the multi-line preview?

The UK preview puts the flat on a preceding line. The structured output uses line1 for the street and line2 for the optional flat, which lets you render a different field order.

Does the postcode prove that the sample street exists?

No. The mock address uses a settlement and postcode example with an invented street. Use the output when testing layout or how fields are stored.

Sources

Put it into practice.

Related guides