Test data for Brazilian software
EN
Fictitious data for software testing. Using fake documents for fraud is a crime in Brazil (Penal Code, arts. 297–299, 307).

Fake Brazilian company generator

Build complete records for Brazilian companies that do not exist, with a CNPJ (the federal company registration number) and a state registration (Inscrição Estadual, IE) that pass check-digit validation. Use them to seed B2B apps, ERPs, CRMs and NF-e invoice test fixtures without touching real customer data.

—

Up to 1000 items at once. Everything is generated in your browser.

How to use

  1. Pick the State (UF) or leave it on “Any” to draw a random state for each record. The state drives the IE format, the city, the area code and the postal-code range.
  2. Tick Alphanumeric CNPJ (new format) to get CNPJs containing letters, and With mask (punctuation) to receive CNPJ, IE and phone already formatted.
  3. Click Generate to see one full company, then Copy to put it on your clipboard.
  4. For many rows, set the Quantity (1–1000) and download with Export CSV, Export JSON or Export SQL, which writes one INSERT INTO devbr_empresa per row.
  5. Need to check a CNPJ or IE already in your data? Use the validate tabs of the CNPJ generator and the state registration (IE) generator.

How it works

How each field is built

Nothing comes from a database of real businesses: every value is combined from generic word lists and check-digit algorithms. Field by field:

  • Trade name (nome fantasia): two random words, e.g. “Sabiá Digital” or “Vereda Labs”.
  • Legal name (razão social): the trade name + a line of business (“Serviços de Logística”, “Marketing Digital”…) + a suffix: LTDA (limited company, the most common), S.A. (corporation), ME or EPP (micro and small business labels).
  • CNPJ: an 8-character random root, branch 0001 (head office) and two check digits computed with the Receita Federal modulo-11 rule. In alphanumeric mode the root always contains at least one letter.
  • IE: generated with the check-digit rule and layout of the selected state.
  • Opening date: a day between 1995 and last year, in ISO YYYY-MM-DD.
  • Email: contato@ + the trade name without accents or spaces + .example.com. example.com is reserved for documentation by RFC 2606, so test mail never reaches a real inbox.
  • Phone: an 8-digit landline starting with 3, with the area code (DDD) of the chosen city.
  • Address: street type + generic name, number 1–4999, a generic district and a real city in that state. The CEP (postal code) is drawn from the state’s range and is fictitious; it always includes the hyphen.

Sample record (state = MG, masked)

Legal nameGraúna Real Engenharia e Construções ME
Trade nameGraúna Real
CNPJ55.613.989/0001-09
IE (MG)149.089.234/0193
Opened2005-12-10
Emailcontato@graunareal.example.com
Phone(32) 3505-8330
AddressTravessa das Margaridas, 2000 — Vila Esperança, Juiz de Fora/MG — CEP 38702-068

Note how the email is derived: “Graúna Real” loses its accent and space and becomes graunareal. In the SQL export the column names are lower-cased (razaosocial, nomefantasia, cnpj, ie…) and every value is a single-quoted text literal with apostrophes doubled.

Typical uses

Seeding B2B platforms and marketplaces, supplier records in ERPs, CRM demos, tests for CNPJ masks and search, and recipient fixtures for NF-e (Brazilian e-invoice) issuing in the tax authority’s homologation (test) environment. Production invoices always require the real taxpayer’s data.

FAQ

Does the generated company exist?

No. Name, CNPJ, IE, phone and address are random combinations. CNPJ and IE have correct check digits, which only proves the format; there is no record at the Receita Federal or any state tax office. A collision with a real number is possible but unlikely, and even then the other fields do not belong to that company.

What is the alphanumeric CNPJ?

The Receita Federal now allows letters in the first 12 positions of the CNPJ for new registrations, while the two check digits stay numeric. Turn the option on to check whether your database columns, masks and validators accept values such as 12.ABC.345/01DE-35. Existing CNPJs remain numeric, so test both formats.

Can I issue real invoices with this data?

Only in homologation or other test environments. Issuing a valid tax document, opening an account or signing up for real services with an invented company is improper and may amount to fraud. The data is meant for QA, automated tests and demos.

Why does the email end in example.com?

Because example.com is reserved by RFC 2606 precisely for examples and documentation. If your test environment sends welcome or billing emails, they will not reach any real person. If your system rejects subdomains, adjust the value after importing.

Do the CEP and the city match?

The city is real and belongs to the chosen state, and the CEP is drawn from that state’s postal-code range, but not necessarily from that city or an existing street. That is why it is labelled fictitious. To test postal-code lookups against external services, use real CEPs of public streets.

Sources

Related tools

Updated 2026-11-13 · Rafael Lima