Tools

CPF generator

Generate a valid CPF for tests in one click. Choose punctuation and, if you want, the origin state — all in the browser.

Generate with punctuation?

This tool generates random numbers that only follow the check-digit algorithm. It is meant for students, developers and software tests. Do not use it to fake registrations or impersonate anyone — misuse is the responsibility of whoever generates the number.

Why generate a CPF?

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.

Features

Valid check digits

The generated CPF passes the modulo 11 math used in Brazil.

Masked or plain

Use 000.000.000-00 or the 11 digits, matching your system field.

Origin state

Optionally locks the 9th digit to the historical tax region of the selected state.

100% in the browser

Nothing is sent to servers. Randomness uses crypto.getRandomValues().