What input formats are supported?
Three input modes are supported: a sample JSON object (the shape is inferred), a JSON Schema (Draft 7 compatible), and an OpenAPI 3.x spec (JSON format). The tool auto-detects which mode to use.
Generate realistic fake JSON data from a JSON Schema, OpenAPI 3.x spec, or a sample JSON object shape.
The ByteKiln Mock API Generator parses JSON Schema or OpenAPI specs in-browser and generates realistic fake data using a lightweight built-in data generator with no external faker dependency.
The tool recursively walks the JSON Schema, handling type, properties, items, enum, anyOf, oneOf, allOf, const, and format keywords. Each leaf node generates a typed fake value.
String fields without a format annotation are classified by field name. Names containing "email", "url", "id", "name", "phone", "date", "status", "color", or "slug" each produce contextually appropriate fake values.
For OpenAPI specs, the tool iterates all paths and HTTP methods, finds the 2xx response schema, resolves any $ref pointers, and generates mock data for each endpoint.
Short answers for the things developers usually ask before trusting a tool.
Three input modes are supported: a sample JSON object (the shape is inferred), a JSON Schema (Draft 7 compatible), and an OpenAPI 3.x spec (JSON format). The tool auto-detects which mode to use.
The generator uses a seeded pseudo-random number generator. String values are generated based on the field name — a field named "email" produces an email address, "createdAt" produces an ISO timestamp, and "id" produces a UUID.
Yes. The schema walker handles object types with nested properties, array types with items schemas, anyOf/oneOf/allOf combiners, and enum values. Recursion is limited to a depth of 6 to prevent infinite loops.
Same-document $ref references (e.g. #/components/schemas/User in an OpenAPI spec) are resolved by traversing the JSON path. External file references are not supported.
Yes. Download the JSON output and use it directly as fixture data in Jest, Vitest, Playwright, or any testing framework. Set the record count to the number of test cases you need.
Useful follow-ups when one conversion usually turns into three more.
Format, validate, and minify JSON instantly with a browser-first editor.
Write and execute GraphQL queries against a schema with mock data — no server needed.
Convert .env files to Dockerfile, docker-compose, GitHub Actions, Vercel, Kubernetes ConfigMap, and more.