PT-BR · EN

Brazilian CNPJ Generator

Generate valid Brazilian CNPJ (Cadastro Nacional da Pessoa Jurídica) numbers for B2B software testing, ERP integration QA, supplier verification sandboxes, and invoice generation in homologation. Numbers are fictitious but pass the official mod-11 algorithm, so they validate against any Brazilian CNPJ checker.

Click Generate to create valid Brazilian CNPJ numbers

Clique em Gerar para começar

What is a CNPJ?

CNPJ (Cadastro Nacional da Pessoa Jurídica) is the Brazilian company tax identification number, equivalent to the US EIN (Employer Identification Number) or the UK Company Number. It has 14 digits in the format XX.XXX.XXX/XXXX-XX, where the last 2 are check digits calculated via mod-11. Every Brazilian legal entity (LLC, S.A., MEI, EIRELI) has a unique CNPJ, used for tax filing, invoice issuance, B2B contracts and government registrations.

When to use a fake CNPJ

International SaaS, ERP, accounting, and B2B platforms serving Brazilian businesses need CNPJ test data that behaves like real CNPJs in validation pipelines. FakeForge generates CNPJs that pass mod-11 checksum but do not belong to real companies. Use cases: Stripe Connect onboarding for Brazilian merchants, NetSuite and SAP Brazil localization tests, e-invoice (NF-e) sandbox testing, supplier verification flows, and any QA scenario that exercises CNPJ format and checksum validation.

Alphanumeric CNPJ (July 2026)

Receita Federal will introduce an alphanumeric CNPJ format starting July 2026 (Instrução Normativa 2.229). The 8-digit root and 4-digit order can contain letters (A to Z) and digits (0 to 9). The check digit is calculated via ASCII minus 48. If your platform serves Brazilian businesses, you should test schema migrations, regex validators and SEFAZ integrations against the new format now. FakeForge has a dedicated Alphanumeric CNPJ Generator for early testing.

REST API for ERP and CI/CD

# Generate 100 valid CNPJs
curl "https://fakeforge.com.br/api/generate?type=cnpj&quantity=100"

# Generate alphanumeric CNPJs (2026 format)
curl "https://fakeforge.com.br/api/generate?type=cnpjAlfa&quantity=50"

# Bulk export as SQL for ERP staging seed
curl -X POST "https://fakeforge.com.br/api/generate" \
  -H "Content-Type: application/json" \
  -d '{"type":"cnpj","quantity":1000,"format":"sql"}'

Free tier: 100 requests per day, up to 10,000 CNPJs per call. JSON, CSV and SQL output.

Other Brazilian generators