Mock Data Generator API
Generate realistic mock data for testing: fake people, emails, addresses, companies, products, UUIDs and more. Export as JSON, CSV or SQL. 100% client-side.
The Mock Data Generator is also available as a free REST API. Send a POST request with a JSON body to https://dot.tools/api/tools/mock-data — no authentication, no API key, CORS enabled. Successful calls return { "ok": true, "result": { … } }; failures return HTTP 400 or 422 with an error body.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
rows | integer | required | Number of records to generate. |
fields | "firstName" | "lastName" | "fullName" | "username" | "email" | "phone" | "jobTitle" | "street" | "city" | "zipCode" | "country" | "company" | "product" | "price" | "uuid" | "integer" | "float" | "boolean" | "date" | "timestamp"[] | required | Fields to include in each record, in column order. |
format | "json" | "csv" | "sql" | required | Export format. |
tableName | string | required | Target table name for SQL INSERT statements. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
data | string | required | The generated dataset in the requested format. |
rows | number | required | Number of records generated. |
format | "json" | "csv" | "sql" | required | The export format used. |
Example request
curl -X POST https://dot.tools/api/tools/mock-data \
-H 'Content-Type: application/json' \
-d '{
"rows": 8,
"fields": [
"fullName",
"email",
"company",
"country",
"uuid"
],
"format": "json",
"tableName": "mock_data"
}'Sample response
{
"ok": true,
"result": {
"data": "[\n {\n \"fullName\": \"Ava Martin\",\n \"email\": \"harper.moore44@mail.io\",\n \"company\": \"Nimbus Works\",\n \"country\": \"Germany\",\n \"uuid\": \"f3b347c2-3cb9-4717-a2b0-3048ae5400e5\"\n },\n {\n \"fullName\": \"Joseph de Vries\",\n \"email\": \"evelyn.phillips45@icloud.com\",\n \"company\": \"Delta Labs\",\n \"country\": \"France\",\n \"uuid\": \"ce4a2401-60ac-4fbf-8c3d-6c372b71c90a\"\n },\n {\n \"fullName\": \"Harper Schulz\",\n \"email\": \"olivia.hoffmann13@mail.io\",\n \"company\": \"Pivot Ventures\",\n \"country\": \"Spain\",\n \"uuid\": \"8b8ef7db-aa1f-4b77-b5c3-3777ac2a2787\"\n },\n {\n \"fullName\": \"Mia de Boer\",\n \"email\": \"olivia.bos38@icloud.com\",\n \"company\": \"Delta Works\",\n \"country\": \"Sweden\",\n \"uuid\": \"98633c8d-2588-463d-8f9b-d36c77551188\"\n },\n {\n \"fullName\": \"Scarlett Schulz\",\n \"email\": \"grace.smit49@icloud.com\",\n \"company\": \"Zenith Dynamics\",\n \"country\": \"Portugal\",\n \"uuid\": \"30a8066f-9e7e-4e42-9751-2baff7ad948c\"\n },\n {\n \"fullName\": \"Valentina Garcia\",\n \"email\": \"sophia.schneider89@icloud.com\",\n \"company\": \"Forge Industries\",\n \"country\": \"Portugal\",\n \"uuid\": \"99204d38-9da3-4cc2-b154-40c74ba8506f\"\n },\n {\n \"fullName\": \"Mila Meyer\",\n \"email\": \"ava.martin4@example.com\",\n \"company\": \"Pivot Studios\",\n \"country\": \"Denmark\",\n \"uuid\": \"63796ccb-4844-409c-95c2-d4959211e65f\"\n },\n {\n \"fullName\": \"Olivia Schmidt\",\n \"email\": \"henry.scott61@yahoo.com\",\n \"company\": \"Apex Group\",\n \"country\": \"Sweden\",\n \"uuid\": \"24c0f539-50b2-4a9a-859c-8abf84d82c27\"\n }\n]",
"rows": 8,
"format": "json"
}
}Use the free Mock Data Generator in your browser, read the Mock Data Generator guide, or import the full OpenAPI specification.