CPF / CNPJ Generator
Brazilian taxpayer identifiers — CPF (11 digits) and CNPJ (14 digits).
Brazil Validation Generation
How generation works
The CPF / CNPJ generator builds a structurally valid sample using the same rules the validator enforces — check digits included. Use it for test data and fixtures; never for production records.
Install the package
dotnet add package DocumentNumber.Brazil.Vat.Generator
Generator in C#
using DocumentNumber.Brazil.Vat.Generator;
var generator = new VatGenerator();
var sample = generator.GenerateDocumentNumber();
Console.WriteLine(sample);
Live example
24911211903 — a real CPF / CNPJ value accepted by the validator
Try CPF / CNPJ generation
Runs the exact same library code your application uses. Nothing you enter is stored.
Frequently asked questions
What is CPF / CNPJ?
Brazilian taxpayer identifiers — CPF (11 digits) and CNPJ (14 digits).
How does CPF / CNPJ generation work?
The generator builds a structurally valid CPF / CNPJ sample using the same rules the validator enforces — including check digits. Generated values are intended for tests and development only.
How do I install the CPF / CNPJ generator package?
dotnet add package DocumentNumber.Brazil.Vat.Generator
Is the value I enter in the demo stored?
No. Demo inputs are processed in memory for the current request only and are never persisted or shared.