Skip to content

Pedro Ivotools

CNPJ Generator

Generate valid test CNPJ numbers in the classic numeric format or the new alphanumeric format, with or without the mask.

Local calculation
The result is calculated in your browser.
Private by default
Nothing you enter leaves your browser.
Format
CNPJ

How it works

The eight-character base is random (digits only, or digits and letters for the alphanumeric format introduced by the Receita Federal), followed by the 0001 branch number for a headquarters.

Both check digits are calculated with the official algorithm, in which each character counts as its ASCII code minus 48.

Questions

Can I use the generated numbers for real registrations?

No. They are random numbers that happen to pass the format and check-digit rules. Use them only to test software, never to impersonate a person or company.

  • CNPJ Validator

    Validate CNPJ numbers in both the numeric and the new alphanumeric format by checking their structure and check digits.

  • CPF Generator

    Generate random CPF numbers with valid check digits for testing Brazilian forms and systems, with or without formatting.

Esc