Free tool
Valid CNJ number generator
Pick the tribunal, year, and origin unit and generate a CNJ number with correct check digits. Ideal for seeding test environments or validating court API integrations.
What is a CNJ generator for?
Testing court API integrations (Vigilant included) requires valid CNJ numbers. Using real numbers is not ideal: you contaminate caches with production data, you violate third-party privacy, and you cannot control the variety of test cases.
This generator produces synthetic numbers with the correct structure: the 7 sequential digits and the 4 origin-unit digits are random, but the check digits are computed by the official mod-97 algorithm (CNJ Resolution 65/2008). Any strict validator — including the decoder at [/en/tools/cnj-decoder](/en/tools/cnj-decoder) — accepts the numbers generated here as valid.
Single-tribunal segments (STF, CNJ, STJ, STM) use the fixed tribunal code `00` because they are national courts with no regional split. For the other segments (Federal, Labor, Electoral, State, and State Military), the generator lists the real tribunals.
Need to test the Vigilant API?
Vigilant has a free sandbox for every new account. Generate a test number here and use it straight on Vigilant to see the response payload.
Try Vigilant