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\": \"Emma Martin\",\n \"email\": \"thijs.mulder39@mail.io\",\n \"company\": \"Vertex Ventures\",\n \"country\": \"Australia\",\n \"uuid\": \"50860a04-5e99-4a36-8289-a9d4c8ce33bb\"\n },\n {\n \"fullName\": \"Mia Meijer\",\n \"email\": \"sophia.phillips47@outlook.com\",\n \"company\": \"Pivot Works\",\n \"country\": \"Sweden\",\n \"uuid\": \"279ccc61-1f1f-43ae-a9fe-ef7b874d4504\"\n },\n {\n \"fullName\": \"Mateo Lee\",\n \"email\": \"valentina.evans86@icloud.com\",\n \"company\": \"Pivot Works\",\n \"country\": \"Germany\",\n \"uuid\": \"b64d4944-faab-4b5d-a39a-582d45f8b9e6\"\n },\n {\n \"fullName\": \"Thijs Hoffmann\",\n \"email\": \"jack.vandenberg71@gmail.com\",\n \"company\": \"Ironwood Technologies\",\n \"country\": \"Ireland\",\n \"uuid\": \"649bcfbf-f786-4487-9ebc-b99cacce41de\"\n },\n {\n \"fullName\": \"Bram de Boer\",\n \"email\": \"noah.young61@outlook.com\",\n \"company\": \"Quantum Industries\",\n \"country\": \"United Kingdom\",\n \"uuid\": \"61fd6f50-6bc0-4ff2-8beb-b8c40d322333\"\n },\n {\n \"fullName\": \"Lotte Wright\",\n \"email\": \"sophia.smit2@gmail.com\",\n \"company\": \"Catalyst Labs\",\n \"country\": \"Spain\",\n \"uuid\": \"e4c4b74f-106b-439c-aeb6-5cee124c95e4\"\n },\n {\n \"fullName\": \"Daan Young\",\n \"email\": \"daniel.wagner85@mail.io\",\n \"company\": \"Silverline Technologies\",\n \"country\": \"Ireland\",\n \"uuid\": \"aeaf54d4-eed4-4b65-a92e-5b9909a295e8\"\n },\n {\n \"fullName\": \"Mason Hoffmann\",\n \"email\": \"hugo.martin41@example.com\",\n \"company\": \"Ember Group\",\n \"country\": \"Ireland\",\n \"uuid\": \"c8845d0f-38af-48da-bf01-de9f718bb623\"\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.