CPF

GET/v0/br/cpf

Validates a CPF (Cadastro de Pessoas Físicas) — the 11-digit individual taxpayer identification number used in Brazil, assigned by the Receita Federal. The number consists of 9 base digits and 2 check digits computed using weighted mod-11 sums. Numbers with all identical digits (e.g. 111.111.111-11) are rejected even though they technically satisfy the checksum. Standard Brazilian formatting (dots, hyphen) is stripped automatically.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe 11-digit CPF (e.g. 529.982.247-25)

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/br/cpf?value=529.982.247-25"

Response Fields

FieldTypeDescription
validbooleanWhether the CPF passed format and check digit validation
formattedstringCPF in standard Brazilian format (XXX.XXX.XXX-XX)
checkDigitsstringThe 2 check digits

Example Response

{
  "valid": true,
  "formatted": "529.982.247-25",
  "checkDigits": "25"
}

Example Response — invalid

{
  "valid": false
}