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 browserAbout 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
- Paste your JSON Schema (draft-07 or 2020-12).
- Choose the number of samples and whether optional properties are included.
- 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
Generate realistic fake data for testing.
Pretty print, minify, and validate JSON.
Generate typed code from JSON data.
Generate INSERT statements with realistic fake rows for MySQL, PostgreSQL, SQLite or SQL Server.
Generate NanoID, CUID2, KSUID and Snowflake IDs in bulk with custom size, alphabet and epoch.
Generate UUID v4, UUID v7, and ULID identifiers.