Loading…

Validators14.05

Brazil CPF and CNPJ Validator

Check whether a Brazilian CPF or CNPJ number is valid with its two check digits, including the new alphanumeric CNPJ issued since 2026.

Back to Validators

11-digit CPF or 14-character CNPJ, with or without punctuation.

This runs entirely in your browser. We don’t store any data.

Document

Both check digits are correct.

529.982.247-25

CPF (individuals)

Check digits
25
Tax region
ES, RJ

How to use it

  1. 01

    Enter the CPF or CNPJ with or without dots, slash and dash.

  2. 02

    The tool recognizes it by length: 11 digits is a CPF and 14 characters is a CNPJ.

  3. 03

    You see whether both check digits are right and, for a CPF, the tax region where it was issued.

How it works

The CPF identifies individuals: 9 base digits plus 2 check digits. The first one multiplies the 9 digits by 10, 9, 8… 2, adds them up and takes 11 minus the remainder of dividing by 11 (0 if the remainder is below 2). The second repeats the process over 10 digits with weights 11 to 2.

The CNPJ identifies companies: 12 base positions and 2 check digits with weights 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2. Since July 2026 the Receita Federal has issued alphanumeric CNPJs: each letter is worth its ASCII code minus 48 (A = 17), and existing numeric CNPJs remain valid.

The ninth CPF digit shows the tax region where it was issued (8 is São Paulo, 7 Rio de Janeiro and Espírito Santo, and so on). The tool only checks that the number is well formed, not that it exists.

Examples

  • Sample CPF

    529.982.247-25: the calculated check digits are 2 and 5, and the ninth digit, 7, points to ES and RJ.

  • Numeric CNPJ

    11.222.333/0001-81: 0001 marks the head office and the check digits 8 and 1 are correct.

  • Alphanumeric CNPJ

    12.ABC.345/01DE-35, the Receita Federal’s own example: letters count as 17 (A), 18 (B) and so on, giving check digits 3 and 5.

Frequently asked questions

What is the alphanumeric CNPJ?

It is the Receita Federal’s new format, issued since July 2026: the first 12 positions may contain letters and the last 2 are still digits. Existing CNPJs do not change.

Why is 111.111.111-11 rejected?

It satisfies the formula, but the Receita never issues numbers with all digits equal.