JSON Mock Generator — Generate Realistic Test Data
Generate realistic mock JSON data from a JSON Schema using Faker. Perfect for prototyping, testing, and populating demo environments with lifelike data. 100% client-side.
JSON Mock Generator — Generate Realistic Test Data
Generate realistic mock JSON data from a JSON Schema using Faker. Perfect for prototyping, testing, and populating demo environments with lifelike data. 100% client-side.
How to Use
- Define your JSON Schema in the input editor (or use the default template).
- Adjust the count and click Generate Mock to create realistic test data.
- Copy the generated data for testing, demos, or API development.
Frequently Asked Questions
Questions about this tool? We've got answers.
What data does the generator produce?
The generator uses Faker.js to produce realistic data including names, emails, phone numbers, addresses, and more — all matching your schema structure and type constraints.
Can I control the output size?
Yes. Use the count slider to control how many objects to generate. You can also set minimum/maximum values for arrays and strings in the schema itself.
Is my schema sent to any server?
No. All generation runs 100% inside your browser via a Web Worker.
Automated E2E Test Suite Logs
Our build systems validate edge-case processing under extreme conditions before each deployment.
Tool Changelog & Updates
- Fix: Fixed Faker path resolution — the tool now correctly reads the "faker" field in JSON Schema property definitions and calls the corresponding Faker.js method for realistic data generation.
- Feature: Added Load URL button for loading schemas from remote URLs.
- UX: Fixed i18n keys for Generate and Regenerate buttons.
- Feature: Added Web Worker thread-isolated test suite covering schema-based mock generation, nested object/array handling, enum value selection, and requestId propagation.
- Test: Introduced boundary error validation for empty inputs, malformed JSON schemas, and empty object schemas.
- Performance: Included large-schema (4MB+) stress benchmark with heap memory and execution time telemetry.
- Feature: Initial release