PlayWithJSON

Mock JSON Generator

Generate realistic fake JSON data for APIs, testing, and development.

Template Configuration
Template:User
User Template Fields9 fields
Field Name
Type
Options
-
-
-
-
-
Min:Max:
Male, Female, Other
-
-
Generation Settings
(Max 500)
Generated JSON
1[
2 {
3 "id": "5c8f3e30-2b4a-4e5d-9a8c-1f3e2d4b5c6a",
4 "firstName": "Aarav",
5 "lastName": "Sharma",
6 "email": "aarav.sharma@example.com",
7 "phone": "+91 98765 43210",
8 "age": 28,
9 "gender": "Male",
10 "isActive": true,
11 "createdAt": "2024-10-15T08:30:25Z",
12 "address": {
13 "street": "123 MG Road",
14 "city": "Bengaluru",
15 "state": "Karnataka",
16 "pincode": "560001",
17 "country": "India"
18 }
19 },
20 {
21 "id": "8a1d2c3f-9b4e-4c6d-8e1f-2a3b4c5d6e7f",
22 "firstName": "Priya",
23 "lastName": "Verma",
24 "email": "priya.verma@example.com",
25 "phone": "+91 91234 56789",
26 "age": 32,
27 "gender": "Female",
28 "isActive": true,
29 "createdAt": "2024-09-28T14:22:11Z",
30 "address": {
31 "street": "456 Park Street",
32 "city": "New Delhi",
33 "state": "Delhi",
34 "pincode": "110001",
35 "country": "India"
36 }
37 },
38 {
39 "id": "3d9e7b6a-1c2f-4e8d-9a3b-7c5d1e2f4a6b",
40 "firstName": "Rohan",
41 "lastName": "Patel",
42 "email": "rohan.patel@example.com",
43 "phone": "+91 99887 66554",
44 "age": 26,
45 "gender": "Male",
46 "isActive": false,
47 "createdAt": "2024-08-12T10:18:47Z",
48 "address": {
49 "street": "789 Satellite Road",
50 "city": "Ahmedabad",
51 "state": "Gujarat",
52 "pincode": "380015",
53 "country": "India"
54 }
55 }
56]
3 records • 1.3 KB • Generated in 1ms
JSON•UTF-8

Mock JSON Generator — Realistic Fake Data for APIs & Testing

Generate realistic fake JSON data for APIs, unit testing, frontend prototyping, and database seeding in seconds with PlayWithJSON. Choose from rich pre-configured templates like Users, Products, Orders, Companies, and API Responses, or customize schemas with custom field types and constraints.

Equipped with deterministic seed generation, realistic names, phone formats, RFC4122 v4 UUIDs, nested address objects, and support for generating up to 2,000 records entirely in your browser with zero latency.

{}

Why Use PlayWithJSON?

  • Instant generation of up to 2,000 realistic records in milliseconds
  • Pre-built industry templates: User, Product, Order, Company, Blog Post, API Response
  • Custom field builder with UUID, Names, Emails, Phones, Integers, Booleans, and Dates
  • Deterministic seeds for reproducible unit and end-to-end testing
  • 100% Client-side execution — your data stays private in your browser

Why Choose Our Online Mock JSON Generator?

Preset Template Library

One-click presets for user accounts, e-commerce products, orders, corporate profiles, and API payloads.

Smart Field Types

Generate authentic first and last names, localized phone numbers, valid email structures, and timestamps.

Configurable Constraints

Set custom min/max bounds for integers and prices, custom choice lists for categories, and toggle uniqueness.

Nested Object Support

Easily include realistic nested objects such as street, city, state, pincode, and country inside parent objects.

Reproducible Seeds

Use seed values to generate the exact same dataset across test runs and CI/CD pipelines.

Export JSON & CSV

Copy directly to clipboard, minify payload, or download formatted .json and .csv files.

How to Generate Mock JSON Data in 3 Steps

1

Select a Template or Add Fields

Pick a starting template like User, Product, or Order, or click "+ Add Field" to build your custom schema.

2

Configure Types & Record Count

Choose your desired record count (from 1 to 2,000), select your locale, and adjust min/max boundaries.

3

Generate & Export

Click "Generate JSON" to view syntax-highlighted data with line numbers, then copy or download with one click.

