Brazilian CNPJ Generator for Software Testing | Utinix

Results:

No results found

Logo


Brazilian CNPJ Generator for Software Testing

CNPJ is Brazil’s business taxpayer registry identifier. It has 14 positions: the first 12 may contain letters and digits in the alphanumeric format, while the final 2 are numeric check digits. The traditional digits-only format remains available for compatibility tests.

⚠️ Important: The generated CNPJs have no legal validity and do not represent real companies.

How to use this page?

Max: 100 per generation.

Alphanumeric CNPJ (default)

Generates 12 letters and numbers followed by 2 numeric check digits, according to the new Brazilian Federal Revenue format.

Official change

Alphanumeric CNPJ: what changes in July 2026?

The Brazilian Federal Revenue Service will begin implementing the alphanumeric CNPJ in July 2026 to expand the number of available combinations. The transition will be gradual and requires attention from teams that build or maintain systems that receive, store, and validate CNPJs.

New registrations

The new format will be assigned to new registrations from July 2026. This does not mean every CNPJ will immediately contain letters.

Existing CNPJs remain valid

Previously registered organizations will keep their numbers. The traditional numeric format will continue to exist and must remain supported.

The structure still has 14 positions

The 8 root positions and 4 establishment-order positions may contain letters and numbers. The final 2 positions remain numeric check digits.

Systems must support both formats

Fields, databases, APIs, regular expressions, imports, and integrations must no longer treat a CNPJ as a numeric-only value.

Note: validating the check digits only confirms the mathematical structure. It does not prove that the CNPJ is registered or active with the Federal Revenue Service.

How the CNPJ Generator Works and When to Use It

This generator creates mathematically valid CNPJs following the official algorithm of check digits. It is ideal for software testing, form validation, simulations, and programming lessons.

The generated numbers do not belong to real companies and do not access the Federal Revenue database. The purpose is only to validate flows and business rules that require a CNPJ in the correct format.

Algorithm Overview (in Simple Terms)

A CNPJ has 14 positions. In the alphanumeric format, the first 12 accept letters and digits; the final 2 remain numeric check digits. The traditional digits-only format is also available. A CNPJ is invalid when its calculated check digits do not match.

Obvious sequences such as 00.000.000/0000-00 or 11.111.111/1111-11 are never accepted. The generator automatically avoids these cases.

Best Practices for Using Fake CNPJs

  • Use generated CNPJs only in testing, development, or demonstration environments.
  • In the back-end, store the value without punctuation; apply formatting only when displaying it.
  • Do not log test CNPJs in production logs or analytics.
  • Combine with back-end structural validation and return clear feedback to the user.
  • For registration tests, also use consistent fake data (such as names and addresses).

Tools That Work Well With This Generator

For a complete testing flow, also use the CNPJ Validator, the Name Generator, and the Address Generator.

Limitations and Privacy

This generator does not verify company registration status, QSA (shareholding structure), or sensitive data. We do not store generated CNPJs. For official use, consult government channels.

Frequently Asked Questions (FAQ)

Are the generated CNPJs valid?

The generated CNPJs follow the structure defined by Receita Federal, but they do not belong to real companies.

Are the generated CNPJs real?

No, the generated CNPJs are mathematically valid but do not belong to real companies.

What can I use a generated CNPJ for?

They are useful for system testing, form filling, and simulations in development environments.

Do I need to pay to use the CNPJ generator?

No! The Utinix CNPJ generator is completely free and can be used at no cost.

Can the generated CNPJs be used to open a company?

No. The generated CNPJs are fictional and have no legal validity. They are for testing and simulation purposes only.

Does the CNPJ generator also provide data such as Company Name and Trade Name?

This page generates only the CNPJ identifier. For complete fictional business profiles, use the separate Fake Company Generator.

Is it possible to validate the generated CNPJs?

Yes, the CNPJ structure follows validation rules, but they are not registered with Receita Federal.

Share with your friends:

You might also like:

For Gamers:

Articles

Keep exploring

Useful tools to try next

Suggestions defined by category and the natural workflow between tools.

Suggested next tool

Test Data Generator Tool for creating multiple fictional records for QA, prototypes, development and studies. Open tool

Related tools

People who used this tool may also need:

Community scoreboard

Every click that generates, validates, or calculates something joins this real Utinix counter.

242

recorded generations