CPF generator

Generated CPF

Action

Status

Get to Know the CPF Generator

A free tool that randomly generates CPF numbers for use during software development and testing, or any other projects.

Main Features of the CPF Generator:

  • Generate CPF with or without formatting (dots and hyphen).
  • Generate multiple CPFs at once!
  • Choose the state of origin for the generated CPF.

Refresh the page to generate new CPF numbers or click 'Generate CPF' to create customized CPF numbers.

What is CPF?

The CPF (Cadastro de Pessoa Física) is a personal identification number used by the Brazilian government to recognize citizens and foreign residents in Brazil. Composed of 11 digits, it is essential for various activities such as opening bank accounts, making purchases, hiring services, and other processes that require identification.

CPF Structure and Validation

The CPF is structured as follows: the first nine digits are arranged into three groups of three numbers, separated by periods, followed by a hyphen and the last two digits, which are known as check digits (DV).

For example, the number 12345678909 is presented as 123.456.789-09.

Important Rules:

- The first nine digits of the CPF cannot all be the same.

- The two check digits must follow a specific formation rule.

How to Determine the State of Issuance of a CPF

The Brazilian state where a CPF was issued can be identified by the last digit before the two check digits.

Reference Table of Numbers for Each State:

  • 1: Federal District, Goiás, Mato Grosso do Sul, and Tocantins
  • 2: Acre, Amapá, Amazonas, Pará, Rondônia, and Roraima
  • 3: Ceará, Maranhão, and Piauí
  • 4: Alagoas, Paraíba, Pernambuco, and Rio Grande do Norte
  • 5: Bahia and Sergipe
  • 6: Minas Gerais
  • 7: Espírito Santo, Rio de Janeiro
  • 8: São Paulo
  • 9: Paraná and Santa Catarina
  • 0: Rio Grande do Sul

Practical Example:

Consider the fictitious CPF 987.654.321-98. The last digit before the check digits (1) indicates that this CPF was issued in one of the following states: Federal District, Goiás, Mato Grosso do Sul, or Tocantins.