Argentina CUIL Validator

Verify an Argentine CUIL with the ANSES mod-11 checksum and decode the type prefix.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The CUIL (Código Único de Identificación Laboral — Unique Labour Identification Code) is the 11-digit identifier that Argentina’s ANSES assigns to every individual for employment and social-security purposes. Employers use it on payslips, contracts, and government filings; employees see it on their recibo de sueldo (pay stub). Before you submit a payroll record, integrate an HR system, or build an Argentine tax-compliance workflow, you need to know whether the CUIL your user provided is internally consistent. This validator runs the official ANSES mod-11 check-digit algorithm entirely in your browser — private, instant, and free.

How it works

A CUIL is always 11 digits in the form PP-DDDDDDDD-V:

  • PP — 2-digit type prefix: 20 (male), 27 (female), 23/24 (ambiguous, used when the standard prefix would produce an impossible check digit for a particular DNI).
  • DDDDDDDD — the person’s 8-digit DNI (Documento Nacional de Identidad).
  • V — a single check digit computed from the other 10 digits.

Check-digit algorithm

ANSES and AFIP both use the following mod-11 rule (identical for CUIL and CUIT):

  1. Take the first 10 digits.
  2. Multiply each by the fixed weight at its position: [5, 4, 3, 2, 7, 6, 5, 4, 3, 2]
  3. Sum all 10 products.
  4. Compute remainder = sum mod 11.
  5. Compute candidate = 11 − remainder.
  6. Apply the edge cases:
    • If candidate = 11 → check digit is 0.
    • If candidate = 10 → check digit is 9 (prefix is 23 or 24 in this situation).
    • Otherwise → check digit equals candidate.

The validator shows you the weighted sum, the raw remainder, and the final candidate so you can verify every arithmetic step.

Worked example

Take the obviously-fake CUIL 20-12345678-6 (no real person intended):

PositionDigitWeightProduct
12510
2040
3133
4224
53721
64624
75525
86424
97321
108216
Sum148

148 mod 11 = 511 − 5 = 6check digit = 6. The full valid CUIL is 20-12345678-6.

FieldValue
Prefix20 — Male (Hombre)
DNI segment12345678
Check digit6 (correct)
Weighted sum148
148 mod 115 → 11 − 5 = 6

Formula note

The mod-11 family of check-digit algorithms is widespread in national ID systems because a single transposed digit almost always produces a different remainder — catching the most common data-entry errors. The ANSES/AFIP variant uses the ascending–descending weight pattern [5,4,3,2,7,6,5,4,3,2], which cycles through two decreasing runs. The two special cases (candidate 11→0, candidate 10→9) exist because a single decimal digit can only hold values 0–9; the prefix 23/24 is the administrative solution when 20 or 27 would demand an impossible check digit.

Ad placeholder (rectangle)