JSON Schema Data Generator

Paste a JSON Schema and generate realistic sample data that follows it: formats, enums, ranges and nested objects. Free, in your browser.

How to use the JSON Schema Data Generator

Give a table definition (CREATE TABLE) and generate up to 500,000 rows of realistic test data.

  1. Paste your table definition
  2. Set ranges if you want
  3. Choose rows and generate

Tips

Example

Input: {"type":"object","properties":{"email":{"type":"string","format":"email"}}}

Output: [{"email":"ada.chen7@example.com"}]

Frequently asked questions

How do I generate data from a JSON Schema?

Open the JSON Schema tab, paste the schema, set the rows and click Generate.

Which keywords are supported?

type, format, enum, const, minimum, maximum, lengths, array sizes, $ref, oneOf and anyOf.

Which databases are supported?

CREATE TABLE from PostgreSQL, MySQL, SQL Server, Oracle and SQLite. Comments, quotes and schema names are handled.

Are foreign keys checked?

No. A foreign key column gets a number from 1 to 100, so load the parent table with ids 1 to 100 first.

Which JSON Schema versions work?

Draft 7 and newer for the common keywords listed above. Unknown keywords are ignored.

Is the data real?

No. It is random and fictional, so it is safe to share.

How many rows can I make?

Up to 500,000 per run. Very large runs use a lot of memory, so close other tabs.

Guides