PIS / PASEP / NIT generator and validator

Generate and validate a PIS / PASEP / NIT for tests, with the check digit algorithm shown with a worked example.

loading PIS / PASEP / NIT generator and validator
About this tool

PIS / PASEP / NIT: what it is and how to test it

PIS, PASEP and NIT are three names for the same 11-digit number of the Brazilian worker: PIS for private-sector workers (Caixa), PASEP for public servants (Banco do Brasil) and NIT as the identification used by the INSS. Payroll, eSocial and HR systems ask for it and check its last 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: 10 of sequence and 1 check digit, written as 000.00000.00-0. Numbers of all equal digits are not accepted.

The check digit, step by step

The 10 first digits are multiplied by the weights 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 and summed. The remainder of the sum by 11 decides the check digit: a remainder of 0 or 1 gives 0, any other gives 11 minus the remainder.

Worked example with 419.49576.27-9:

PositionCharacterValueWeightProduct
144312
21122
399981
444832
599763
655630
777535
866424
92236
1077214

Sum = 299; 299 mod 11 = 2; 2 is below 2? no, 11 - 2 = 9; so the check digit is 9.

Valid examples

Five numbers generated by the tool with a fixed seed, each one accepted by its validator:

Example (formatted)Without maskValidator
419.49576.27-941949576279valid
695.25600.68-769525600687valid
222.35258.87-422235258874valid
068.93934.00-206893934002valid
057.49680.12-205749680122valid

How the validator answers

The same first example, one with a changed ending and one truncated, checked by the validator:

ValueResultReason
419.49576.27-9valid-
41949576270invalidthe check digit should be 9
419495762invalidneeds 11 digits

Common mistakes

  • The PIS written on the old card may have fewer than 11 digits when the leading zeros were dropped: pad it with zeros on the left before validating.
  • PIS and the first 11 digits of a SUS card (CNS) starting with 1 or 2 are related, but they are not interchangeable in a form: each system validates its own number.

Frequently asked questions

Is the PIS the same as the NIT?

Yes: the number is the same, only the name changes with who issued it (PIS, PASEP or NIT of the INSS). The check digit rule is shared.

Can I use a generated PIS in a real eSocial submission?

No. A generated number has a valid format but is not registered to any worker, so the government systems will reject it. Use it only in test environments.

Can I use a PIS / PASEP / NIT number generated here in a real system?

No. A number such as 419.49576.27-9 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.

Report a problem