CPF/CNPJ Validator

Check whether a CPF or CNPJ has valid check digits, with or without formatting.

Enter the CPF or CNPJ, formatted or not. The result appears automatically, indicating whether the document is valid and which type was detected.

About this tool

This tool checks whether a CPF (11 digits) or CNPJ (14 digits) has mathematically valid check digits, using the official validation algorithm. The document type is detected automatically from the digit count, and formatting (dots, dash, slash) is ignored.

How to use

Type the number into the field, with or without punctuation. There is no button to click — the result updates with every keystroke.

Examples

"111.444.777-35" is a valid CPF (correct check digits). "11.222.333/0001-81" is a valid CNPJ. A document made of one repeated digit, like "111.111.111-11", is always invalid, even though it passes the arithmetic check.

Frequently asked questions

No — it only checks whether the check digits are mathematically valid, the same calculation forms and systems use to reject mistyped numbers. It does not confirm the CPF or CNPJ was actually issued by Brazil's federal revenue service.

No — the tool ignores any punctuation (dots, dash, slash, spaces) and only considers the digits.

No — the validation happens entirely in your browser; nothing is sent to the server.
CPF/CNPJ Validator
Result