Toolvito

Processed online by Toolvito

Synthetic Data Generator

Describe the columns you need, one per line, and get a table of made-up records as CSV, JSON, Excel, SQL, XML, YAML or log lines. The same seed always gives the same file, and every file is checked: read back, and its numbers compared with what you asked for.

Synthetic data

Synthetic data

name: type(settings) options. See Column types below.

A whole number. Empty: one is chosen and shown, so you can make the same data again.

1 to 100,000.

More options

When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to make test data

  1. Pick an example below or write the columns, one per line: name: type(settings) options, such as age: normal(40, 12) min=18 max=90 int.
  2. Choose the number of rows, the file format and a seed (any whole number). The same seed and the same columns give the same file again; a different seed gives different data.
  3. Select Make the data. Look at the first rows and the checks, then download the file.

Column types

  • Numbers: integer(min, max), uniform(min, max), normal(mean, sd), lognormal(mu, sigma) (mu and sigma of the natural logarithm), exponential(mean), gamma(shape, scale), beta(a, b), triangular(min, mode, max), poisson(mean), binomial(n, p). Options: min= and max= (values outside are never drawn: the distribution is cut there, not clipped), round=2, int.
  • Categories and flags: choice(red, green, blue) or with weights choice(basic=50, pro=30, team=20); bool(0.8) for true 80 % of the time.
  • Dates: date(2024-01-01, 2025-12-31), datetime(2025-01-01T00:00:00, 2025-01-31T23:59:59) and date_seq(2025-01-01, 1d) for one row per day (steps 30s, 15m, 1h, 1d, 1w). Dates are written as ISO 8601.
  • People and places: first_name, last_name, full_name, email, username, street, city, postcode, region, country, company. They come only from the tool's own word lists, combined at random. Phone, card and ID numbers are not offered, because random digits can belong to a real person or account.
  • Codes and text: id(start, step), uuid, pattern(INV-#####) (# a digit, @ a capital letter, ? a small letter, * a letter or digit), text(3, 8) words, word, ip, constant(value) and formula(price * quantity) from number columns above it.
  • More options: null=5% leaves that share of cells empty; unique makes every value different (id, uuid, integer, choice, pattern, email, username); prefix= and suffix= add text around a value.
  • Correlations: a line such as corr age, income = 0.6. Two normal columns get this Pearson correlation; for other distributions it is the correlation of the underlying normal scores (a Gaussian copula), so their rank correlation is (6/π)·asin(ρ/2).

Formats

  • CSV and TSV with a header row (empty cells for missing values); JSON (a column named address.city becomes a nested object) and JSON Lines; Excel .xlsx with real numbers and dates; SQL with CREATE TABLE and INSERT statements; XML with one <row> per record; YAML; or text lines from a template such as {time} {level} {message} for sample logs.
  • Exact makes the sample mean, standard deviation and correlations of normal columns equal to the asked values (before rounding), which is useful for teaching and for tests that compare statistics.

The data are synthetic

  • Every value is made up. E-mail addresses use example.com, example.net and example.org, which RFC 2606 (June 1999, section 3) lists as second-level names reserved for use as examples. IP addresses are from the blocks 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24, which RFC 5737 (January 2010) reserves for documentation.
  • Names, streets, towns and companies are combined at random from short lists written for this tool, so any likeness to a real person, place or company is by chance. Do not use the data as if it described real people.

How the data are checked

Every file is read back by a reader that did not write it (Python's csv and json, openpyxl, SQLite running the SQL, an XML parser, a YAML parser) and compared value by value. For each number column the sample mean and standard deviation must be within 4 standard errors of the values the distribution has (with min and max taken into account), its shape must pass a Kolmogorov–Smirnov or chi-square test, and the shares of categories, true values and empty cells and the correlations must be within 4 standard errors. The file is made a second time from the seed and must be the same byte for byte. If a check fails, no file is given.

Related tools