Mock JSON Generator
Generate realistic fake JSON data for APIs, testing, and development.
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
Select a Template or Add Fields
Pick a starting template like User, Product, or Order, or click "+ Add Field" to build your custom schema.
Configure Types & Record Count
Choose your desired record count (from 1 to 2,000), select your locale, and adjust min/max boundaries.
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
Deterministic Seed Reproduction
Supported Generator Features & Data Types
Frequently Asked Questions (FAQ)
More JSON Developer 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