Random JSON Data Generator
Generate massive amounts of mock JSON data for API testing. Define custom schemas, use 25+ built-in data types, and export valid JSON.
Schema Template
Use {{key}} for dynamic data. keys: name, email, phone, city, country, date, bool, ip, uuid, color, job, company, money, guid, lorem...
Result
About
In the lifecycle of API development and frontend engineering, having robust mock data is essential. This tool allows developers to prototype applications before the backend is ready. Unlike static JSON files, this generator uses a schema-based approach, allowing you to define the structure and data types (e.g., specific formats for dates, realistic names, or geo-coordinates) dynamically.
The tool includes a built-in minifier and beautifier, making it a versatile utility for checking how your application handles large datasets, nested structures, and varied data types without risking production data.
Formulas
The generation process follows a schema-parsing algorithm:
- Step 1. Parsing. The system reads the user-provided JSON template.
- Step 2. Tokenization. Keys containing double curly braces (e.g.,
{{city}}) are identified as dynamic tokens. - Step 3. Randomization. Each token is replaced by a random selection from the internal database using a pseudo-random number generator (PRNG).
- Step 4. Iteration. The process repeats N times based on the requested 'Repeat Count' to generate an array of objects.
Reference Data
| Keyword | Description | Example Output |
|---|---|---|
{{name}} | Full Name | John Doe |
{{email}} | Email Address | j.doe@example.com |
{{phone}} | Phone Number | (555) 123-4567 |
{{date}} | ISO Date | 2024-10-15T08:30:00Z |
{{uuid}} | UUID v4 | a1b2c3d4-e5f6... |