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 user JSON data

This template produces a list of 5 to 10 user accounts. Each user has a unique ID, a first and last name, a username built from those two names, an email address on gmail.com or example.com, a random password, a phone number, an active flag, a creation date between 2020 and 2025, and a nested address. Open it in the generator to change the fields or the number of users.

Open in JSON Generator

Template

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

{
  "users": [
    "repeat(5,10)",
    {
      "id": "guid()",
      "firstName": "firstName()",
      "lastName": "lastName()",
      "username": "this.firstName-this.lastName",
      "email": "email(gmail.com, example.com)",
      "password": "password()",
      "phone": "phoneNumber()",
      "active": "enum(true, false)",
      "createdAt": "date(2020-01-01, 2025-12-31)",
      "address": {
        "street": "street()",
        "city": "city()",
        "country": "country()"
      }
    }
  ]
}

Fields

Fields in the Sample user JSON data template and what each one generates
FieldTemplateWhat it generates
users[]repeat(5,10)An array of 5–10 items
users[].idguid()
  • guid(): Generates a globally unique identifier ( UUID v4).
users[].firstNamefirstName()
  • firstName(): Generates a random first name.
users[].lastNamelastName()
  • lastName(): Generates a random last name.
users[].usernamethis.firstName-this.lastNameBuilt from other fields in the same record
users[].emailemail(gmail.com, example.com)
  • email(): Generates a random email address.
users[].passwordpassword()
  • password(): Generates a random password.
users[].phonephoneNumber()
  • phoneNumber(): Generates a random phone number.
users[].activeenum(true, false)
  • enum(): Generates a random value from the list of arguments.
users[].createdAtdate(2020-01-01, 2025-12-31)
  • date(): Generates a random date.
users[].address.streetstreet()
  • street(): Generates a random street address.
users[].address.citycity()
  • city(): Generates a random city name.
users[].address.countrycountry()
  • country(): Generates a random country name.

Sample output

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

{
  "users": [
    {
      "id": "978cb6f8-aa3e-4ff5-8e46-32c05d633cef",
      "firstName": "Cortney",
      "lastName": "Rogahn",
      "username": "Cortney-Rogahn",
      "email": "Mervin68@gmail.com",
      "password": "pI9Edd09rerx2Ta",
      "phone": "964.537.2419",
      "active": true,
      "createdAt": "2020-02-08T17:27:25.912Z",
      "address": {
        "street": "53217 Will Fall",
        "city": "Beahanfurt",
        "country": "Republic of Korea"
      }
    },
    {
      "id": "1902c080-e138-42cc-b7e6-1147fb7eedf6",
      "firstName": "Jarod",
      "lastName": "Kuhlman",
      "username": "Jarod-Kuhlman",
      "email": "Timmy.McCullough@gmail.com",
      "password": "ldep5a889cTkOwZ",
      "phone": "1-294-345-2126 x3977",
      "active": true,
      "createdAt": "2025-11-24T23:23:25.810Z",
      "address": {
        "street": "650 Tressie Loaf",
        "city": "Brennonstad",
        "country": "Micronesia"
      }
    }
  ]
}

Use cases

  • Mock a /users endpoint while the real API is still being built.
  • Seed a development or test database with accounts that look like real signups.
  • Fill a user table or profile screen in a UI prototype or screenshot.
  • Test sign-up, search and filtering code against varied names and addresses.

Related

More sample data: E-commerce orders, Product catalog, Addresses, 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.