Brazilian CPF/CNPJ Validator and Generator

Generation for development and testing only. Do not use inappropriately.

Validate

Generate

Generated:

Copied!

Generation for development and testing only. Do not use inappropriately.

Benefits of UtiliApp

  • 100% free
  • Works in the browser
  • Not registered
  • Deleted files

How to use

  1. 1.

    Validate document

    Enter a Brazilian CPF or Brazilian CNPJ in the field and click Validate.

  2. 2.

    Generate for testing

    Click on “Generate Brazilian CPF” or “Generate Brazilian CNPJ” to obtain a valid document for development.

  3. 3.

    Copy/Use

    Use the value only in test environments, never in production.

Frequently Asked Questions

Do you store the entered data?

No. Validation is processed locally, and we do not store the inputs.

What is the generator for?

Exclusively for development and testing. Do not use documents generated inappropriately.

What is an alphanumeric Brazilian CNPJ?

The alphanumeric Brazilian CNPJ is a new form of company identification that will come into effect in Brazil from 2026. Unlike the traditional Brazilian CNPJ that uses only numbers (14 digits), the alphanumeric Brazilian CNPJ allows the use of letters (A-Z) and numbers (0-9) in its first 12 positions, keeping the last 2 digits as numeric check digits. The format follows the pattern: 8 characters for the root (may be letters or numbers), 4 characters for the branch (may be letters or numbers), and 2 check digits (digits only). This change aims to broaden the identification capacity and improve the management of the national company registry. Our tool is already prepared to generate and validate alphanumeric Brazilian CNPJs in accordance with the new legislation.

Does the field apply a mask?

Yes. The value is automatically formatted as Brazilian CPF (###.###.###-##) or Brazilian CNPJ (##.###.###/####-##), but the validation uses only the digits/characters.

We process in the browser and we do not store the entered data.

Brazilian CPF and Brazilian CNPJ have check digits that allow identifying typing errors. This tool applies the known validation rules to verify whether a provided number is mathematically valid, which does not imply existence or association with a real person or company.

The generation functionality is intended only for development and testing environments. Do not use generated documents for any purpose that could violate laws or terms of use.