Definitivo CNS (starts with 1)
- Input
- 12345678901
- Expected output
- 123456789010000
An 11-digit base + "000" suffix + check digit 0 (the weighted sum had remainder 0, so 11-0=11 becomes 0).
CNS definitivo vs provisório, what is the difference
The leading digit of a 15-digit CNS already reveals its type: 1 or 2 is definitivo, tied to a validated CPF; 7, 8 or 9 is provisório, issued when that link does not yet exist.
An 11-digit base + "000" suffix + check digit 0 (the weighted sum had remainder 0, so 11-0=11 becomes 0).
The last digit (5) was chosen so the weighted sum of all 15 digits closes to a multiple of 11 (110 = 10 × 11).
No. It is a synthetic number computed only to satisfy DATASUS's check-digit algorithm. The tool never queries CADSUS or any real health registry.
The recognized official algorithms cover those ranges; a number starting with any other digit does not match either validation scheme and is treated as invalid by this tool.
It is a special case of the algorithm: when the first computed check digit would be 10, the original sum is recalculated with a +2 adjustment, and the suffix changes to '001' to flag that adjustment before the recalculated final digit.
Yes, the CNS validator above has a Generate mode with a selector for definitivo or provisório, each click produces a synthetic number that passes the matching algorithm.
A definitivo CNS starts with 1 or 2 and uses a weighted sum over the first 11 digits, with check digits appended at the end.
The CNS is generated and validated locally in your browser. Analytics receives only the action and status, never the generated or pasted number.