JSON Generator
Generate sample JSON data with customizable schemas and data types for testing and prototyping
Generation Schema
Generated Data
Define a schema and generate data to see results here
📚 Data Types
Basic Types
string - Random textnumber - Numeric valuesboolean - True/falsedate - Date valuesuuid - Unique IDsRealistic Data
person.name - Full namesinternet.email - Email addressesaddress.city - City namescompany.name - Company namescommerce.product - Product namesComplex Types
array - Lists of itemsobject - Nested objectsenum - Predefined valuesRelated JSON Tools
JSON Minifier
JSON Beautifier
JSON Converter
JSON Schema Validator
About JSON Generator
JSON Generator creates realistic sample data based on customizable schemas. Perfect for testing APIs, prototyping applications, and generating mock data.
Key Features
Random Data Generation
Generate realistic random data for various data types
Multiple Data Types
Support for strings, numbers, booleans, arrays, and objects
Custom Schemas
Define your own data structure and generation rules
Realistic Data
Generate data that resembles real-world scenarios
Bulk Generation
Generate multiple records at once for testing
Export Options
Download generated data in various formats
Supported Data Types
Basic Types
- • String: Names, emails, addresses
- • Number: Integers, floats, ranges
- • Boolean: True/false values
- • Date: Timestamps, formatted dates
Complex Types
- • Array: Lists of any data type
- • Object: Nested data structures
- • UUID: Unique identifiers
- • Enum: Predefined value sets
Realistic Data
- • Person: Names, ages, profiles
- • Address: Streets, cities, countries
- • Company: Names, domains, industries
- • Lorem: Placeholder text
Generation Examples
Example 1: User Profile Data
Schema:
{
"type": "object",
"count": 3,
"properties": {
"id": {"type": "uuid"},
"name": {"type": "person.name"},
"email": {"type": "internet.email"},
"age": {"type": "number", "min": 18, "max": 65},
"active": {"type": "boolean"}
}
}Generated Data:
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Alice Johnson",
"email": "alice.johnson@example.com",
"age": 29,
"active": true
},
{
"id": "b2c3d4e5-f6g7-8901-bcde-f23456789012",
"name": "Bob Smith",
"email": "bob.smith@example.com",
"age": 34,
"active": false
}
]Example 2: Product Catalog
Schema:
{
"type": "object",
"count": 2,
"properties": {
"id": {"type": "number", "min": 1000, "max": 9999},
"name": {"type": "commerce.product"},
"price": {"type": "number", "min": 10, "max": 500, "decimals": 2},
"category": {"type": "enum", "values": ["Electronics", "Clothing", "Books"]},
"inStock": {"type": "boolean"},
"tags": {"type": "array", "items": {"type": "string"}, "length": 3}
}
}Generated Data:
[
{
"id": 1234,
"name": "Wireless Headphones",
"price": 89.99,
"category": "Electronics",
"inStock": true,
"tags": ["wireless", "audio", "portable"]
},
{
"id": 5678,
"name": "Cotton T-Shirt",
"price": 24.50,
"category": "Clothing",
"inStock": false,
"tags": ["cotton", "casual", "comfortable"]
}
]Frequently Asked Questions
How do I define a custom schema?
You can define a schema using JSON format that specifies the data structure, types, constraints, and generation rules. The schema supports nested objects, arrays, and various data type configurations.
What data types are supported?
The generator supports basic types (string, number, boolean, date), complex types (object, array, enum), and realistic data types (person names, addresses, emails, company names, lorem text, and more).
Can I generate multiple records at once?
Yes, you can specify a count parameter in your schema to generate multiple records. The tool can generate hundreds or thousands of records efficiently for bulk testing.
How realistic is the generated data?
The generator uses realistic data sources and patterns to create believable test data. Names, addresses, emails, and other data types follow real-world formats and distributions.
Can I control the randomness?
Yes, you can set constraints like min/max values for numbers, length ranges for strings, specific value sets for enums, and array length limits to control the generated data.
What export formats are available?
Generated data can be exported as JSON, CSV, or copied to clipboard. You can also download the schema definition for reuse in future generations.