ToolsForcebeta

$ run --tool

API Mock Generator

Design a schema, pick field types, and instantly generate realistic mock JSON responses with cURL and JS Fetch snippets.

Method
Endpoint

Schema Fields5 fields

KeyType
1
2
3
4
5

Response Options

max 100

Features

  • 30+ field types — UUID, name, email, phone, address, date, price, image URL, lorem paragraph, arrays and more
  • Add unlimited fields with custom ordering
  • Configurable record count (1–100)
  • Optional response envelope with custom array key and meta block
  • HTTP method and endpoint labels for context
  • Status code selector
  • Three output tabs: JSON Response, cURL snippet, JS Fetch snippet
  • Response stats — record count, field count, file size, status
  • Download as .json, .sh, or .js

How to use

  1. 1Define your schema by adding fields — name each field and pick its type (UUID, email, date, price, and more)
  2. 2Set how many records you want and whether to wrap in a response envelope
  3. 3Click Generate Mock to produce realistic JSON
  4. 4Copy the JSON, or switch to the cURL / JS Fetch tabs for ready-to-use request snippets
  5. 5Download the output as a file for use in your project

Frequently asked questions

Is any data sent to a server?+

No — all data is generated in your browser using JavaScript. Nothing is uploaded or stored.

Can I add my own custom values?+

Yes — choose the 'Custom Value' field type and enter any static value you want repeated across records.

What does 'Wrap in envelope' mean?+

Instead of returning a bare array, the response is wrapped in an object with a 'success', 'status', your chosen array key, and a 'meta' block containing pagination info — a common REST API pattern.

Can I use the generated data as a mock API?+

Download the JSON and serve it with any static file server, or paste it into tools like JSON Server, MSW, or Mockoon.

Related tools

Need a tool that isn't here yet?

ToolsForce is growing every week. Tell us what to build next.

Request a tool