Mock Data Generator
Generate JSON test fixtures from a short schema. Describe the fields and get deterministic rows back, so a failing test reproduces from the same seed.
schema0 ln / 0 ch
json
readytypes: uuid int float bool name email word sentence city country url date ip phone enum id / [x] array / {k:v} object
local / nothing uploadedAbout this tool
Generate JSON test fixtures from a short schema. Describe the fields once and get deterministic rows back, so a failing test can be reproduced exactly.
How to use it
- Describe fields as name:type pairs, separated by commas.
- Set the row count and seed.
- Press Generate.
- Copy the JSON array into your fixture or database.
Examples
Three fields
id:uuid, name:name, age:int
An array of five objects with those keys.
Limits and notes
- Some generators produce deliberately implausible values; treat it as shape data.
- At most 500 rows per generation.
Frequently asked questions
- What types exist?
- uuid, int, float, bool, name, first, last, email, word, sentence, city, country, url, date, datetime, ip, phone, enum and id.
- How do I nest?
- Braces for objects: address:{city:city}. Brackets for arrays: tags:[word].
- Why is the output the same every time?
- The seed drives the generator. Change the seed for a different set.
- Is any data sent to a server?
- No, generation happens in the page.
Want the details? Read the full guide: Fixtures That Come Back the Same Every Time.
Related Tools
UUID GeneratorGenerate cryptographically secure Version 4 (v4) UUIDs. Create batches of up to 100 unique identifiers at once, perfect for database primary keys or test data.
Regex TesterTest regular expressions in real-time. See highlighted matches, named capture groups, exact character indexes, and test replacement strings with JavaScript flavors.
Cron GeneratorExplain cron expressions in plain English and predict the next 5 run times. Validate syntax for Linux crontab or serverless schedulers before deploying jobs.
Timestamp ConverterConvert Unix timestamps to human-readable dates and vice versa. Includes a live clock and automatically handles seconds or milliseconds for easy debugging.
Timestamp BatchConvert a whole list of Unix timestamps or dates at once. The unit is detected per line, so mixed seconds and milliseconds are handled together.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.
JSON FormatterBeautify, validate, minify, and view JSON. Format messy API responses into readable code or compress it to save bandwidth, running safely in your browser.
JSON MinifierCompress JSON to a single line. Remove all unnecessary whitespace and line breaks to reduce payload size for production APIs without altering the underlying data.