Mock JSON Data Generator
About this tool
About Mock JSON Generator
Front-end work often starts before the API exists. This generator gives you a realistic JSON array to mock an endpoint, fill a fixture file or demo a table: define the fields you need, choose how many records, and copy the result. Field types cover IDs, UUIDs and sequences, people (names with matching emails and usernames, phone numbers, job titles), companies, addresses and coordinates, dates and ISO timestamps, numbers and prices in a range, booleans, values picked from your own list, and text. Numbers and booleans come out as real JSON numbers and booleans, not strings, and a Blank % per field produces null values so you can test empty states. A seed makes every run repeatable, which keeps snapshot tests stable. Switch the output to CSV, SQL or TypeScript at any time from the same schema. The data is invented and generated in your browser; nothing is sent to a server.
Built and maintained by Abhi JainUpdated
How to Generate Mock JSON
- 1
Define the fields
Edit the field names and types, or click Add field. Set ranges and list values where shown.
- 2
Set rows and seed
Enter the number of records and keep or change the seed.
- 3
Copy the JSON
Copy the JSON array or download it as a .json file.
Mock JSON Generator: questions and answers
What does the JSON look like?
An array of objects, one per row, with your field names as keys, for example [{"id": 1, "first_name": "Mia", "active": true}]. Numbers and booleans are typed values.
Can I use it with json-server or MSW?
Yes. Download the file and wrap it in the shape your mock server expects, for example {"users": [...]} for json-server.
Can I get the same data again?
Yes. Keep the same seed, fields and row count and the output is identical every time.
How do I get TypeScript types for it?
Switch Output to TypeScript to get an interface and a typed array, or paste any JSON into JSON to TypeScript.
More Mock Data Generator presets
Related tools
- CSV to SQLTurn a CSV file into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.
- JSON FormatterBeautify, minify and validate JSON with exact error locations, without changing a single value.
- JSON Schema GeneratorGenerate a draft 2020-12 JSON Schema from one or more JSON samples.
- SQL INSERT GeneratorType or paste rows into a grid and get INSERT statements for any major database.
- CSV Viewer & EditorOpen, edit, sort, filter and search big CSV files like a spreadsheet, then export CSV, TSV or JSON.