Przejdź do treści

CPF / CNPJ Validator and Generator — Including Alphanumeric CNPJ

Validate Brazilian CPF and CNPJ numbers, including the new alphanumeric CNPJ from July 2026, and generate valid test numbers for software testing. Batch, formatted output, runs in your browser.

Validates the check digits only; it does not query the Receita Federal. Generated numbers are random test data.

Do 100 000 znaków w polu i 1 000 000 w wyniku. Obsługiwane formaty i przykłady poniżej.

Wynik

Wprowadź dane lub załaduj przykład, a następnie uruchom narzędzie. Wynik pojawi się tutaj.

Jak używać

  1. Paste CPF or CNPJ numbers, one per line, with or without dots, slashes and dashes — or choose a generator.
  2. Run the tool.
  3. Each number is shown formatted with ✓ or ✗; CPFs also show the fiscal region from the 9th digit.

Przykład

529.982.247-25 → ✓ CPF, region 7 (ES/RJ)
12.ABC.345/01DE-35 → ✓ CNPJ (alphanumeric)

Szczegóły i ograniczenia

CPF and CNPJ end with two check digits calculated with mod 11. From July 2026 new CNPJs can contain letters in the first 12 positions; each character counts as its ASCII code minus 48, so numeric CNPJs keep validating as before (IN RFB 2.229/2024).

Sequences such as 111.111.111-11 pass the arithmetic but are invalid and are rejected.

FAQ

Does a valid CPF mean it belongs to someone?

No. The check digits only catch typing errors. Use the Receita Federal services to check registration status.

What is the alphanumeric CNPJ?

A new CNPJ format with letters and digits in the first 12 positions, issued from July 2026. Existing numeric CNPJs stay valid.

Can I use the generated numbers?

Only as test data in software development. They are random and must not be used to identify people or companies.

Źródła

Aktualizacja strony: