1001Ferramentas
🆔Validators

PIS Format Validator

Validate a Brazilian PIS/PASEP number (11 digits) by checking its verification digit with the official algorithm. Useful for HR and payroll records.

Checking the PIS check digit fast

Payroll filing bounced and HR now has to find which of the two hundred PIS numbers in the spreadsheet is wrong. Pasting them one by one here is the quickest test available: with or without dots and dash, eleven digits, and the verdict changes as you type. The page answers exactly one question, whether the last digit agrees with the first ten.

It runs the official mod 11 routine: weights 3, 2, 9, 8, 7, 6, 5, 4, 3 and 2 applied to the first ten digits, summed, then divided by 11 for the remainder. A remainder below 2 means a check digit of zero; otherwise the digit is 11 minus the remainder. Everything that is not a digit is stripped first, so 120.56412.54-5 and 12056412545 give the same answer. Ten or twelve digits turn red immediately.

Two limits are worth knowing. A correct check digit does not mean the number was ever issued, since nothing here queries Caixa or the social security database, so a made-up number that satisfies the math shows green. Eleven zeros also pass, so repeated sequences need blocking in your own code. Note too that the field arrives prefilled with an example whose digit does not close, so the page opens red until you paste your own.

Frequently asked questions

Are PIS, PASEP, NIT and NIS the same number?
They are different names for the same eleven-digit numbering scheme with the same check digit. What changes is the agency that issued it.
Does green mean the worker is registered?
No. The check is purely arithmetic. Confirming that a number exists and who it belongs to requires the official social security records.
Why does 00000000000 show as valid?
The weighted sum is zero and the calculated digit is zero too, so the formula closes. It is a known mod 11 limitation, and repeated sequences must be filtered separately.

Related Tools