CPF / CNPJ Validator

Check the validity of a Brazilian CPF (individual) or CNPJ (company) number using the official check-digit rules. 100% local — your number is never uploaded.

Type
Result

Batch workbench — check a whole list (payroll, suppliers, customers)

Format & check-digit pre-check only — it does not query any government database and cannot confirm a number exists, is active, or belongs to someone. Your list never leaves this device.

Validate a CPF or CNPJ

Paste a Brazilian CPF (individual) or CNPJ (company) number. Segmented display, formatted copy, test-number generation and batch check — all locally.

A CPF has 11 digits and a CNPJ has 14; in both, the last two digits are check digits computed from the preceding ones with a modulo-11 weighting defined by Receita Federal do Brasil. This validator recomputes those digits locally in your browser and explains exactly which digit failed, so you can spot typos, swapped digits and copy-paste damage before a form rejects them.

Scope and limits: a mathematically valid number is well-formed, but only Receita Federal's own registry can confirm it exists, is active, or belongs to a specific person or company — this tool never queries any government database. Note for developers: under Instrução Normativa RFB 2.229/2024, Brazil starts issuing alphanumeric CNPJs (letters in the first 12 positions, numeric check digits) to new registrations from 31 July 2026; existing numeric CNPJs remain valid unchanged. Last verified: July 2026.

FAQ

How exactly are CPF check digits calculated?

Multiply the first 9 digits by weights 10 down to 2 and sum. The first check digit is (sum × 10) mod 11, with 10 treated as 0. Append it, repeat with weights 11 down to 2 for the second digit. Sequences with all identical digits (like 111.111.111-11) pass the math but are explicitly invalid.

What does the 9th digit of a CPF mean?

It identifies the fiscal region where the CPF was issued — for example 8 covers São Paulo, and 0 covers Rio Grande do Sul. It is informational and does not change how validation works.

What is the alphanumeric CNPJ starting July 2026?

From 31 July 2026 Receita Federal may assign new CNPJs containing letters A–Z in the first 12 positions (root + branch), keeping 14 characters and two numeric check digits. Existing numeric CNPJs never change, and both formats remain valid side by side.

Can I check a whole payroll or supplier list at once?

Yes — open "Batch check", paste one number per line (or import a CSV column), and you get a per-row verdict with the failure reason, a valid/invalid summary, and CSV export for your records.

Why does a "valid" number still get rejected by a bank or government form?

Format validation cannot see registry status. The number may be suspended, cancelled, or simply not registered. When status matters, confirm it on Receita Federal’s official consultation service — this tool is the fast local pre-check, not the registry.