Generate mock JSON
from any JSON Schema.
Instantly.
Paste a JSON Schema and get a valid JSON instance with realistic example values. Draft-07 and 2020-12. Nested objects, arrays, multiple instances. Runs entirely in your browser.
When do you need mock JSON from a schema?
Four common workflows.
API testing and fixtures
Generate realistic test fixtures from your OpenAPI or JSON Schema definitions. Use the mock data directly in unit tests, Postman collections or mock servers — without writing fixture data by hand.
Frontend development
When the backend API is not ready, generate mock responses from the agreed schema. Seed your frontend app, Storybook components or UI tests with realistic data that matches the final structure.
Schema validation testing
Generate a valid instance from your schema, then validate it against the schema with AJV to verify the schema itself is correct. A generated instance that fails validation reveals a bug in the schema.
Documentation examples
OpenAPI docs, Confluence pages and README files need JSON examples alongside schema definitions. Generate realistic examples directly from the schema to keep them always in sync with the structure.
JSON Schema to sample data: $ref, enums and formats
The generator follows your schema the way a validator would: local references such as #/$defs/Address or #/definitions/Item are resolved (recursive references stop after one level), enum and examples values are used, format produces realistic emails, URIs, dates and UUIDs, "type": ["string", "null"] is understood, and every array item gets a different value within minItems/maxItems.
To create a schema from an existing document, use JSON to JSON Schema; for GraphQL SDL instead of JSON Schema, use GraphQL to JSON.
