El Salvador DUI and NIT Validator

Type a DUI to check or calculate its digit step by step, or a 14-digit NIT to check its format, or paste a list to validate every line, flag duplicates, clean it and export CSV.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Type

    Enter a DUI or NIT.

  2. 2
    Check

    Read the result and steps.

  3. 3
    Batch

    Paste a list.

  4. 4
    Clean

    Build a clean list.

  5. 5
    Export

    Download CSV.

เกี่ยวกับเครื่องมือนี้

The DUI, Documento Único de Identidad, is the identity document of every Salvadoran adult. Its number has eight digits followed by a check digit, usually written as 12345678-4. The check digit is calculated by multiplying the eight digits by 9, 8, 7, 6, 5, 4, 3 and 2, adding the products and taking ten minus the last digit of the sum, with ten becoming zero. Since 2021, individuals use their DUI as their tax identification number, the NIT, before the Ministerio de Hacienda, so the same number appears on invoices, contracts and tax forms. Companies and other legal entities keep a fourteen-digit NIT, written as 0614-010190-101-3, which combines a code for the place of registration, a date, a correlative number and a final check digit. Payroll departments, shops issuing tax documents and anyone handling customer or employee lists need to catch typing errors before they reach a tax return or an electronic invoice. This tool does that in your browser. Type a DUI with or without its digit and it shows the correct digit with the calculation in a table; type a company NIT and it checks its fourteen-digit format; or paste a whole list to validate every line, flag duplicates, produce a clean formatted list and export a CSV.

The DUI check digit

| Step | What to do | |---|---| | 1 | Take the eight digits | | 2 | Multiply by 9, 8, 7, 6, 5, 4, 3, 2 | | 3 | Add the products | | 4 | Digit = (10 − last digit of the sum) mod 10 |

Worked example

For 12345678, the products are 9, 16, 21, 24, 25, 24, 21 and 16, which add up to 156. The last digit is 6, and 10 − 6 = 4, so the DUI is 12345678-4. A line with 12345678-5 would be marked wrong, and 0614-010190-101-3 would be recognised as a fourteen-digit NIT format.

Company NITs

The tool checks that a company NIT has fourteen digits and formats it; it does not calculate its final digit. Confirm company NITs with Hacienda's services.

Cleaning lists

Paste a column from a spreadsheet, check the results and use the clean list, which keeps valid numbers once each in a consistent format.

Common errors

Most errors swap two digits or drop the dash and the check digit. The check digit catches most of them, and the batch mode shows every line with its status, so you can fix a whole column before importing it into a payroll or invoicing system.

Calculating missing digits

Type only the eight digits of a DUI to get the check digit and the formatted number.

Exporting

The CSV keeps the original input next to the cleaned value and its status.

Privacy

Numbers are processed only in your browser.

Limits

A correct digit does not prove the document is valid or belongs to a person. Not legal advice.

ตัวอย่างพร้อมวิธีทำ

12345678 → 9+16+21+24+25+24+21+16 = 156 → 10 − 6 = 4 → 12345678-4.

สรุปสั้น ๆ

คำถามที่พบบ่อย

How is the DUI check digit calculated?

Multiply the eight digits by 9 down to 2, add them and take 10 minus the last digit of the sum.

Is the DUI the NIT for individuals?

Yes, since 2021 individuals use their DUI as NIT.

How long is a company NIT?

Fourteen digits, written as 0614-010190-101-3.

Does the tool check company NIT digits?

It checks the format only.

Can I check a list?

Yes, paste it in batch mode.

Is my list uploaded?

No, everything runs in your browser.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา