Skip to content

CNPJ Formatter

Format CNPJ numbers (numeric and alphanumeric): add or remove mask. Supports the new Jul/2026 format.

No sign-up 100% free Private

Enter one or more CNPJs, one per line (numeric or alphanumeric)

The result will appear here

Was this tool helpful?

How to Format CNPJ - Numeric and Alphanumeric

Online CNPJ Formatter - Free for Testing

Our free online cnpj formatter creates valid test data instantly. Designed for software developers, QA engineers, and testers, this tool generates mathematically valid data that passes all format and check-digit validations, making it perfect for populating test databases, filling out forms, and building automated test suites.

Key Features

  • Generates mathematically valid data instantly using official algorithms
  • Batch generation to create multiple entries at once for testing
  • Formatted and unformatted output options for different use cases
  • One-click clipboard copy for fast workflow integration
  • No registration, API key, or installation required
  • Completely free with unlimited usage

The generation algorithm follows the official specification, ensuring that every generated value passes standard validation checks. This makes the tool ideal for automated testing pipelines, form validation testing, and database seeding where realistic test data is needed without using real personal information.

All generation happens in your browser using JavaScript and no data is sent to any server. The tool is completely free, requires no registration, and works on any device including smartphones and tablets. Generated values are random and unique per session, providing fresh test data every time.

Important: Generated data is exclusively for testing and software development purposes. It should never be used for any fraudulent or illegal activities. Combine this generator with our validator tools to create comprehensive end-to-end test workflows for your applications and ensure data integrity.

Frequently Asked Questions

What is the CNPJ format?
The standard CNPJ format is XX.XXX.XXX/XXXX-XX with dots, slash and dash. Alphanumeric CNPJs use the same mask but allow letters A-Z.
Does this support alphanumeric CNPJ?
Yes. The formatter automatically detects whether the CNPJ is numeric or alphanumeric and applies the correct mask.
Can I format several CNPJs at once?
Yes. Enter one CNPJ per line and all will be formatted simultaneously.