HALPII Tax ID

Brazil CNPJ check

Check that a Brazil CNPJ is well formed and its check digit is right, before you pay or onboard a supplier. Format only

Example: 33.000.167/0001-01 (Petrobras). No account needed: 10 lookups a day per network, shared with the keyless API.

What this check tells you

Format only

We check the structure and the check digit published by the issuing authority, offline. That catches typos and made-up numbers. It does not show that the business exists, is registered or is active, so a well-formed number gets review, never pass. To confirm registration, use the official lookup: Receita Federal: comprovante de inscrição e situação cadastral.

Brazil ID formats we check

ID typeLevelCheck digitAPI endpointOfficial lookup
CNPJ
Cadastro Nacional da Pessoa Jurídica (CNPJ), numeric or alphanumeric
Format onlyTwo mod 11 check digits (Receita Federal; letters valued ASCII − 48)GET /v1/br/cnpj/{id}Receita Federal: comprovante de inscrição e situação cadastral

From code

Same key and quota as every other country. A well-formed request costs one lookup; a source that does not answer returns HTTP 503 and is not counted.

curl "https://taxid.halpii.com/v1/br/cnpj/33.000.167%2F0001-01" \
  -H "Authorization: Bearer $KEY"

Get a no-cost API key (100 lookups a day) or read the API docs.

Questions

Does a valid CNPJ mean the company exists?

No. This is a format check: it confirms the structure and check digit, not that the business exists or is active. Confirm registration with Receita Federal: comprovante de inscrição e situação cadastral.

Where does the data come from?

No registry is queried. The rules come from the issuing authority's published format and check-digit algorithm (Two mod 11 check digits (Receita Federal; letters valued ASCII − 48)).

Can I check CNPJs from code or in bulk?

Yes. The same check is available over the REST API (GET /v1/br/cnpj/{id}) and the MCP server, with the same key as every other country. See the API docs.

Is this service affiliated with the Brazil tax authority?

No. HALPII Tax ID is an independent service run by HALPII S.A.C. (Lima, Peru). Results are informational, not legal or tax advice.

Other countries in Americas

All countries and verification levels

Last updated 2026-11-14. An independent service run by HALPII S.A.C. (Lima, Peru), not affiliated with or endorsed by any Brazil authority.