Skip to main content
Skip to main content

Certificate Validator

Validate birth, marriage, and death certificate registration numbers. QA.

About the Certificate Validator

The Certificate Validator checks if a birth, marriage, or death certificate registration number is mathematically valid. The registration has 32 digits with 2 verification digits calculated using the modulo 11 algorithm.

This tool is useful for developers who need to validate certificate registration formats in registration systems. The validation is purely mathematical and does not query any notary office database.

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)