Generatore e Validatore CPF/CNPJ
Genera e valida all
⚠️ [Uso Limitato] Questo strumento è fornito esclusivamente per scopi di sviluppo e test software.
I numeri generati sono valori casuali matematicamente validi. Qualsiasi corrispondenza con entità reali è puramente casuale.
L'uso di questo strumento per scopi illegali o di frode è severamente vietato.
Potrebbe piacerti anche
Informazioni
The "CPF/CNPJ Generator & Validator" is a free browser-based tool designed to generate and validate mathematically correct Brazilian taxpayer numbers (CPF for individuals, CNPJ for corporations) strictly for software testing and development purposes.
With 100% local processing, no inputted or generated data is ever sent to a server. You can also generate up to 1,000 numbers at once in bulk.
Supports the 2026 Alphanumeric CNPJ specs: In addition to the traditional numeric format, it fully supports the generation and validation of the "CNPJ Alfanumérico", the new format featuring alphabetical characters in the first 12 positions, which will be implemented in July 2026.
Come si Usa
Select Mode
Choose between the "Generate" or "Validate" tabs. For generation, select either CPF or CNPJ.
Set Options
For CNPJ, choose whether to use the new alphanumeric format, toggle punctuation on or off, and set the generation count.
Execute & Copy
Click the button to run the tool. Generated data can be easily saved to your clipboard using the "Copy" button.
Glossario
- CPF (Cadastro de Pessoas Físicas)
- The Brazilian individual taxpayer registry number. It consists of 11 digits, typically formatted as "XXX.XXX.XXX-XX". The last 2 digits are the check digits (DV).
- CNPJ (Cadastro Nacional da Pessoa Jurídica)
- The Brazilian corporate taxpayer registry number. It consists of 14 digits, typically formatted as "XX.XXX.XXX/YYYY-ZZ". The YYYY part represents the branch/establishment.
- DV (Dígito Verificador)
- Check digits. Numbers appended to the end to prevent input errors or forgery. Calculated using the standard "Módulo 11" algorithm.
- CNPJ Alfanumérico
- A new alphanumeric CNPJ format effective July 2026 to prevent number depletion. Alphabetical letters can be used in the first 12 positions, requiring ASCII code conversion during DV calculation.
- Módulo 11
- The standard check digit calculation algorithm used in Brazilian public number systems. It assigns specific weights to each digit, sums them up, and determines the DV from the remainder of division by 11.
- Mascara (Punctuation)
- Symbols like dots ".", hyphens "-", and slashes "/" used to improve readability. These are generally stripped when saving to databases.
- Estabelecimento
- The 9th to 12th digits of a CNPJ, representing the branch or establishment number. "0001" has traditionally been used for headquarters.
FAQ
- Q.Are the generated numbers real?
- No. The CPF and CNPJ generated by this tool are random values with mathematically correct check digits (DV). Any match with real numbers is purely coincidental.
- Q.Is the generated data saved on a server?
- No. All generation and validation processes are completed within your browser. No data is sent to external servers.
- Q.Does it support the new CNPJ alphanumeric format?
- Yes. It fully supports the new CNPJ alphanumeric format check digit calculation (ASCII code conversion) scheduled for implementation in 2026.
- Q.What is an "Invalid repeated value"?
- Numbers with repeating digits like "111.111.111-11" pass the mathematical check digit calculation, but are considered invalid under official Brazilian rules. This tool correctly applies this rule and invalidates such values.
- Q.How many can I generate at once?
- You can generate up to 1,000 numbers at once in bulk, and easily copy the results to your clipboard.
Casi d'uso
E-commerce Development
Use as test data to validate registration forms and payment processes on Brazilian market e-commerce platforms.
System Migration Testing
Verify schema changes and validation logic updates required for the upcoming 2026 "CNPJ Alfanumérico" format.
Mock Data Generation
Bulk generate up to 1,000 valid CNPJ/CPF numbers for database pagination and load testing.
Validation Edge Cases
Create test cases to confirm proper error handling for invalid characters, repeated digits, or incorrect lengths.
Invia feedback
Facci sapere la tua opinione per aiutarci a migliorare lo strumento.
Il feedback è temporaneamente sospeso
Il server è occupato o la protezione antispam è attiva. Riprova più tardi.