BrazilDoor

What Is a CNPJ and When Does Your Company Need One?

Paulo WesleyPaulo Wesley· ·3 min read
What Is a CNPJ and When Does Your Company Need One?

The CNPJ (Cadastro Nacional da Pessoa Jurídica, the national registry of legal entities) is the number that identifies each company before Brazil's Federal Revenue. It works as the company's ID: without a CNPJ you cannot issue invoices, open a business bank account, hire employees or sign most contracts with Brazilian companies. A foreign company only needs a CNPJ in specific situations, such as being a partner in a Brazilian company or holding assets and investments in the country.

How the CNPJ works

The number has 14 positions in the format 00.000.000/0001-00:

  • the first 8 identify the company;
  • the middle 4 identify the establishment (0001 is the head office; branches get 0002, 0003 and so on);
  • the last 2 are check digits.

Each CNPJ is linked to public data: legal name, address, registration status, opening date, activities (CNAE codes) and partners. Anyone can look up this data on the Federal Revenue website. That is why Brazilian companies usually check a supplier's CNPJ before closing a deal.

CNPJ and CPF: the difference

The CPF is the registry for individuals. The CNPJ is the registry for companies. In everyday online commerce, both show up all the time:

  • consumers enter their CPF at checkout, because it is used on the invoice, in fraud checks and in payment methods such as boleto and Pix;
  • business buyers enter their CNPJ to receive the invoice in the company's name.

If you sell to Brazilians, your purchase form must accept and validate CPF and CNPJ. This is part of localizing your product for Brazilian Portuguese.

When a foreign company needs a CNPJ

Having a CNPJ does not necessarily mean operating in Brazil. The most common cases are:

Situation CNPJ needed?
Selling to Brazilians from abroad through an international payment processor Generally, no
Being a partner in a Brazilian company Yes, the foreign company needs its own CNPJ
Holding real estate, equity stakes or certain financial investments in Brazil Yes
Opening a Brazilian company (subsidiary) Yes: the subsidiary will have its own CNPJ

For the full setup path, see how to open a company in Brazil as a foreigner. If you want to test the market first, read selling in Brazil without a local company.

What a CNPJ lets you do

With a Brazilian company and its CNPJ, you can:

  • issue Brazilian invoices (nota fiscal), which corporate customers require;
  • receive payments in reais through local methods without a foreign intermediary;
  • hire employees on formal contracts;
  • sell on marketplaces as a local company;
  • take part in tenders and sign contracts with large Brazilian companies.

The alphanumeric CNPJ

The Federal Revenue is introducing the alphanumeric CNPJ: new numbers may have letters and numbers in the first 12 positions, keeping the two numeric check digits. Existing CNPJs keep their current numbers.

For foreign companies selling in Brazil, this has a practical effect: systems that validate CNPJs (checkout, B2B customer sign-up, billing, CRM) must accept letters. A field that only accepts digits will reject legitimate customers. Ask your engineering team to review the validation.

CNPJ and the tax reform

Brazil's tax reform, regulated by Complementary Law 214/2025, changes how consumption taxes are calculated through 2033. The CNPJ remains at the center: it is how a company will report and offset the new taxes. See the details in Brazil's tax reform: what changes for companies selling in Brazil.

Summary

The CNPJ is a company's identity in Brazil and the gateway to issuing invoices, hiring and getting paid locally. A foreign company can sell here for a while without one, but will need one when it wants to be a partner in a Brazilian company or operate as a local business. If you are deciding when to take that step, BrazilDoor can help you assess the right moment.

Frequently asked questions

What does CNPJ stand for?

Cadastro Nacional da Pessoa Jurídica. It is the company registry kept by Brazil's Federal Revenue, the equivalent of a company tax ID number.

Can a foreign company have a CNPJ?

Yes. Foreign companies that are partners in Brazilian companies or that hold assets and investments in Brazil need a CNPJ, even without operating in the country.

Do I need a CNPJ to sell to Brazilians?

Not necessarily. You can sell from abroad using international payment processors. A CNPJ becomes necessary when you open a Brazilian company to operate locally.

What is the alphanumeric CNPJ?

It is the new CNPJ format, which may have letters and numbers in the first 12 positions. Existing CNPJs do not change, but systems that validate the number must accept the new format.

How do I look up a CNPJ?

On the Federal Revenue website, through the public CNPJ lookup. It shows the legal name, registration status, address, activities and partners.

Sources

  1. Receita Federal: CNPJ
  2. Receita Federal: CPF
  3. Lei Complementar 214/2025

About the author

Paulo Wesley
Paulo Wesley

Business consultant with a degree in Accounting, MBA in Finance (UFRJ) and certified financial market analyst. Since 2014 he has helped companies from more than 10 countries understand and enter the Brazilian market.

Planning to sell in Brazil?

Tell us about your product. Paulo replies personally with the next steps.

Talk to us →

Keep reading