CNH Generator

Try our CNH (National Driver's License) generator! You can create various valid numbers and customize your experience using the automatic rotation to generate new CNHs based on the selected time.

Also, be sure to check out our CNH validator which ensures the authenticity of the generated numbers. It’s quick and easy!

This tool generates fictitious data intended exclusively for software testing and development purposes. The data does not correspond to real people or entities and must not be used for illegal, fraudulent purposes, or in ways that violate the privacy of others. Compliant with LGPD (Brazilian Data Protection Law).

Understanding CNH and the Generator Algorithm

What is CNH?

The Carteira Nacional de Habilitação (CNH) is the Brazilian official document that authorizes a person to drive motor vehicles. It is issued by the Detran of each state and has a unique registration number with 11 digits. The CNH contains information such as driver's license category (A, B, AB, C, D, E), expiration date, points, and the driver's personal data. For rental, insurance, transport, and mobility systems, the CNH number is frequently required.

How does the generation algorithm work?

The CNH number consists of 9 randomly generated base digits and 2 check digits calculated using modulus 11. The first verifier is obtained by multiplying each of the 9 digits by weights from 2 to 10, summing the products, and calculating the remainder of division by 11. The second verifier follows the same process with weights 2 to 11, but the initial accumulator is incremented by the value of the first verifier when it is greater than 9.

Why use fictional CNH numbers in development?

Vehicle rental systems, transportation apps, auto insurance platforms, and Detran systems frequently require the CNH number as mandatory data. Registration tests, form validation, and API integrations in these systems need valid numbers that pass format verification, without using real people's CNH numbers. Numbers generated by Help4Dev meet this need safely.