🔒 Runs in your browser — nothing is uploaded✓ Free, no signup

Mock JSON Data Generator

Define fields — names, emails, addresses, dates, numbers or your own list of values — and generate realistic fake JSON for testing, prototypes and demos.

Template

Fields

Use dots in a name (address.city) to create nested objects.

Output settings

Mock JSON

0.0 KB · fake data, generated in your browser

When should you use the Mock JSON Generator?

  • Mocking an API response before the backend is ready
  • Filling a UI or table with realistic sample data
  • Creating seed data and test fixtures

How to use the Mock JSON Generator

  1. 1

    Start from a template

    Users, Products, Orders or Employees — or build your own.

  2. 2

    Edit the fields

    Rename fields, change their type, set ranges like 1-100 or lists like active, pending.

  3. 3

    Nest and null

    Use dots (address.city) for nested objects, and a null chance to test missing values.

  4. 4

    Generate

    Choose the number of rows, then copy or download the JSON.

Examples

One generated user

Fields

id: ID, name: Full name, email: Email, address.city: City

JSON (values vary)

[
  {
    "id": 1,
    "name": "Priya Sharma",
    "email": "priya.sharma1@example.com",
    "address": { "city": "Bengaluru" }
  }
]

Common errors and how to fix them

Names and emails don't match
They do within a row — each row picks one person and builds the name, email and username from it.
The output is slow with many rows
Up to 10,000 rows are supported. For bigger datasets, generate in several batches.
Related tools: JSON to SQL · JSON Formatter · JSON Schema Generator

More from JSON Tools

Free tools that run in your browser — no signup, nothing uploaded.

Mock JSON Generator FAQ

No. Names come from a list of common first and last names and are combined at random. Emails use reserved test domains like example.com.

IDs, UUIDs, names, emails, usernames, phones, ages, numbers, prices, booleans, dates, timestamps, addresses, cities, countries, coordinates, companies, job titles, products, URLs, IPs, colours, words, sentences, paragraphs, your own list of values and arrays of words.

Yes. A field named address.city creates { "address": { "city": … } }.

Yes — tick Wrap in an object to get { "data": [...], "total": n }, like many APIs return.

Values are picked with the Web Crypto random generator, though for test data that mostly means good variety.

No. Everything runs in your browser, so your data never leaves your device.