DevTools Logo

Address Generator

Address Generator

Generate fictional addresses in the right postal format for 21 countries, and check postal codes. Test data only.

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Try an example

Settings

US · 1 address

Each address comes from a real city with its own region and postal code range, so the three agree. Streets and numbers are made up. Addresses are fictional and not deliverable.

Testing Only: Test data only: randomly generated, may coincidentally match a real number. Never use in real applications, payments, KYC or official forms.

Press ⌘/Ctrl+Enter for a fresh batch. Values use the browser's secure random source.

Generated addresses

No addresses yet

Pick a country and press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal.

    Examples

    Validate a UK postcode with the spaced format

    Input
    country: GB
    postcode: SW1A 1AA
    Output
    Valid format

    The UK format allows 1–2 letters, a digit, an optional letter/digit, then a digit and two letters, with an optional space before the inward code.

    Reject a too-short US postcode

    Input
    country: US
    postcode: 1234
    Output
    Invalid — Does not match the expected postal format for this country

    US ZIP codes are exactly 5 digits, optionally followed by -#### for ZIP+4.

    Accept a Brazilian CEP

    Input
    country: BR
    postcode: 01310-100
    Output
    Valid format

    BR accepts only the dashed 5+3 form; the undashed 8-digit string would be rejected.

    Use cases

    Seeding a test database

    Generate a batch of plausible US or UK addresses in JSON to import as fixture rows during development.

    Filling mock checkout forms

    Populate single-line addresses when prototyping shipping or address-book flows without exposing real customer data.

    Validating user-supplied postcodes at the point of entry

    Paste a postcode the user typed and confirm it matches the selected country's expected shape before letting it through.

    Sanity-checking localised address layouts

    Compare multi-line output across countries to see where the postal code, region, and country name appear in the conventional order.

    Common mistakes

    Mistake:Assuming the validator confirms the postcode is real or currently in use.

    Fix:The validator only checks the format (length, allowed characters, structure) — not whether the postcode has been assigned or whether a street exists.

    Mistake:Treating generated addresses as real and forwarding them to customers or third parties.

    Fix:The generator emits valid-shaped but fictional data. The page includes a Testing Only notice; only use the output for software development.

    Mistake:Expecting the same JSON field set for every country.

    Fix:Country-specific builders add fields such as district, province, prefecture, area, or building based on local convention, so the JSON shape varies by country.

    Mistake:Assuming UK and Canadian postcodes use the same regex.

    Fix:GB accepts 1–2 letters + digit + optional alphanum + digit + 2 letters (with optional space), while CA enforces an A1A 1A1 pattern — the validator uses country-specific rules.

    Frequently asked questions

    What kind of addresses does this generate?

    It creates realistic-looking test addresses in the selected country's format, with single-line, multi-line, JSON, and HTML output options.

    Are the generated addresses real?

    No. They are synthetic values intended for demos, UI testing, and development—not for identity verification, shipping, or official records.

    Which countries are supported?

    The generator includes formats for 21 countries. Choose a country to use its local ordering, labels, and postal-code style.

    References & standards