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:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 6 | Registry Office ID | 6 digits | Unique nationwide CNS code of the civil notary | 123456 |
| 7 to 10 | Collection & Service | 4 digits | Own collection (01) and Civil Registry service (55) | 0155 |
| 11 to 14 | Registration Year | 4 digits | Four-digit registration year | 2024 |
| 15 | Book Type | 1 digit | 1: Birth, 2: Marriage, 3: Religious Marriage, 4: Death, 5: Stillborn | 1 |
| 16 to 20 | Book Number | 5 digits | Notary registry book number | 00123 |
| 21 to 23 | Page Number | 3 digits | Page inside the designated book | 045 |
| 24 to 30 | Entry Number | 7 digits | Sequential entry registration number | 0001234 |
| 31 & 32 | Check Digits | 2 digits | Dual Modulo 11 check digits under CNJ rules | 87 |
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. For CD1, multiply first 30 digits right to left by weights 2 to 10.
- 2. If remainder modulo 11 is 10, CD1 = 1; otherwise CD1 = remainder % 10.
- 3. For CD2, append CD1 as position 31 and multiply all 31 digits right to left by weights 2 to 11.
- 4. If remainder modulo 11 is 10, CD2 = 1; otherwise CD2 = remainder % 10.
- 5. Final check digits occupy positions 31 and 32.