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.
Validate and generate a synthetic Brazilian CNS number using both official DATASUS algorithms, without querying CADSUS.
The CNS (Cartão Nacional de Saúde) is the 15-digit number that identifies each user in Brazil's public health system (SUS). There are two types, each with its own validation algorithm, publicly documented by DATASUS/eSUS. A definitivo CNS starts with 1 or 2 and is tied to a validated CPF: the first 11 digits form a base, multiplied by decreasing weights from 15 to 5; the remainder of dividing the sum by 11 is taken, and the check digit is 11 minus that remainder (with a special rule when the result is 10, in that case the sum is recalculated with a +2 adjustment and the number gets a different suffix before the final digit). A provisório CNS starts with 7, 8 or 9 and is issued when the person does not yet have a validated CPF or there is a registration inconsistency: here there is no separate 'computed digit', all 15 digits are multiplied by decreasing weights from 15 to 1, and the number is only valid if that entire sum is a multiple of 11. This tool implements both algorithms, automatically detects which one to use from the leading digit, and also generates synthetic numbers of each type for testing, without ever querying CADSUS or any real health database.
A definitivo CNS carries, within its 15 digits, a structure similar to a PIS/PASEP number: an 11-digit base, followed by a 3-digit suffix ('000' or '001') and a final check digit. The weighted sum uses weights 15, 14, 13... down to 5 over the base, and the modulo-11 result is adjusted to fit a single position, with a special case when the remainder is 1, which makes the tool add 2 to the original sum and use the '001' suffix instead of '000'.
A provisório CNS has no such base-plus-suffix structure, it is validated as a whole: all 15 digits, without exception, enter the weighted sum with weights from 15 to 1, and the only rule is that the sum must be exactly a multiple of 11. That is why, when generating a provisório CNS, the tool draws the first 14 digits at random and computes the 15th so that this sum closes out, instead of applying a direct check-digit formula.
A CNS that passes the correct algorithm is only mathematically consistent, it does not confirm a person is registered in CADSUS under that number, nor does it reveal care history, a reference facility, or eligibility for any health service. For that kind of confirmation about a real CNS, you need an official SUS/DATASUS channel; this tool works entirely locally, without ever sending a number to a server, and it is meant for testing forms and systems that require a well-formed CNS.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/cns-validator"
width="100%"
height="600"
style="border:0"
loading="lazy"
title="Brazilian CNS (Health Card) Validator"
></iframe>These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
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.
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.