Skip to content

Free generators tool

Free CPF generator for testing (Brazil)

Generate valid random CPF numbers with correct check digits, for testing forms and validation logic.

Free, no sign-up to use · what you type or add stays on your device · works offline · How it works

What do you want to generate?
Action
Punctuation

Generated CPFs

    Valid-format numbers for testing software only. They do not belong to real people and must not be used as real documents.

    Sponsor this tool

    About this tool

    This tool creates syntactically valid Brazilian CPF numbers: the two check digits are calculated with the official modulo-11 rules, so they pass format validation. The numbers are random and belong to no one; use them only to test sign-up forms, input masks and validation code. Optionally pick a fiscal region (encoded in the 9th digit) or generate many at once. Everything runs in your browser and nothing is stored or sent anywhere.

    How to use it

    1. 1 Choose how many CPFs you need and, if you want, a fiscal region.
    2. 2 Toggle formatted for the 000.000.000-00 mask or leave it off for digits only.
    3. 3 Click Generate, then Copy to paste the numbers into your test data.

    Frequently asked questions

    Are these real CPF numbers?

    No. They are randomly generated and only follow the CPF check-digit algorithm so they pass validation. They are not linked to any real taxpayer and must not be used to impersonate anyone or commit fraud.

    What is the fiscal region digit?

    The 9th digit of a CPF identifies the Receita Federal region where it was issued. Picking a region just fixes that digit; the check digits are still calculated normally.

    Why would I need generated CPFs?

    To confirm a form, input mask or back-end validator handles the CPF format correctly, without using the real number of a real person.

    Embed this tool

    Add this free tool to your own website — copy the code below. It stays up to date automatically.

    Tools for your site →

    More in Test data

    Test data · Browse all 122 free tools