Generate valid CPF numbers for software testing and validate any CPF instantly.
The CPF (Cadastro de Pessoas Físicas) is the Brazilian individual taxpayer registry number, made of 11 digits where the last two are check digits computed from the first nine using the modulo 11 algorithm. This tool generates numbers that pass that mathematical validation, which makes them perfect for testing registration forms, payment flows and CRM integrations during software development.
Every number produced here is random. It is not looked up anywhere, it is not linked to any real person, and there is no way to know whether a generated sequence happens to belong to someone — the tool only guarantees the math is correct. That is exactly what a developer needs to test a system, and exactly why this data must never be used to open accounts, sign contracts or impersonate anyone.
The validator applies the same official algorithm in reverse: it recomputes both check digits and compares them with the ones you typed. It also rejects known-invalid sequences such as eleven repeated digits, which pass the naive math but are explicitly refused by the Receita Federal.
Check digits: multiply the first 9 digits by weights 10..2, take the remainder of the division by 11; if the remainder is 0 or 1 the digit is 0, otherwise 11 minus the remainder. Repeat with weights 11..2 including the first check digit.
No. It is a random number that only satisfies the check-digit math. It is not registered with the Receita Federal and is not linked to any person.
No. Using generated documents on real services may constitute fraud, which is a crime. The tool exists for software testing only.
Most systems validate the two check digits. If a number fails here, it will fail in any correctly implemented validation — use the validator to check exactly which numbers pass.
No. Generation and validation run 100% in JavaScript on your device. Nothing is transmitted or stored.
It indicates the fiscal region where the CPF was issued — for example, 8 corresponds to São Paulo. The generator picks it at random.
Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.
Vai.la is not responsible for how the tools are used or for decisions made based on their results.