Software testing tool

CPF and CNPJ generator for development and testing

Generate valid document numbers (CPF, traditional CNPJ, and alphanumeric CNPJ) with bulk support and formatting.

Includes
  • Single and bulk CPF generation
  • Numeric and alphanumeric CNPJ support
  • Toggle for formatted or raw digits
  • Checksum digit validation
  • Instant copy functionality
  • Batch limit from 1 to 50 documents
  • Notice that values are fictitious and for testing only
Fictitious documents for testing

Generate CPF, numeric CNPJ, and alphanumeric CNPJ for testing

Choose the document type, set the batch size, and generate valid identifiers for development, prototypes, and demonstrations without relying on real data.

Choose an integer quantity from 1 to 50 documents per batch.

Summary

Adjust the document type and batch quantity to enable generation.

Current result0 item(s)
This-session history
Generate the first batch to start this session's history.
FormattedCPF
Quantity1
Generated0
Type0
How it works

Generate valid fictitious documents without relying on real data

  1. 1. Choose between CPF and CNPJ.
  2. 2. Set the batch quantity and whether to show formatting.
  3. 3. In CNPJ mode, enable the alphanumeric format when letters are needed in the first 12 characters.
  4. 4. Generate, copy the current batch, or review items kept in this session.
Technical notes

Useful for tests, demonstrations, and interface validation

  • Use only in development, prototypes, test automation, and sample data.
  • Generated documents are fictitious and must not be treated as real registration data.
  • The alphanumeric mode applies the implemented calculation to an alphanumeric base and keeps two numeric check digits.
  • Verifiable example: with formatting enabled, a CPF follows `000.000.000-00`; without it, the output has 11 numeric characters.
FAQ

Perguntas frequentes

Are the generated CPF/CNPJ numbers real?

No. The numbers are algorithmically generated following checksum rules strictly for software testing purposes.

What is alphanumeric CNPJ?

It is the updated Brazilian CNPJ standard that incorporates letters alongside numbers in registration positions.

Can I use a generated number in a real registration?

No. Generated values are fictitious test data, even when they pass checksum rules. Do not use them as a person's or company's real document.

How many documents can I generate at once?

The batch field accepts from 1 to 50 documents per generation and keeps recent generations only during this session. Use smaller batches when testing a flow and avoid treating the output as a registry.

Related tools
Who it is for

Get valid fictitious Brazilian documents to test sign-up forms

The generator is for developers and testers who need CPF or CNPJ numbers that pass check-digit validation, without using data from real people.

  • Test forms that validate CPF and CNPJ.
  • Fill development databases with fictitious documents.
  • Try the new alphanumeric CNPJ format.
Instructions

How to generate

  1. 1. Choose CPF or CNPJ.
  2. 2. For CNPJ, choose the numeric or the alphanumeric format.
  3. 3. Set the quantity, from 1 to 50, and whether you want punctuation.
  4. 4. Generate, copy the batch, or review the session history.
How it works

The last two digits check the others

CPF and CNPJ end with check digits calculated from the other digits. The tool draws the base and computes those digits, so the numbers pass format validation.

CPF

11 digits, formatted as 000.000.000-00.

The last two are check digits.

Numeric CNPJ

14 digits, formatted as 00.000.000/0000-00.

The first eight identify the company root.

Alphanumeric CNPJ

Letters and numbers in the identifier positions.

The two check digits remain numeric.

Verifiable example

How to recognize the format

A CPF generated with punctuation follows the pattern below. The numbers change on every generation.

CPF
000.000.000-00
CNPJ
00.000.000/0000-00

Uncheck punctuation to get digits only, as many systems expect.

Limits

Valid in format, fictitious in practice

Passing check-digit validation does not mean the document exists.

  • The numbers do not belong to identified people or companies.
  • Do not use the documents in real sign-ups, purchases, or any official process.
  • Whether a document exists can only be confirmed with the Brazilian authorities.
Caution

For testing only

Using generated numbers to pass as another person or company may constitute fraud.