Mock Template Configuration & Generated Output

Configured Schema (Template Fields)
{ "fields": [ { "name": "id", "type": "uuid" }, { "name": "firstName", "type": "firstName" }, { "name": "lastName", "type": "lastName" }, { "name": "email", "type": "email" }, { "name": "phone", "type": "phone" }, { "name": "age", "type": "integer", "min": 18, "max": 60 }, { "name": "isActive", "type": "boolean" } ], "count": 1, "locale": "India" }
Generated Mock JSON Record
1{
2 "id": "5c8f3e30-2b4a-4e5d-9a8c-1f3e2d4b5c6a",
3 "firstName": "Aarav",
4 "lastName": "Sharma",
5 "email": "aarav.sharma@example.com",
6 "phone": "+91 98765 43210",
7 "age": 28,
8 "isActive": true,
9 "address": {
10 "street": "123 MG Road",
11 "city": "Bengaluru",
12 "state": "Karnataka",
13 "pincode": "560001",
14 "country": "India"
15 }
16}

Deterministic Seed Reproduction

Random Auto Seed (Changes on Each Run)
1// Seed: Auto / Empty
2// Run 1: "Aarav Sharma"
3// Run 2: "Rohan Patel" (Different every time)
Warning: Without a seed, output values will randomize on regeneration.
Fixed Deterministic Seed (Reproducible)
1// Seed: "test-seed-42"
2// Run 1: "Aarav Sharma"
3// Run 2: "Aarav Sharma" (Identical across runs)

Supported Generator Features & Data Types

RFC 4122 v4 UUID generator
100+ Indian & Global first names (male & female)
100+ Reusable last names for authentic distribution
Phone format generator with +91 and +1 country codes
Developer email synthesizer with custom domain pools
Integer and Float ranges with min/max and precision
Nested address objects (street, city, state, pincode, country)
Deterministic Mulberry32 pseudo-random seed engine
Export to formatted .json and spreadsheet .csv
Instant generation of up to 2,000 records (<5ms)
100% Client-side execution in your browser
Frequently Asked Questions

Frequently Asked Questions (FAQ)

No. All mock data generation algorithms, PRNG randomness, and schema formatting execute 100% locally in your browser using modern Web APIs. No data is stored or transmitted.

More JSON Developer Tools

View All Tools

JSON Formatter

Format, validate and inspect JSON data

JSON5 Formatter

Format and validate JSON5 with comments

JSON ↔ JSON5

Convert between JSON and modern JSON5

JSON to TypeScript

Generate TypeScript interfaces from JSON

JSON to Zod

Generate Zod schemas from JSON

Text to JSON

Convert text and schemas into structured JSON

JSON Sorter Online

Sort JSON keys alphabetically and order arrays

JWT Decoder Online

Decode JWT header, payload and expiration

JSON Stringify Online

Escape quotes and stringify or unescape JSON

Mock JSON Generator

Generate realistic mock data for APIs and testing

JSON to CSV

Export structured JSON arrays into CSV spreadsheets

JSONPath Tester

Query and filter JSON data with path expressions

JSON Schema Generator

Generate JSON Schema from sample JSON

JSON Diff & Compare

Compare two JSON objects and find differences

JSON ↔ YAML

Convert JSON/JSON5 to YAML and back with comments

JSON ↔ XML

Convert JSON to XML and XML to JSON with attributes

YAML to CSV

Convert YAML lists and objects into spreadsheets

CSV to JSON / JSON5

Convert CSV/TSV to JSON or JSON5 with type parsing

JSON to BigQuery

Generate BigQuery Schema JSON and CREATE TABLE DDL

JSON to GraphQL

Generate GraphQL SDL types, queries, and inputs

JSON to MySQL

Generate MySQL CREATE TABLE DDL and INSERT queries

JSON to PostgreSQL

Generate PostgreSQL CREATE TABLE DDL, JSONB and INSERTs

JSON Flattener

Flatten nested JSON to dot notation or unflatten back

JSON Tree Visualizer

Interactive SVG mindmap graph and collapsible node tree

JSON Minifier Online

Compact and compress JSON by stripping whitespace

JSON Token Counter

Calculate LLM tokens (GPT-4o, Claude) and API costs

Broken JSON Repair

Automatically heal broken and truncated AI/LLM JSON