Labor Compliance

PIS/NIS Validator

Quickly check if the PIS/NIS informed by employees or beneficiaries is correct. Generate valid numbers for testing without exposing personal data.

Main Use Cases

  • Onboarding of employees in HR systems.
  • Validation of spreadsheets for submission to eSocial.
  • Testing of labor systems and payroll.

Recommended Tools

Use em conjunto com o CPF Validator e a FGTS Calculator (quando disponível) para processos trabalhistas completos.

What is PIS/NIS?

The Social Integration Program (PIS) and the Social Identification Number (NIS) are registrations administered by Caixa Econômica Federal. They identify workers and beneficiaries of social programs, enabling benefits such as salary bonus, unemployment insurance, and FGTS.

As the number is used in financial and tax operations, ensuring integrity avoids payment delays, eSocial issues, and returns in payroll processing.

How to validate PIS/NIS

Numerical validation follows the modulus 11 algorithm with fixed weights. See the complete process:

StepDescriptionExample
1. PreparationRemove non-numeric characters and use only the first 10 digits.123.4567.890-? → 1234567890
2. MultiplicationMultiply each digit by the weights 3,2,9,8,7,6,5,4,3,2 and sum.Hypothetical result: sum = 243
3. Check digitCalculate 11 - (sum % 11). If the result is 10 or 11, the digit is 0.243 % 11 = 1 → 11 - 1 = 10 → digit = 0
4. ComparisonCompare with the informed digit. If they match, the PIS/NIS is valid.If informed digit = 0, valid number.

The validator automates this calculation and blocks repeated sequences (00000000000) to prevent improper registrations.

Best practices for HR processes

  • Validate PIS/NIS and CPF before submitting batches to eSocial.
  • Maintain validation logs for labor audits.
  • Use fictitious data only in isolated QA environments.
  • Update registrations whenever the worker presents new documentation.

Frequently Asked Questions about PIS/NIS

See the answers to common questions about PIS/NIS validation and generation.

How does the PIS/NIS check digit calculation work?+

The algorithm assigns fixed weights (3,2,9,8,7,6,5,4,3,2) to the first ten digits, sums the products, and applies modulus 11. If the result is 10 or 11, the check digit becomes 0; otherwise, the value is subtracted from 11. The number is only considered valid when the calculated digit matches the informed digit.

What is the difference between PIS and NIS?+

The numbers have the same format and algorithm. PIS is issued for private sector workers, while NIS is assigned in social programs. Both can be validated by the same mathematical rule, facilitating labor and benefit registrations.

Can I use a generated PIS/NIS in production?+

No. The generated numbers are intended exclusively for test, homologation, and training environments. In production, use only official numbers provided by Caixa Econômica or the employing company.

How to integrate validation into the HR system?+

Implement the check in the admission form and repeat the validation when importing employee spreadsheets. Combine with the CPF Validator to ensure the consistency of personal data before sending to eSocial.

Does the validator consult the worker's registration status?+

No. This tool only verifies numerical integrity. To find out if the registration is active, consult the official Caixa systems or use eSocial. Use validation as the first barrier to avoid typing errors.