Skip to content

Ads may be personalised. Do you also accept cookies to measure visits? Privacy and cookies

Validate CPF and CNPJ

Type a CPF or CNPJ, the Brazilian taxpayer numbers for people and companies, and see whether the check digits match.

With or without dots, slash and hyphen. The number is not stored.

This page does not query Receita Federal, Brazil's federal revenue service. It only checks the check digit math. A number that passes does not mean the document exists or is in good standing.

Type a CPF or CNPJ to check the digits.

Advertisement

What it is

The ZiggWeb CPF and CNPJ validator checks the two check digits of these Brazilian taxpayer numbers for people and companies using modulo 11, including the alphanumeric CNPJ, the new format from Receita Federal, Brazil's federal revenue service. The page does not generate numbers and does not query Receita Federal: a number that passes may not exist or may not be in good standing. The math runs in the browser and the number is not stored.

Tool facts

Supported formatsCPF (11 digits), numeric CNPJ and alphanumeric CNPJ (14 characters).
LimitOne number at a time. The rule was checked in testing with 600 numbers.
Where it runsIn the browser on your device. The file is not sent to a server.
PriceFree
Sign-upNot needed

How to use it

  1. Type or paste the CPF or CNPJ, with or without punctuation.
  2. See right away whether the check digits match.
  3. If they do not match, read the reason and check the number you typed.
Advertisement

Frequently asked questions

Does a valid number mean the CPF or CNPJ exists?

No. It only means the last two digits agree with the math done on the others. The document may not exist, or may be suspended or cancelled. Only Receita Federal, Brazil's federal revenue service, reports the registration status.

What is the alphanumeric CNPJ?

It is the new CNPJ format defined by Receita Federal: the first 12 positions can have uppercase letters and numbers, and the two check digits remain numeric. The math is the same modulo 11, with each character worth its code in the ASCII table minus 48.

Is the number I type stored?

No. The math runs in your browser, the number is not sent over the internet and it disappears when you close or reload the page.

Real limits

The page only does the check digit math. It does not query Receita Federal (Brazil's federal revenue service), does not say whether the document exists, who it belongs to or whether it is in good standing, and does not generate numbers. To find out the registration status, use Receita Federal's own services.

Privacy

The code of this tool does not send your file or your text anywhere. The work happens in the browser's memory and ends when you close the tab.

See how to check this

Advertisement

Related tools

Advertisement