---
id: "br_cnae"
kind: "datatype"
status: "draft"
is_pii: false
name: "CNAE code (Brazilian classification of economic activities)"
regexp: "^[A-U]?\\d{2}(?:\\.?\\d(?:\\d-?\\d(?:/?\\d{2})?)?)?$"
categories: ["industry", "companies"]
country: ["BR"]
langs: ["pt"]
quality: 90
url: "https://registry.apicrafter.io/datatype/br_cnae"
---

# CNAE code (Brazilian classification of economic activities) (`br_cnae`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

A code of the Classificação Nacional de Atividades Econômicas of IBGE, the Brazilian classification derived from ISIC rev. 4 (isicrev4): a section letter (A to U), a two-digit division, a group, a four-digit class with a check digit (4711-3) and, in CNAE-Subclasses 2.3 used by the tax and company registers, a two-digit subclass (4711-3/02). The BNDES writes the subclass after the section letter without separators (C1011200); registers write 4711302 or 4711-3/02.

- Personal data (PII): no
- Categories: Industry (industry), Companies/business/organizations (companies)
- Countries: Brazil (BR)
- Languages: Portuguese (pt)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-U]?\d{2}(?:\.?\d(?:\d-?\d(?:/?\d{2})?)?)?$
```

## Examples

- `4711-3/02` — retail trade in supermarkets
- `4711302` — the same subclass without separators
- `C1011200` — slaughter of cattle, section C, as the BNDES writes it
- `47.11-3` — class of retail trade with food predominance
- `Z9999` (invalid example) — no section Z

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `brcnaebyname` (field, `br/br_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- pt: Código CNAE
- ru: Код CNAE (бразильский классификатор видов деятельности)

## Sources

- doc: <https://concla.ibge.gov.br/classificacoes/por-tema/atividades-economicas.html>
- wikipedia: <https://pt.wikipedia.org/wiki/Classifica%C3%A7%C3%A3o_Nacional_de_Atividades_Econ%C3%B4micas>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/br_cnae.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BR/industry/br_cnae.yaml>
