CNH generator and validator

Generate valid CNH numbers to use in tests or check whether a CNH is valid.

What do you want to do?

A valid CNH is generated when the page opens. Choose the quantity or click "Generate CNH" to create another one.

How it works

  • The CNH is generated on the server and is not stored anywhere.
  • The generated number is the 11-digit registration number, the one systems ask for.
  • The two check digits follow the Denatran rule.
  • The number is for testing only and does not belong to any real person.
  • The latest generated values are listed below the button until you leave the page.

How to use the API

You can integrate the CNH generator into your app through our REST API.

Endpoint

GET /api/generators/cnh

Query parameters

quantity
Optional. From 1 to 50. When set, the response has the "cnhs" list instead of "cnh".

curl example

curl "https://devtools.vmotta.dev/api/generators/cnh?quantity=2"

Response

{
  "cnhs": [
    "25755879684",
    "61360956403"
  ]
}