Mock Data Generator

Generate realistic fake data with 50+ field types, output as JSON, CSV, SQL, or XML.

POST 1 credit /v1/mock-data
curl -X POST "https://devtools.toolkitapi.io/v1/mock-data" \
  -H "Content-Type: application/json" \
  -d '{
    "fields": [
      {"name": "id", "type": "sequence"},
      {"name": "name", "type": "name"},
      {"name": "email", "type": "email"},
      {"name": "city", "type": "city"},
      {"name": "price", "type": "price", "options": {"min": 10, "max": 500}}
    ],
    "rows": 3,
    "output_format": "json"
  }'
import httpx

resp = httpx.post(
    "https://devtools.toolkitapi.io/v1/mock-data",
    json={
    "fields": [
      {"name": "id", "type": "sequence"},
      {"name": "name", "type": "name"},
      {"name": "email", "type": "email"},
      {"name": "city", "type": "city"},
      {"name": "price", "type": "price", "options": {"min": 10, "max": 500}}
    ],
    "rows": 3,
    "output_format": "json"
  },
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/mock-data", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "fields": [
      {"name": "id", "type": "sequence"},
      {"name": "name", "type": "name"},
      {"name": "email", "type": "email"},
      {"name": "city", "type": "city"},
      {"name": "price", "type": "price", "options": {"min": 10, "max": 500}}
    ],
    "rows": 3,
    "output_format": "json"
  }),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "data": [
    {"id": 1, "name": "Alice Johnson", "email": "[email protected]", "city": "Portland", "price": 249.99},
    {"id": 2, "name": "Bob Smith", "email": "[email protected]", "city": "Seattle", "price": 87.50},
    {"id": 3, "name": "Carol Davis", "email": "[email protected]", "city": "Denver", "price": 342.15}
  ],
  "rows": 3,
  "fields": 5
}

Try It Live

Live Demo

Description

Generate realistic fake data with 50+ field types, output as JSON, CSV, SQL, or XML.

How to Use

1

1. Define your `fields` — each with a `name`, `type`, and optional `options`. 2. Set `rows` (1–1000) and `output_format`. 3. Optionally set `locale`, `seed` for reproducibility, and `table_name` for SQL output.

About This Tool

Mock Data Generator creates realistic fake datasets with 50+ field types powered by Faker. Define your schema, set the row count, and get output in JSON, CSV, SQL INSERT statements, or XML.

Supports reproducible output via seed values, locale-specific data, nullable fields, and type-specific options for fine-grained control.

Why Use This Tool

Frequently Asked Questions

How do I get reproducible output?
Set the `seed` parameter to any integer. The same seed + same schema = identical output every time.
Can I generate data in other languages?
Yes — set `locale` to any Faker-supported locale like `de_DE`, `ja_JP`, `fr_FR`, `pt_BR`, etc.
How does the regex type work?
Pass a regex pattern in `options.pattern` (e.g. `[A-Z]{3}-\\d{4}`) and the generator will produce matching strings. Supports character classes, quantifiers, alternation, and groups.

Start using Mock Data Generator now

Get your free API key and make your first request in under a minute.