NexoUtils

Brazilian CPF/CNPJ generator and validator

Generate valid numbers for software testing or check the verification digits of a Brazilian CPF or CNPJ.

Generated numbers are for software testing only. Do not use them as real identity documents.

Validates CPF and numeric or alphanumeric CNPJ. Generation creates numeric test data only; no registration or ownership lookup.

About this tool

Receita Federal: alphanumeric CNPJ documentation

Generate valid numbers for software testing or check the verification digits of a Brazilian CPF or CNPJ. Simple tools do not require an account. Files are sent to a server only when the tool explains the transfer and you confirm it.

Generated numbers are for software testing only. Do not use them as real identity documents.

Check CPF and CNPJ check digits or create test values

Select CPF or CNPJ, then choose whether to generate a number for software testing or validate the number’s structure and check digits. The result is not a registry lookup.

How to use it

  1. Choose CPF or CNPJ and select Generate or Validate.
  2. For validation, enter the value to check; for generation, leave the value field unused and create a test value.
  3. Treat a passing result as a format and check-digit result only, not as proof that a person or business exists.

Usage examples

  • When testing a form, generate a numeric sample and confirm that the application accepts its punctuation handling; keep the test environment separate from customer records.
  • A CNPJ containing letters can be checked, but this generator currently produces numeric CNPJ test values only.

What to know

Validation accepts numeric CPF values and numeric or alphanumeric CNPJ values, normalizing common punctuation, spaces, and hyphens before checking length and verification digits. The generator creates numeric values only. It does not contact Receita Federal, confirm registration status, identify an owner, or establish that a generated number is safe to use in a live system.

A number that passes its check digits is not necessarily assigned, active, or authorized for a particular purpose. Use generated values only in isolated test data, avoid placing real identifiers in public examples or logs, and never substitute this check for an official service or required identity verification.

Frequently asked questions

Does “valid” mean that the CPF or CNPJ is registered?

No. It means only that the input has an accepted structure and passes the implemented check-digit calculation. No government or business registry is queried.

Can I use a generated number for a real customer?

No. Generated values are intended for testing, not identity, billing, tax, or production records.

How we review this content