CEI Format Validator
Validate the format of a Brazilian CEI number (12 digits), used by construction sites and employers without a CNPJ. Check the number in labor records.
CEI registration: the legacy INSS number, now replaced by CAEPF and CNO
The CEI (Cadastro Específico do INSS) was a 12-digit registration, written NN.NNN.NNNNN/NN, issued to people and entities that had social-security obligations but no CNPJ — rural producers, individual employers, and especially construction works (obras). This tool checks that 12-digit format. The CEI was the key the old INSS used to collect contributions where a company registration didn't exist.
Since 2019 the CEI has been retired and split into two successors: the CAEPF (Cadastro de Atividade Econômica da Pessoa Física) for individuals with economic activity, and the CNO (Cadastro Nacional de Obras) for construction works. Old CEI numbers still appear on legacy documents and historical filings, so validating the format remains useful.
Who used a CEI
- Construction works: each obra got its own CEI to track INSS on the payroll of the build → now the CNO.
- Rural producers (segurado especial) and individual employers without a CNPJ → now the CAEPF.
- Domestic employers: historically registered via CEI before eSocial Doméstico.
Where it still matters
- Historical filings: GFIP/SEFIP records and old GPS guides reference the CEI.
- Migration: mapping a legacy CEI to its CAEPF/CNO successor during data conversion.
- Audits: reconciling INSS contributions from the pre-2019 period.
- Mock data / testing: validating the
NN.NNN.NNNNN/NNmask in legacy importers.
Common pitfalls
- CEI is deprecated: don't issue new ones — use CAEPF (people) or CNO (works).
- CEI ≠ CNPJ: it was precisely for those without a CNPJ; don't validate it with CNPJ rules.
- Punctuation is cosmetic: normalise dots and slash before comparing.
- Format ≠ active: a well-formed CEI from a closed obra is historical, not current.
FAQ
Is the CEI still issued? No — it was replaced in 2019 by CAEPF (for individuals) and CNO (for construction works).
What replaced the CEI for a construction site? The CNO (Cadastro Nacional de Obras).
Why validate an old CEI at all? Legacy documents, GFIP/SEFIP history and migration mapping still carry CEI numbers.
Related Tools
BR CEP Format Validator
Validate Brazilian CEP format (8 digits, with or without hyphen).
CBO Format Validator
Validate the format of a Brazilian CBO code (Classification of Occupations, 6 digits). Useful for HR, payroll, eSocial and employee registration.
RG-SP Format Validator
Validate the format of a São Paulo RG ID (8-9 digits plus check digit, including X). Useful for checking documents in forms and sign-ups.
Date Format Validator (ISO/Common)
Check if a date is in ISO 8601 or common formats (YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY). Auto-detects format.
US EIN Format Validator
Validate the format of a US EIN (Employer Identification Number), in the XX-XXXXXXX pattern. Useful for companies, taxes and business records in the US.
US Passport Format Validator
Validate the format of a US passport number (9 alphanumeric characters). Useful for travel forms, bookings and international sign-ups.