Language:
100% Free • Official Modulo 11 Algorithm • Local Processing

Brazilian CPF Generator & Validator

Generate and validate mathematically valid Brazilian CPF (Cadastro de Pessoas Físicas) numbers strictly for software development, test automation, and QA verification. Fully compliant with Receita Federal Modulo 11 check-digit rules.

4.9(480 reviews)
•
100% In-Browser
•
Instant & Free
Generated Test CPF Numbers
605.224.417-85

Como Gerar e Validar CPF Válido para Testes (Passo a Passo)

Gere números de CPF válidos com cálculo matemático exato dos dígitos verificadores para testes de software e desenvolvimento de sistemas:

1Selecione a Pontuação

Escolha se deseja o CPF gerado com máscara de formatação (000.000.000-00) ou apenas dígitos numéricos para preenchimento de banco de dados.

2Escolha o Estado de Origem (Opcional)

Selecione o estado brasileiro desejado para determinar a nona posição do documento, ou selecione 'Aleatório'.

3Clique em Gerar CPF

O gerador executa o algoritmo oficial do Módulo 11 da Receita Federal, calculando instantaneamente os dois dígitos verificadores válidos.

4Copie em 1 Clique ou Valide

Clique no botão 'Copiar' para colar no seu ambiente de homologação, ou alterne para a aba 'Validador' para testar a validade de qualquer documento.

How Does the Brazilian CPF Modulo 11 Algorithm Work?

The Brazilian CPF (Cadastro de Pessoas Físicas) is an 11-digit individual taxpayer identification number structured as ABC.DEF.GHI-JK. The first 8 digits are the core sequential registration number, the 9th digit designates the regional tax jurisdiction (Região Fiscal da Receita Federal), and the last two digits (J and K) are verification check digits computed through Modulo 11 arithmetic.

1. Calculation of the First Verifier Digit (J)

Each of the first 9 digits is multiplied by descending sequential weights from 10 down to 2. The products are summed together:

Sum 1 = (A × 10) + (B × 9) + (C × 8) + (D × 7) + (E × 6) + (F × 5) + (G × 4) + (H × 3) + (I × 2)

Divide Sum 1 by 11. If the remainder is less than 2, digit J = 0. Otherwise, digit J = 11 - remainder.

2. Calculation of the Second Verifier Digit (K)

The calculation repeats incorporating the newly verified digit J, this time multiplying the first 10 digits by descending weights from 11 down to 2:

Sum 2 = (A × 11) + (B × 10) + (C × 9) + (D × 8) + (E × 7) + (F × 6) + (G × 5) + (H × 4) + (I × 3) + (J × 2)

Divide Sum 2 by 11. If the remainder is less than 2, digit K = 0. Otherwise, digit K = 11 - remainder.

Official Brazilian Fiscal Regions Map (Receita Federal)

The 9th digit of any valid CPF identifies the administrative regional tax district where the document was originally registered:

Digit 9Fiscal RegionStates Covered
11st RegionFederal District, Goiás, Mato Grosso do Sul, Mato Grosso, Tocantins
22nd RegionPará, Amazonas, Amapá, Rondônia, Roraima, Acre
33rd RegionCeará, Maranhão, Piauí
44th RegionPernambuco, Alagoas, Paraíba, Rio Grande do Norte
55th RegionBahia, Sergipe
66th RegionMinas Gerais
77th RegionRio de Janeiro, Espírito Santo
88th RegionSão Paulo
99th RegionParaná, Santa Catarina
010th RegionRio Grande do Sul

Notice for Developers & QA Teams (LGPD Compliance)

This utility is engineered strictly for software engineers, database architects, and QA analysts conducting automated unit testing, mock dataset generation, and form input validation. All generated numbers are synthesized algorithmically in your browser and do not represent active individuals registered with the Brazilian Federal Revenue Service (Receita Federal do Brasil).

Frequently Asked Questions (FAQ)

What is a Brazilian CPF number and what is its standard format?

The CPF (Cadastro de Pessoas Físicas) is an 11-digit national taxpayer identification number assigned by the Brazilian Federal Revenue Service (Receita Federal). It is commonly represented either as 11 consecutive digits (00000000000) or formatted as 000.000.000-00, where the final two digits are calculated check verifiers.

Are the CPF numbers generated by this tool genuine citizens?

No. This tool algorithmically synthesizes fictitious, mathematically valid numbers strictly for software developers, QA testers, and database designers to test form validation, checkout flows, and backend logic without exposing real citizens personal identification data.

How does the Modulo 11 validation algorithm calculate the two check digits?

The first check digit (10th digit) is computed by multiplying the first 9 digits by descending weights from 10 to 2, dividing the sum by 11, and taking 11 minus the remainder. The second check digit (11th digit) repeats the process over the first 10 digits using weights from 11 down to 2.

How can you identify which Brazilian state issued a CPF?

The 9th digit (the digit directly preceding the hyphen in formatted CPFs) designates the Fiscal Region of registration. For instance, digit 8 corresponds to São Paulo, digit 7 to Rio de Janeiro/Espírito Santo, and digit 0 to Rio Grande do Sul.

Why does the validator reject repeated numbers like 111.111.111-11?

Even though repeated identical numbers like 111.111.111-11 or 000.000.000-00 can theoretically satisfy the basic Modulo 11 mathematical formula, they are explicitly blacklisted and classified as invalid by the Receita Federal to prevent automated spam and fraud.