CNES Health Facility Validator
Validate a Brazilian CNES number (National Registry of Health Facilities, 7 digits). Useful for clinics, hospitals, public health billing and healthcare records.
—
What is a CNES number?
CNES stands for Cadastro Nacional de Estabelecimentos de Saúde (National Registry of Health Establishments). It is a 7-digit code that uniquely identifies every health facility in Brazil, maintained by DATASUS under the Ministério da Saúde. This page validates the format/structure of the code.
The CNES is a sequential registry number with no publicly documented check digit, so the validation here is structural (length and digits), not a check-digit calculation.
Which establishments have a CNES
- Hospitals, UBS (basic health units), clinics and outpatient centers.
- Laboratories, pharmacies and diagnostic services.
- Individual consultórios (private practices) and other care points.
Where the CNES is used
- SUS billing and production systems (SIA/SIH/BPA) and e-SUS APS.
- Registration of the professionals and equipment tied to the establishment.
- Prescriptions and TISS forms used by private health insurance.
You can look up any establishment at cnes.datasus.gov.br.
Common pitfalls
- Confusing the CNES with the establishment's CNPJ — they are different identifiers; a single CNPJ can relate to one or more CNES units.
- Dropping a leading zero — the code must keep all 7 digits.
- Assuming a valid format means the facility is active — only the DATASUS lookup confirms the current status.
FAQ
Is the CNES the same as the CNPJ? No. The CNPJ identifies the legal entity for tax purposes; the CNES is a health-specific identifier for the physical establishment.
Does the CNES have a check digit? There is no publicly documented check digit, so this tool validates the 7-digit structure only.
Where do I confirm an establishment? On the public DATASUS portal at cnes.datasus.gov.br.
Related Tools
IBGE UF Code Validator
Validate IBGE UF code (2 digits: 11-53). Covers the 27 official codes and shows UF and name.
GraphQL Query Validator
Check if a GraphQL query/mutation/subscription is syntactically valid and show the operation tree.
CPF/CNPJ Detector & Validator
Auto-detect if a string is CPF (11 digits) or CNPJ (14 digits) and validate its check digit.
Vehicle Plate Validator (BR)
Validate Brazilian vehicle plates in old (ABC-1234) and Mercosul (ABC1D23) formats. Auto-detects which one. Everything in your browser.
Heading Hierarchy Validator
Validate the heading hierarchy (H1 to H6) of a page and find out if it skips levels. Improve the accessibility, structure and SEO of your HTML content.
CNPJ Base/Branch Validator
Validate the base (8 digits) and branch (4 digits) of a Brazilian CNPJ, without the check digit. Useful for spotting headquarters, branches and corporate groups.