CNPJ Validator - Validate Brazilian Company Tax ID (Numeric & Alphanumeric)
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 Format Information
CNPJ numbers can be in two formats: traditional numeric and new alphanumeric (2024).
Numeric Format
Traditional 14-digit format (0-9 only)
Alphanumeric Format
2024New format with letters (A-Z) and numbers (0-9)
About CNPJ Validator
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.
Key Features
- Official Modulo 11 algorithm validation
- Supports numeric and alphanumeric formats
- Automatic format type detection
- Branch/establishment number identification
- Format validation (with or without formatting)
- Instant validation feedback with error messages
- Complete client-side privacy protection
- Future-proof for 2024 alphanumeric standard
CNPJ Validator Frequently Asked Questions
How accurate is the CNPJ validation?
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.
What's the difference between numeric and alphanumeric CNPJs?
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.
Will my application work with both CNPJ formats?
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.
What does the branch/establishment number mean?
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.
Can I use this for legal verification?
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.
How do I prepare my system for alphanumeric CNPJs?
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.
CNPJ Validation Best Practices
- Always validate CNPJ on both client and server sides
- Support both numeric and alphanumeric formats for future compatibility
- Strip formatting before database storage but keep alphanumeric capability
- Display CNPJ with formatting for better readability
- Use VARCHAR/TEXT database fields, not numeric types
- Implement additional verification for business transactions
- Test your system with both CNPJ formats