Valid check digits
The generated CPF passes the modulo 11 math used in Brazil.
In development, forms and test databases often require a CPF with valid check digits. The generator builds 9 random digits (or 8 plus the historical tax-region digit if you pick a state) and computes the last two digits with the modulo 11 used by the Brazilian Federal Revenue. The numbers do not belong to real people.
The generated CPF passes the modulo 11 math used in Brazil.
Use 000.000.000-00 or the 11 digits, matching your system field.
Optionally locks the 9th digit to the historical tax region of the selected state.
Nothing is sent to servers. Randomness uses crypto.getRandomValues().