JSONGenerator
GeneratorSchemaConvertersExamplesDocs

JSONGenerator

Free online tools for generating random JSON data and JSON Schemas.

Quick Links

  • JSON Generator
  • JSON Schema Converter
  • Examples
  • Docs
  • Blog
  • About
  • Contact
  • Privacy Policy

Converters

  • JSON to YAML
  • YAML to JSON
  • XML to JSON
  • JSON to XML
  • JSON to TOML
  • TOML to JSON
  • JSON to CSV
  • CSV to JSON
  • JSON to Excel
  • Excel to JSON
  • JSON to HTML table
  • JSON to TypeScript
  • JSON to C#
  • JSON to Go
  • JSON to Java
  • JSON to SQL

Support

Having issues? Contact us.

© 2026 JSON Generator. All rights reserved.

Sample address JSON data

This template produces 10 postal addresses. Each one has a street address, city, state, ZIP code and country, plus a nested coordinates object with a latitude and a longitude. The parts are generated independently, so the city, state and coordinates in one record do not necessarily match each other.

Open in JSON Generator

Template

Paste this into the JSON Generator to produce data like the sample below.

{
  "addresses": [
    "repeat(10)",
    {
      "street": "street()",
      "city": "city()",
      "state": "state()",
      "zip": "zipCode()",
      "country": "country()",
      "coordinates": {
        "latitude": "latitude()",
        "longitude": "longitude()"
      }
    }
  ]
}

Fields

Fields in the Sample address JSON data template and what each one generates
FieldTemplateWhat it generates
addresses[]repeat(10)An array of 10 items
addresses[].streetstreet()
  • street(): Generates a random street address.
addresses[].citycity()
  • city(): Generates a random city name.
addresses[].statestate()
  • state(): Generates a random state name.
addresses[].zipzipCode()
  • zipCode(): Generates a random ZIP code.
addresses[].countrycountry()
  • country(): Generates a random country name.
addresses[].coordinates.latitudelatitude()
  • latitude(): Generates a random latitude coordinate.
addresses[].coordinates.longitudelongitude()
  • longitude(): Generates a random longitude coordinate.

Sample output

The first 2 items of each list from one run of the template. Every click on Generate produces new data.

{
  "addresses": [
    {
      "street": "60866 W 5th Street",
      "city": "East Precious",
      "state": "Rhode Island",
      "zip": "54029-2927",
      "country": "Poland",
      "coordinates": {
        "latitude": -86.1331,
        "longitude": -112.3534
      }
    },
    {
      "street": "85727 South Avenue",
      "city": "Augustburgh",
      "state": "West Virginia",
      "zip": "34032-8309",
      "country": "Albania",
      "coordinates": {
        "latitude": 51.0143,
        "longitude": -170.8735
      }
    }
  ]
}

Use cases

  • Test address forms, validation and autocomplete with varied input.
  • Seed a customer or delivery address table in a test database.
  • Drop pins on a map component while building a location feature.
  • Check that exports and imports handle names with spaces and punctuation.

Related

More sample data: User profiles, E-commerce orders, Product catalog, Flight bookings, Network logs, Employee directory.

See the template tag reference for every tag, browse all examples, or turn your generated data into a contract with the JSON Schema Generator.