fejkdata ยท Guides

fejkdata compared with Faker, gofakeit and Mockaroo

Four tools that make fake data for tests, compared on fields that agree, valid national ids, bulk output, errors and install. Each cell states what that tool's own docs said on 2026-11-21. Where a cell says the docs don't say, the pages read are listed below the table.

Compared onfejkdataFaker (JavaScript)gofakeitMockaroo
Correlated fieldsOne named draw feeds every field that reads it"all properties are just randomly generated" until your code passes one result to the next call, as in firstName(sex)A template binds one Person and reads its fields; the docs don't say that a struct tag can read another tag's drawFirst name, gender, last name, email and username agree, and a formula reads other fields
Valid national ids, and postal codes that match the townIds for ten countries, four from the issuer's test series; a postal code of the address's own townNo national id; zipCode takes a state, not a citySSN and EIN, each "a random" number; the docs don't say that Zip matches CityCountry, city, state and postal code agree; the pages read name no national id
CSV and SQL test dataOne template and one command: CSV, SQL, COPY, JSON, NDJSON, up to 1,048,576 rows a runNo CLI and no file output: "you most likely need to write a factory function"Go functions CSV, JSON, XML and SQL; its CLI runs one function, -loop timesCSV, JSON, SQL and Excel; 1,000 rows a file on the free plan, 10 million on the largest hosted one
ErrorsBefore the first row, naming what is wrong; a mistake in a template exits 2Thrown at run time where a locale lacks the data; "we don't have dedicated error messages for wrong parameter types"Template, CSV and SQL return an error; the docs don't say whenThe pages read don't say
InstallHomebrew, Scoop, apt, dnf, apk, Docker, go installnpm install @faker-js/fakergo get, and go install for the CLINothing to install: hosted on mockaroo.com, with a Docker image on the Enterprise plan

Faker: Getting started, Usage, Localization, the API index and its Person and Location pages. gofakeit: its README, its CLI's README and the package documentation. Mockaroo: its front page, help, formulas, API docs and pricing.

The fejkdata column is what fejkdata v0.8.0 does. The comparison in fejkdata's README has one more row, on runtime. To see the fejkdata column work, try the Swedish customers and million rows guides.