CUIT / CUIL: what it is and how to test it
The CUIT (Clave Única de Identificación Tributaria) identifies taxpayers in Argentina, and the CUIL (Clave Única de Identificación Laboral) is the same structure for workers. They are issued by the tax authority (AFIP, now ARCA) and are asked on every invoice and payroll form. The validator checks the 11 digits and the check digit.
For tests only. These numbers have a correct format and check digit but belong to no real person or account. Never use them to deceive, to open accounts or to bypass a check. The numbers on this page come from the same generator as the tool, with a fixed seed so that the examples do not change; the tool creates new ones at every click.
Structure of the number
11 digits written XX-XXXXXXXX-X: a 2-digit prefix (20 for men, 27 for women, 30 and 33 for companies), the 8 digits of the DNI (or of the company number) and a check digit.
The check digit, step by step
The first 10 digits are multiplied by the weights 5, 4, 3, 2, 7, 6, 5, 4, 3, 2 and summed. The check digit is 11 minus the remainder of the sum by 11; if that gives 11 the digit is 0, and if it gives 10 the combination has no valid check digit and the number is not issued with that prefix.
Worked example with 30-61161570-8:
| Position | Character | Value | Weight | Product |
|---|---|---|---|---|
| 1 | 3 | 3 | 5 | 15 |
| 2 | 0 | 0 | 4 | 0 |
| 3 | 6 | 6 | 3 | 18 |
| 4 | 1 | 1 | 2 | 2 |
| 5 | 1 | 1 | 7 | 7 |
| 6 | 6 | 6 | 6 | 36 |
| 7 | 1 | 1 | 5 | 5 |
| 8 | 5 | 5 | 4 | 20 |
| 9 | 7 | 7 | 3 | 21 |
| 10 | 0 | 0 | 2 | 0 |
Sum = 124; 124 mod 11 = 3; 11 - 3 = 8: the check digit is 8.
Valid examples
Five numbers generated by the tool with a fixed seed, each one accepted by its validator:
| Example (formatted) | Without mask | Validator |
|---|---|---|
30-61161570-8 | 30611615708 | valid |
27-65820370-9 | 27658203709 | valid |
30-09249140-0 | 30092491400 | valid |
27-95837129-8 | 27958371298 | valid |
33-69277484-7 | 33692774847 | valid |
How the validator answers
The same first example, one with a changed ending and one truncated, checked by the validator:
| Value | Result | Reason |
|---|---|---|
30-61161570-8 | valid | - |
30611615709 | invalid | the check digit should be 8 |
306116157 | invalid | needs 11 digits |
Common mistakes
- The 10 case is the one that people forget: when 11 minus the remainder is 10 the number cannot exist with that prefix, so a CUIT never has a check digit of 10 and a generator must skip those combinations.
- A CUIT and a CUIL of the same person share the 8 digits of the DNI but may have a different prefix: do not assume that one validates the other.
Frequently asked questions
Is 20-12345678-6 a valid CUIT?
By the check digit, yes: the weighted sum is 148, and 11 - (148 mod 11) = 6. It is a documentation example that identifies nobody.
What do the first two digits of a CUIT mean?
They tell the kind of holder: 20, 23, 24 and 27 for people, 30, 33 and 34 for companies and legal entities. The tool generates 20, 27, 30 and 33.
Can I use a CUIT / CUIL number generated here in a real system?
No. A number such as 30-61161570-8 has a correct format and check, but nobody was issued it, and it may coincide with a real holder by chance. Use it in test environments, demos and automated tests that never leave your control.