Tools / JSON Schema to Fake Data

JSON Schema to Fake Data.

Paste a JSON Schema and get realistic sample JSON that follows its types, formats, enums and constraints.

Runs in your browser

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Generated JSON
Notes

About JSON Schema to Fake Data

JSON Schema to Fake Data turns a schema into sample documents you can use as API mocks, seed data, Storybook fixtures or test inputs. Paste a schema, choose how many samples you want, and the tool walks the schema: objects get their properties, arrays get between minItems and maxItems elements, numbers respect minimum, maximum, exclusive bounds and multipleOf, and strings follow their format (email, uuid, date, date-time, time, uri, hostname, ipv4, ipv6). const, enum and examples are used as given, $ref pointers into $defs or definitions are resolved, allOf is merged and oneOf/anyOf pick one branch. When a string has no format, the property name is used as a hint, so a field called email, city or phone gets a plausible value instead of random words. All emails use the reserved example.com, example.org and example.net domains and phone numbers use the fictional 555-01xx range, so generated data never reaches a real person. Common mistakes: forgetting "required" and then wondering why a property is sometimes missing (turn off optional properties to see only required ones), writing "format" values that no validator knows, and expecting "pattern" to be honoured. Regex patterns, "not" and patternProperties are not supported; the notes panel tells you when a keyword was ignored, so you know which values to adjust before using them in strict validation tests.

How to Use

  1. Paste your JSON Schema (draft-07 or 2020-12).
  2. Choose the number of samples and whether optional properties are included.
  3. Copy or download the generated JSON and check the notes for ignored keywords.

Frequently Asked Questions

Which JSON Schema features are supported?

type (including type arrays), properties, required, items, prefixItems, minItems/maxItems, uniqueItems, minimum/maximum, exclusive bounds, multipleOf, minLength/maxLength, format, enum, const, examples, local $ref, allOf, oneOf and anyOf.

Will the output always validate against my schema?

For the supported keywords, yes. Keywords listed in the notes (pattern, not, patternProperties, unknown formats) are ignored, so values for those fields may not validate.

Can it load schemas from other files?

No. Only local references like

Is my schema uploaded?

No. Generation runs entirely in your browser.

Related Tools