Free tool
CNPJ lookup
Type a Brazilian CNPJ, its 8-digit root or a company name and get the company from the Receita Federal register: legal name, legal form, status, state and capital, live. The CNPJ and its check digits are verified in your browser first.
The same lookup with curl
curl "https://api.prometiam.com/functions/v1/risk-api/companies/search?company_number=33000167000101&country=BR" \ -H "Authorization: Bearer rk_live_your_api_key"
What a CNPJ is
Every legal entity in Brazil has a CNPJ from the Receita Federal: 14 characters written XX.XXX.XXX/XXXX-XX, an 8-character root for the entity, a 4-character order for the establishment (0001 is the head office) and two check digits. The check is strict. Since July 2026 the root and order may contain capital letters. The bare 8-digit root is looked up as the head office. An 11-digit value is a CPF, a personal number, and is refused.
What the lookup returns
The lookup sends the number to the Prometiam API and shows the name, legal form, status and city of the record. Company records from the Cadastro Nacional da Pessoa Jurídica: legal name, trade name, legal form, status (active, suspended, inapta, deregistered or merged, with judicial recovery, bankruptcy and liquidation read from the special situation), address with the state, capital where filed and the CNAE 2.3 activity code. No partners, officers or contacts, no VAT number and no insolvency notices. MEI and other sole proprietors, non-profit entities and branches are never served.
The full record is one call away. The 14-day trial needs a card, and nothing is charged for 14 days. Subscribing keeps the same key working.
Need this in your own product? See the CNPJ API (em português: API de consulta de CNPJ): company records only, no partners or officers, no VAT number, no insolvency notices.
FAQ
Why is my CNPJ rejected?
The two check digits are strict. A CNPJ that fails them, a string of one repeated character or an 11-digit CPF is refused before any call.
Does the 8-digit root work?
Yes. The root is looked up as the head office of the entity.
Why does a valid CNPJ return nothing?
Only commercial legal persons are served, and one record per root. A MEI or other sole proprietor, a non-profit entity, a public administration body or a branch is never returned. Try the name search.
Can I do this in code?
Yes: GET /companies/search?company_number=33.000.167/0001-01&country=BR with an API key returns the same record as JSON.
What the lookup checks before it asks the register
The CNPJ is validated in your browser first, so a typing slip never costs a call. The rules are the Receita Federal’s, and the identifier validator applies the same kind of check to the other countries:
- Shape: 14 characters, with or without the dots, slash and hyphen. Since July 2026 the first twelve may contain capital letters; the two check digits are always digits.
- First check digit: weights 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 over the first 12 characters. Multiply, add, and take the remainder of the sum divided by 11: the digit is 0 when the remainder is below 2, otherwise 11 minus the remainder.
- Second check digit: the same rule with weights 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 over the first 13 characters, which now include the first check digit.
- Refused before any call: a number that fails either check digit, a string of one repeated character, and an 11-digit CPF, which is a person’s number.
- The 8-digit root is accepted: it is looked up as the head office (order 0001).
Worked example, 33.000.167/0001-01. The first twelve characters are 330001670001. Their weighted sum is 121, a multiple of 11, so the first check digit is 0. With that 0 appended, the weighted sum of 3300016700010 is 142, remainder 10, so the second check digit is 11 minus 10, which is 1. The number ends in -01. Change the last digit to 2 and the check fails.
Sample output
Looking up 33.000.167/0001-01 (Petrobras) returns this record. It is trimmed to the main fields: the full record also carries the secondary activity codes and the other registry details.
{
"id": 24000033000167,
"country": "BR",
"company_number": "33.000.167/0001-01",
"company_name": "PETROLEO BRASILEIRO S A PETROBRAS",
"identifiers": [{ "type": "cnpj", "value": "33.000.167/0001-01" }],
"legal_form": "S.A.",
"local_legal_form_name": "Sociedade de Economia Mista",
"status": "active",
"founding_date": "1966-09-28",
"activity_code": "0600001",
"activity_code_scheme": "BR-CNAE-2.3",
"address": "AVENIDA REPUBLICA DO CHILE, 65",
"postal_code": "20031170",
"city": "RIO DE JANEIRO",
"region": "RIO DE JANEIRO",
"capital_amount": 205431960490.52,
"capital_currency": "BRL",
"register": "Cadastro Nacional da Pessoa Jurídica (CNPJ), Receita Federal do Brasil",
"registry_details": {
"trade_name": "PETROBRAS - EDISE",
"status_code": "02",
"special_situation": null,
"size_class": "DEMAIS",
"district": "CENTRO"
}
}Reading it: company_name is the legal name (razão social); the trade name (nome fantasia) is in registry_details.trade_name. status is active, suspended, active_strike_off_pending (the Receita’s inapta), deregistered or merged; judicial recovery, bankruptcy, liquidation and intervention are read from the register’s special situation (registry_details.special_situation) and show in the status. activity_code is a CNAE 2.3 subclass, not a NACE code. founding_date is the start of activity of the head office. capital_amount is in reais where the register holds it. registry_details.size_class is the Receita’s revenue class (ME, EPP or DEMAIS), not an employee band.
What a Brazilian record covers
- Commercial legal persons only: LTDA, S.A., simple societies, single-member limited companies, public and mixed-capital companies, and cooperatives. MEI and other sole proprietors, non-profit entities, public bodies and branches of foreign companies are never served.
- One record per CNPJ root, shown with the head office’s CNPJ. Establishments with another order number are not served.
- Company records only: no partners or officers, no contacts, no VAT number (a VAT search is refused) and no insolvency notices, because Brazil is not one of the sixteen insolvency markets.
- Updated monthly, because the Receita publishes one full file a month: a change made this week may not show until the next file.
- Through the API you can also monitor a Brazilian company and read its register-change events (name, status, legal form, registered address and share capital), dated when the change first appears in the register data.
- Financial statements exist for listed companies only (the CVM annual statements), on the Scale plan and above; other Brazilian companies publish none.
The structure of the number is explained in What is the CNPJ?; the fields of the record and the CNAE code are in the Brazil company data API guide.
The same lookup in code
A search by CNPJ, or by its 8-digit root, is one call and one credit:
curl "https://api.prometiam.com/functions/v1/risk-api/companies/search?company_number=33.000.167/0001-01&country=BR" \
-H "Authorization: Bearer rk_live_your_key_here"Search by name with name=petrobras&country=BR; the best match comes first, with a match_score. The 14-day trial gives a key, and the TypeScript and Python SDKs wrap the same call. To resolve a list of CNPJs, POST /companies/lookup takes up to 100 in one call at one credit per item; on the free trial it draws on the same 500 credits.
More questions about CNPJ lookups
Is a CNPJ the same as a CPF?
No. A CNPJ identifies a legal entity and has 14 characters; a CPF is a person’s 11-digit number. The lookup refuses a CPF, and no natural person is served.
How do I find a CNPJ from a company name?
Type the name in the same box. The search is fuzzy and the best match comes first. Compare the CNPJ, the legal form and the state before you use the result, because several companies can share a name.
Why is the company name different from the name on the invoice?
company_name is the legal name (razão social). The trade name (nome fantasia), often the one used on invoices, is in registry_details.trade_name.
Does the record say whether the company has debts or tax problems?
No. It holds the register’s identity and status data, with no tax debt, credit score or court records. Judicial recovery, bankruptcy and liquidation appear only through the register’s special situation, in the status.
How current is the data?
The Receita publishes one full file a month, so a record is as current as the latest file. The meta.data_as_of date of an API answer says which one.
Related
Official sources: Receita Federal, CNPJ open data.
Contains data from the Cadastro Nacional da Pessoa Jurídica (CNPJ), Receita Federal do Brasil, published as open data (CC BY). Adapted by Prometiam.