Skip to main content
Skip to main content

Certificate Generator

Generate birth, marriage, and death certificate numbers. Ideal for QA.

Waiting for generation...
Waiting for generation...
Waiting for generation...

About the Certificate Generator

The Box4Dev Certificate Generator creates unique registration numbers for birth, marriage, and death certificates. Each generated number follows the standard 32-digit format established by the National Council of Justice (CNJ).

This tool is designed for developers and testers who need fictitious but realistic data to validate registration forms, test the logic of systems that process civil documents, and ensure correct data handling.

Anatomy of Brazilian Civil Certificate ID

The national certificate identification matrix features 32 digits across 9 fields:

PositionFieldLengthMeaning & RuleExample
1 to 6Registry Office ID6 digitsUnique nationwide CNS code of the civil notary123456
7 to 10Collection & Service4 digitsOwn collection (01) and Civil Registry service (55)0155
11 to 14Registration Year4 digitsFour-digit registration year2024
15Book Type1 digit1: Birth, 2: Marriage, 3: Religious Marriage, 4: Death, 5: Stillborn1
16 to 20Book Number5 digitsNotary registry book number00123
21 to 23Page Number3 digitsPage inside the designated book045
24 to 30Entry Number7 digitsSequential entry registration number0001234
31 & 32Check Digits2 digitsDual Modulo 11 check digits under CNJ rules87

Civil Certificate Checksum Algorithm (CNJ Ruling 63/2017)

Verification applies two sequential Modulo 11 steps with cyclic weights:

CD1 = (Sum1 % 11 == 10 ? 1 : Rem1 % 10); CD2 = (Sum2 % 11 == 10 ? 1 : Rem2 % 10)
  1. 1. For CD1, multiply first 30 digits right to left by weights 2 to 10.
  2. 2. If remainder modulo 11 is 10, CD1 = 1; otherwise CD1 = remainder % 10.
  3. 3. For CD2, append CD1 as position 31 and multiply all 31 digits right to left by weights 2 to 11.
  4. 4. If remainder modulo 11 is 10, CD2 = 1; otherwise CD2 = remainder % 10.
  5. 5. Final check digits occupy positions 31 and 32.

Frequently Asked Questions (FAQ)

Are the generated certificate numbers valid?
The numbers are structurally valid, meaning they follow the national 32-digit numerical pattern used by Brazilian registries. However, they are fictitious and do not correspond to any real record.
What is the purpose of generating a certificate number?
The tool is intended for software developers and testers who need to populate form fields that require a certificate number. It allows validating the field mask and data storage.
What do the numbers on a certificate mean?
The unique 32-digit registration number contains encoded information, such as the registry code (CNS), the year of registration, the type of book, the page number, the term, and a verification digit.
Can I use these numbers for official purposes?
No. Like other data generation tools, usage is restricted to testing and development environments. Using a fictitious certificate number to attempt to gain advantages is illegal.