ModuLaud
$ data --test-mass
Test dataBulk CPF and CNPJ generator
Brazilian test data for your software: up to 1000 documents at a time, or full fictional records with name, email, phone, postal code and date of birth — ready to export as JSON, CSV or SQL.
- 100% in the browser
- free
- no sign-up
The generated documents show up here. Pick the options above and click “Generate”.
The result and the step-by-step explanation of the maths show up here.
Type a CNPJ and click “Look up CNPJ”. Nothing is fetched automatically.
Source: public Receita Federal data, served by BrasilAPI (a free, open-source project). The lookup runs straight from your browser — nothing goes through CodeCrush’s servers.
One screen to build the whole test data set
Seeding a staging environment is rarely “I need one CPF”. It is three hundred users, a hundred companies and a file that goes into the database without manual editing. On the Generate tab you pick between CPF, numeric CNPJ or alphanumeric CNPJ, ask for 1 to 1000 at a time, formatted or as plain characters — and in full test-record mode every row arrives with name, email, phone, postal code, date of birth and CPF, consistent with one another and in the Brazilian format.
It is all computed in your browser: no queue, no daily cap, no sign-up, and no document ever reaches CodeCrush servers.
Three export formats, three destinations
- SQL — ready-to-run
INSERTstatements with the table name you type. Paste into your database client and run; - JSON — the natural format for fixtures, API mocks and ORM seeds;
- CSV — for a spreadsheet, a legacy importer or PostgreSQL
COPY.
And there is always the Copy button, which puts the whole batch on your clipboard when the destination is a test you are writing right now.
When to use the dedicated pages
This page is the combined version, built for volume. If you want a single document, with the tool already pointed at it and the context that matters, the dedicated pages are more direct:
- CPF generator — includes the issuing-state option and the fiscal region table that explains the 9th digit;
- CNPJ generator — covers the 2026 alphanumeric format, the root/branch/check-digit anatomy and real company lookup in the Receita registry.
True for both: the generated documents are fictional and exist for software testing. Using them for fraud or to sign up for a real service is a crime (articles 171 and 299 of the Brazilian Penal Code). The CNPJ lookup, in turn, reads public Receita Federal data served by BrasilAPI, an open-source project maintained by the Brazilian community.
## faq
Frequently asked questions
How many documents can I generate at once?
Up to 1000 per run, in any of the modes: CPF only, CNPJ only or full records. Because everything is computed in your browser there is no queue, daily cap or sign-up — if you need more, just run it again and concatenate the files.
What does a full test record contain?
Name, email, phone, postal code, date of birth and CPF, all consistent with one another and in the Brazilian format. The data comes from the Faker library with the pt-BR locale, so names and addresses look real enough for a staging environment or a demo — without using any real person’s data.
How do I export the test data into my database?
The SQL export produces ready-to-run INSERT statements with the table name you type — paste them into your database client and run. There is also JSON (handy for fixtures and API mocks) and CSV (for a spreadsheet or PostgreSQL COPY). The Copy button puts the entire result on your clipboard in one go.
Do the generated documents belong to real people or companies?
No. The numbers are drawn at random and only satisfy the check-digit rule (Modulo 11); they are never looked up in or registered with any Receita Federal database. They are valid — they pass any form validation — but not existing.
Is it legal to generate CPF and CNPJ numbers in bulk?
Yes, for what the tool is meant for: testing software, seeding development databases, writing automated tests and running demos. What is a crime is using fake documents for fraud, to sign up for real services or to impersonate someone — articles 171 and 299 of the Brazilian Penal Code.
Can I mix CPF and CNPJ in the same batch?
Each run generates one document type, but nothing stops you from generating a batch of CPFs, exporting it, and then generating the CNPJ batch — both files use the same column format and merge without effort. If you need a page dedicated to a single document, see the CPF generator and the CNPJ generator.
Recommended for this topic
Picked by the editors — only what we would use.
## other tools