CBO Format Validator
Validate the format of a Brazilian CBO code (Classification of Occupations, 6 digits). Useful for HR, payroll, eSocial and employee registration.
CBO code format: the 6-digit Brazilian occupation code NNNN-NN
The CBO (Classificação Brasileira de Ocupações) is the Ministry of Labour's catalogue of job roles in Brazil — the equivalent of an occupation taxonomy. A CBO code has 6 digits, written NNNN-NN: a four-digit família ocupacional plus a two-digit occupation, e.g. 2521-05 (database administrator). This tool checks that NNNN-NN format.
The current edition is CBO 2002, derived from the international ISCO standard. The code is what links a worker to a standardised role across payroll, labour reporting and social-security systems — it is required on the carteira de trabalho, in eSocial, RAIS and CAGED filings.
Structure of 2521-05
- Família ocupacional (
2521): the four-digit family grouping related jobs. - Occupation (
05): the two-digit specific role within the family. - No check digit: the CBO has no checksum — validity is the format plus existence in the official table.
Where it matters
- eSocial & payroll: every hire is reported with a CBO; a wrong code can misfile labour data.
- Carteira de trabalho: the employment record cites the CBO for the role.
- Labour statistics: RAIS/CAGED aggregate the workforce by CBO.
- Mock data / testing: validating the
NNNN-NNmask before an MTE lookup.
Common pitfalls
- Hyphen is cosmetic:
252105and2521-05are the same; normalise before comparing. - CBO ≠ CNAE: CBO classifies the person's role, CNAE classifies the company's activity — different catalogues.
- Format ≠ exists: six digits pass the regex; only the MTE table confirms a real occupation.
- Role drives benefits: some CBOs imply periculosidade/insalubridade or specific union framing.
FAQ
Does the CBO have a check digit? No — unlike CPF or CNAE's class digit, the CBO is validated by format and lookup only.
Is CBO the same as CNAE? No. CBO = occupation (the worker); CNAE = economic activity (the business).
Where is the CBO required? On the carteira de trabalho and in eSocial, RAIS and CAGED reporting.
Related Tools
Brazilian CBO Code Validator
Validate codes from the Brazilian Classification of Occupations (CBO 2002) with 6 digits, checking major-group/subgroup/family structure.
CNAE Format Validator
Validate the format of a Brazilian CNAE 2.3 code (7 digits, e.g. 6201-5/00), the national classification of economic activities. Useful for business setup.
CEST Code Validator
Validate CEST code format (XX.XXX.XX), 7 digits. Checks if segment (XX) is in 01-28 (official).
ICAO Airport Code Validator
Validate ICAO airport code format: 4 uppercase letters (SBGR, KJFK, EGLL). Country region prefixes included.
IPVA Code Validator
Validate IPVA code (Brazilian Vehicle Tax), generated from RENAVAM. Format and digits check.
US ITIN Format Validator
Validate the format of a US ITIN (Individual Taxpayer Identification Number), in the 9XX-XX-XXXX pattern. Useful for taxes and non-resident records in the US.