انتقل إلى المحتوى

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.

الحد الأقصى 100000 وحدة UTF-16 لكل إدخال و1000000 لكل نتيجة. راجع الصيغ المدعومة والأمثلة أدناه.

النتيجة

أدخل المحتوى أو حمّل مثالًا، ثم شغّل الأداة. ستظهر النتيجة هنا.

طريقة الاستخدام

  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.

مثال

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

التفاصيل والقيود

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.

مراجع التنسيقات

تاريخ تحديث صفحة الأداة: