CNPJ Generator
Generate Brazilian CNPJ numbers for testing
Validate Brazilian CNPJ numbers instantly. Supports both numeric and alphanumeric formats
Supports both numeric (traditional) and alphanumeric (new 2024) formats
Enter a CNPJ number above to validate
CNPJ numbers can be in two formats: traditional numeric and new alphanumeric (2024).
Traditional 14-digit format (0-9 only)
New format with letters (A-Z) and numbers (0-9)
CNPJ Validator verifies Brazilian CNPJ (Cadastro Nacional da Pessoa Jurídica) company numbers using the official Modulo 11 algorithm. Supports both traditional numeric CNPJs and the new 2024 alphanumeric format. This essential tool validates format compliance, checksum accuracy, and identifies branch/establishment numbers.
Validate CNPJ numbers instantly with verification of format and check digits using the official Brazilian validation algorithm adapted for both numeric and alphanumeric characters. The tool automatically detects format type, extracts branch numbers, and provides comprehensive validation feedback with detailed technical information about the CNPJ structure.
Perfect for business form validation in Brazilian applications, company registration systems, B2B platforms, tax compliance systems, e-commerce platforms, and any system requiring CNPJ validation. Essential for developers building business applications that serve the Brazilian market or handle Brazilian company data.
Instant validation prevents data entry errors and ensures CNPJ integrity before processing. Format detection automatically handles both numeric and alphanumeric CNPJs, future-proofing your application. Branch number identification helps with organizational analysis, while complete privacy protection ensures sensitive business data never leaves your device.
Our validator uses the official Modulo 11 algorithm employed by the Brazilian Federal Revenue Service, adapted for both numeric and alphanumeric formats. It checks format compliance and verifies both check digits with 100% accuracy. However, it doesn't verify if a CNPJ is registered in government databases.
Numeric CNPJs use only digits (0-9), while alphanumeric CNPJs (introduced in 2024) can include letters (A-Z) and digits. Both use the same 14-character structure and Modulo 11 algorithm. Alphanumeric format was introduced to expand the available CNPJ space as numeric combinations were being exhausted.
If you use our validator, yes! It automatically detects and validates both formats. Make sure your database fields accept alphanumeric characters (VARCHAR instead of numeric types) and your forms don't restrict input to numbers only.
The 4 characters before the check digits represent the establishment. '0001' typically indicates the company headquarters (matriz), while '0002' and higher represent branches (filiais). This allows one company to have multiple CNPJs for different physical locations.
No. Our validator only checks mathematical validity and format. For legal purposes, business verification, or official transactions, you must verify CNPJ registration status with the Federal Revenue Service (Receita Federal) through their official channels or APIs.
Update database fields to VARCHAR/TEXT type, ensure forms accept letters and numbers, update validation logic to handle both formats, and test with sample alphanumeric CNPJs. Our validator handles both automatically, making migration easier.
Other tools that might be useful for your workflow