Mock JSON Generator

Describe the fields you need and get a JSON array of fake records to drop into a frontend, a mock API or a unit test. Pick a ready shape (users, orders, products, employees) or build your own, set how many records, and copy pretty-printed JSON. Switch to TypeScript to get an interface with the data.

Start from

Up to 10,000.

Used by SQL and TypeScript output.

Same seed, same data.

Output

Fields

Made-up data for testing. Emails use example.com, example.org and example.net, which can never receive mail. Mobile numbers are random and may belong to real people, so never call or message them.

Data generation runs in your browser. What you type never leaves this device.

Features

  • Pretty-printed JSON array, valid and ready to JSON.parse

  • Real JSON types: numbers for ids, prices and quantities, true/false for flags, null for empty fields

  • ISO dates and timestamps (2026-11-02, 2026-11-02T10:30:00Z) that JavaScript Date parses

  • Choose a share of null values per field to test empty states

  • TypeScript output with an interface and a typed const array

Good for

Mock API responses

Serve the file from json-server, MSW, a Postman mock server or a static file while the real backend is being built.

Component stories

Feed Storybook stories and design reviews with enough varied records to show long names, empty fields and many rows.

Unit and snapshot tests

Fix the seed so the same JSON is generated every time, and keep it as a fixture.

Shaping the JSON

Field names become keys

Each field name is used exactly as typed as the JSON key, so match your API: created_at for snake_case, createdAt for camelCase. Field order is the key order in each object.

Testing edge cases

  • Set Empty in to 20% on optional fields to check how your UI handles null.
  • Use One of a list for enums like status or plan, with exactly the values your API returns.
  • Raise rows to 1,000 or more to test scrolling, pagination and search performance.

Mock JSON Generator - FAQ