CPF Generator
This tool generates FICTITIOUS CPFs for testing purposes only. Never use these numbers for real registrations or official purposes!
Online CPF Generator for Software Testing
Free and complete online tool to generate valid CPFs for developers, software testers (QA), and programming students. Our tool allows you to create one or multiple fictitious CPFs for system testing, form validation, demonstrations, and development environments. Generate valid fictitious CPF numbers without exposing real personal data. All generated CPFs strictly follow the official Brazilian format (999.999.999-99) with check digits correctly calculated using the Brazilian Federal Revenue algorithm. Choose between the complete format with punctuation or numbers only to facilitate integration in your tests. Our tool allows you to generate up to 100 unique CPFs at once, ideal for batch testing, test database population, QA automation, and realistic registration simulations. Additionally, you can select a specific Brazilian state to generate CPFs from a determined fiscal region, making your tests even more precise and realistic.What is CPF and How Does It Work?
The CPF (Cadastro de Pessoas Físicas) is the Brazilian tax identification document issued by the Federal Revenue Service of Brazil. This unique 11-digit number is mandatory for all Brazilian citizens and foreign residents in the country, being essential for performing various activities such as opening bank accounts, applying for credit, signing contracts, filing income tax returns, making installment purchases, and practically all official procedures in Brazil. The CPF structure consists of 9 identifying digits that represent the sequential registration number, followed by 2 check digits calculated through a specific mathematical algorithm developed to detect typing errors and validate the authenticity of the number. This validation system makes the CPF a secure and reliable document for tax identification.CPF by State: Understanding Fiscal Regions
An important characteristic of the CPF that few people know is that the 9th digit (second to last digit before the check digits) indicates the fiscal region where the CPF was originally issued. Each digit from 0 to 9 represents a state or group of Brazilian states, reflecting the Federal Revenue's regional organization. This information is especially useful for developers who need to create more realistic and region-specific tests.For example, a CPF ending with digit 8 before the check digits was issued in São Paulo, while a CPF with digit 0 was issued in Rio Grande do Sul. This knowledge allows you to create more sophisticated test scenarios, simulate specific regional registrations, and validate business rules that depend on the user's geographic location. Our tool allows you to select the desired state or generate CPFs from all regions randomly.CPF Fiscal Regions Table
- 0: Rio Grande do Sul (RS)
- 1: Federal District (DF), Goiás (GO), Mato Grosso (MT), Mato Grosso do Sul (MS), Tocantins (TO)
- 2: Acre (AC), Amapá (AP), Amazonas (AM), Pará (PA), Rondônia (RO), Roraima (RR)
- 3: Ceará (CE), Maranhão (MA), Piauí (PI)
- 4: Alagoas (AL), Paraíba (PB), Pernambuco (PE), Rio Grande do Norte (RN)
- 5: Bahia (BA), Sergipe (SE)
- 6: Minas Gerais (MG)
- 7: Espírito Santo (ES), Rio de Janeiro (RJ)
- 8: São Paulo (SP)
- 9: Paraná (PR), Santa Catarina (SC)
How to Use the CPF Generator
Using our CPF generator is extremely simple and fast. First, select the desired Brazilian state from the dropdown menu or leave it on 'All States' to generate CPFs from any fiscal region. Next, choose the output format: official with dots and dash (999.999.999-99) for visual interface testing, or numbers only (99999999999) for backend validations and API integration. Click the 'Generate CPF' button to instantly create a valid number. The generated CPF will appear with the corresponding fiscal region information. To generate multiple CPFs at once, enable the 'Generate Multiple CPFs' option and choose the desired quantity between 2 and 100 CPFs. You can copy each CPF individually or use the 'Copy All' button to copy the entire list at once. This functionality is perfect for populating test databases, creating automation scripts, and performing load testing on systems.Our CPF generator is the ideal solution for various everyday situations for developers and technology professionals:
- ✓ Registration form validation and web systems testing
- ✓ Automated testing of systems and web applications
- ✓ Populating staging and homologation databases
- ✓ Integration testing with APIs and external services
- ✓ Client demonstrations and presentations without exposing real data
Legal Notice and Responsible Use
It is essential to understand that all CPFs generated by this tool are fictitious numbers created exclusively for testing and software development purposes. These numbers pass the mathematical validation of check digits but are not registered in the Federal Revenue Service of Brazil database and have no legal or documentary validity. The use of these CPFs must be restricted exclusively to development environments, software testing, demonstrations, training, and educational purposes.Using fake CPFs or third-party CPFs to perform official registrations, fraud, obtain undue benefits, or any other illegal purpose constitutes a crime of ideological falsehood under the Brazilian Penal Code (Art. 299) and may result in serious legal consequences, including criminal prosecution and penalties. Each user is entirely responsible for the proper use of this tool and must ensure that generated CPFs are used only in appropriate and legal contexts. Use the CPF Generator responsibly and with professional ethics to streamline and improve the quality of your testing and development processes.
[ Wikipedia: CPF (Cadastro de Pessoas Físicas), CPF Number ]