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 on | fejkdata | Faker (JavaScript) | gofakeit | Mockaroo |
|---|---|---|---|---|
| Correlated fields | One 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 draw | First name, gender, last name, email and username agree, and a formula reads other fields |
| Valid national ids, and postal codes that match the town | Ids for ten countries, four from the issuer's test series; a postal code of the address's own town | No national id; zipCode takes a state, not a city | SSN and EIN, each "a random" number; the docs don't say that Zip matches City | Country, city, state and postal code agree; the pages read name no national id |
| CSV and SQL test data | One template and one command: CSV, SQL, COPY, JSON, NDJSON, up to 1,048,576 rows a run | No 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 times | CSV, JSON, SQL and Excel; 1,000 rows a file on the free plan, 10 million on the largest hosted one |
| Errors | Before the first row, naming what is wrong; a mistake in a template exits 2 | Thrown 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 when | The pages read don't say |
| Install | Homebrew, Scoop, apt, dnf, apk, Docker, go install | npm install @faker-js/faker | go get, and go install for the CLI | Nothing 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.