JSON Mock Data Generator
Generate an array of realistic fake records as JSON or NDJSON. Pick fields, or paste a JSON Schema and get data that matches it.
Define your fields above and hit Generate
Example output
[
{
"id": "7095c98a-dabf-479f-a611-c7d57c0bc92e",
"full_name": "Richard Hernandez",
"email": "joseph.miller42@test.dev",
"city": "Berlin",
"is_active": false,
"created_at": "2026-11-11T18:30:50.465Z"
},
{
"id": "645fd728-6ec9-459e-a894-7a9d450f203e",
"full_name": "Patricia Sanchez",
"email": "yuki.nakamura59@example.com",
"city": "Barcelona",
"is_active": true,
"created_at": "2025-12-05T12:14:23.068Z"
},
{
"id": "6847d093-19c0-4fc0-943b-60e8eb40952e",
"full_name": "Sandra Martinez",
"email": "hiroshi.hernandez73@test.dev",
"city": "Prague",
"is_active": false,
"created_at": "2026-07-16T15:39:48.984Z"
}
]Loading it
json-server
npx json-server --watch db.json # wrap the array as { "users": [...] }fetch mock
const users = await (await fetch("/mock-data.json")).json();How the JSON output is built
- →From a JSON Schema, the data follows type, format, enum, minimum and maximum, string lengths, required properties and $refs.
- →NDJSON writes one record per line, the format for bulk APIs, log pipelines and BigQuery loads.
- →A seed makes the output repeatable, so snapshot tests stay stable.
Frequently asked
Can I generate JSON that matches my schema?
Yes. Switch to From JSON Schema and paste it. Property names like email, city or created_at also get realistic values.
How do I serve the data as a fake REST API?
Save it as db.json in the shape { "users": [ ... ] } and run npx json-server db.json. You get GET, POST, PUT and DELETE on /users.
Everything is generated in your browser. Need the data in another shape? Convert it with CSV ↔ JSON, or describe its structure first with the JSON Schema Generator.