Skip to content

Menu

JSON Schema Faker

Generate fake data from JSON Schema

Runs entirely in your browserTesting & QAFree, no sign-up
Loading tool

01What is JSON Schema Faker?

You have a JSON Schema and no data yet. Maybe the backend is a week away, or you need fixtures for a form test. Paste the schema here, press Generate, and you get random values that fit it. The generator walks the schema from the top. Local references like #/$defs/point or #/definitions/user are followed. oneOf and anyOf pick one branch at random, and allOf merges its parts into a single shallow object. If a schema has const, you get that value. With enum, you get one of the listed values. If example or examples is set, those are reused as they are. Strings follow the format keyword when it is one we know. Emails look like [email protected]. URLs, hostnames and addresses use the reserved example.com, example.org and example.net domains from RFC 2606. IPv4 values come from the documentation ranges in RFC 5737 and IPv6 values from 2001:db8:: (RFC 3849), so nothing points at a real machine. You also get date, date-time, time and version 4 style UUIDs. Simple regular expressions work too. The pattern ^[A-Z]{3}-\d{4}$ produced PEI-2764, IMC-3511 and IBT-8911 in one run. Literals, \d, \w, character classes and the quantifiers ?, *, +, {n} and {n,m} are understood. Without a pattern or format, strings are lorem ipsum words cut to between minLength and maxLength, or 3 to 20 characters by default. Numbers respect minimum, maximum, the exclusive bounds and multipleOf. A number between 0 and 1 with multipleOf 0.25 returns values like 0, 0.25 or 0.75. Arrays get minItems to maxItems entries (1 to 5 by default), with no repeats when uniqueItems is true. Required properties always appear. Optional ones show up about four times in five, which is handy for testing missing fields. Some things it can't do, and it tells you instead of guessing. A pattern with groups or alternation, a remote $ref, or a range with no valid value shows up in an amber warning above the output. Keywords like not, if/then/else and patternProperties are skipped without a warning, so run anything that matters through a full validator. Dates fall between 2020 and 2025. Your schema is parsed and filled by JavaScript in this tab, and the samples never leave it.

Front-end developers and QA engineers who need mock API payloads that match a JSON Schema before the real service is ready. The tool runs entirely in your browser, so your data never leaves your device.

02How to use JSON Schema Faker

  1. Paste your schema into the JSON Schema box, or pick the User schema, Product list or Address example.
  2. Set Count to the number of samples you want, from 1 to 50. Anything above 1 returns an array.
  3. Press Generate. If the schema isn't valid JSON, the parser's error appears in red.
  4. Read the amber note, if one shows, for parts of the schema the generator could not honour.
  5. Copy the result from the Generated Data panel, or use the Reset icon to start over.

03Worked examples

Input: {"type":"string","pattern":"^[A-Z]{3}-\\d{4}$"} with Count 3
Result: ["PEI-2764", "IMC-3511", "IBT-8911"]
Random on every run. These three came from one run of the tool's pattern generator.
Input: {"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","format":"email"},"ip":{"type":"string","format":"ipv4"}},"required":["id","email","ip"]}
Result: {"id":"7cb372e4-f9b6-4e8d-9d20-efddccba0871","email":"[email protected]","ip":"203.0.113.92"}
Emails use reserved example domains and IPv4 uses a documentation range.
Input: {"type":"number","minimum":0,"maximum":1,"multipleOf":0.25} with Count 4
Result: [0.25, 0, 0.75, 0.75]
Every value is a multiple of 0.25 inside the range. Repeats are allowed for plain numbers.
Input: {"$defs":{"pt":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":9},"y":{"type":"integer","minimum":0,"maximum":9}}}},"type":"array","items":{"$ref":"#/$defs/pt"},"minItems":2,"maxItems":2}
Result: [{"x":0,"y":6},{"x":4,"y":1}]
The local $ref is resolved. With no required list, both properties always appear.
Input: {"type":"string","pattern":"^(draft|published)$"}
Result: "eiusmod ipsu" Warning: pattern ^(draft|published)$ (groups, alternation and negated classes aren't supported)
The value does not match the pattern, and the amber warning says so. Use enum for this case.
Input: {"type":"integer","minimum":5,"maximum":4}
Result: 5 Warning: no integer fits minimum 5 / maximum 4
An impossible range returns the minimum and flags it rather than failing quietly.

04Common use cases

  • Seeding an MSW or json-server mock with records shaped like the component schemas in your OpenAPI file
  • Feeding a React form a few dozen random payloads to see which validation messages actually fire
  • Checking that a list view copes when optional fields like avatarUrl or middleName are missing
  • Producing sample request bodies for a pull request description before the endpoint exists
  • Generating Storybook story data from the same schema the API team already maintains
  • Testing a parser against values at the edges of a minimum, maximum or multipleOf rule

05Tips

  • Swap a pattern like ^(draft|published)$ for an enum. Groups aren't supported, but enum values always are.
  • Move definitions from other files under $defs before pasting. Only references starting with #/ are resolved.
  • Leave out the required array and every property is included every time, which is good for stable snapshots.
  • Output changes on every click, so save a generated set to a file if a test compares against it.
  • Add an example value to a property when you need a specific realistic string. The generator returns it unchanged.

06Related concepts

JSON Schema, Mock data, Test fixtures, OpenAPI, Property-based testing.

Frequently Asked Questions

What is JSON Schema Faker?

JSON Schema Faker is a free, browser-based developer tool on AIDToolStack. Generate fake data from JSON Schema It requires no installation or sign-up and works entirely in your browser.

Is JSON Schema Faker free to use?

Yes. No sign-up, no fees and no usage cap.

Does JSON Schema Faker store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe