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:
| Position | Character | Value | Weight | Product |
|---|---|---|---|---|
| 1 | 4 | 4 | 3 | 12 |
| 2 | 1 | 1 | 2 | 2 |
| 3 | 9 | 9 | 9 | 81 |
| 4 | 4 | 4 | 8 | 32 |
| 5 | 9 | 9 | 7 | 63 |
| 6 | 5 | 5 | 6 | 30 |
| 7 | 7 | 7 | 5 | 35 |
| 8 | 6 | 6 | 4 | 24 |
| 9 | 2 | 2 | 3 | 6 |
| 10 | 7 | 7 | 2 | 14 |
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 mask | Validator |
|---|---|---|
419.49576.27-9 | 41949576279 | valid |
695.25600.68-7 | 69525600687 | valid |
222.35258.87-4 | 22235258874 | valid |
068.93934.00-2 | 06893934002 | valid |
057.49680.12-2 | 05749680122 | valid |
How the validator answers
The same first example, one with a changed ending and one truncated, checked by the validator:
| Value | Result | Reason |
|---|---|---|
419.49576.27-9 | valid | - |
41949576270 | invalid | the check digit should be 9 |
419495762 | invalid | needs 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.