Brazilian INSS NB Number Generator
Generate valid NB (Número do Benefício) numbers for INSS software testing. Includes validator, formatting options, and bulk generation.
Quick Presets:
About
This tool generates and validates NB (Número do Benefício) numbers, which are unique 10-digit identifiers assigned by the Brazilian Social Security Institute (INSS) to beneficiaries. This utility is essential for developers and QA engineers who need to test software compliance with Brazilian government standards without using real, sensitive data.
The generator uses the standard Modulo 11 algorithm to ensure mathematical validity. While these numbers satisfy the checksum logic required by form validators and banking systems, they are randomly generated and do not correspond to actual active benefits. Using this tool eliminates the risk of using real private data during the development lifecycle.
Formulas
The verification digit D for an INSS NB is calculated using the Modulo 11 algorithm. The process iterates through the first 9 digits.
Where di is the digit at position i (from right to left) and wi is the weight, cycling from 2 to 9.
Reference Data
| Document | Format Mask | Length (Digits) | Check Digits |
|---|---|---|---|
| NB (INSS) | 999.999.999-9 | 10 | 1 |
| CPF | 999.999.999-99 | 11 | 2 |
| CNPJ | 99.999.999/0001-99 | 14 | 2 |
| PIS/PASEP | 999.99999.99-9 | 11 | 1 |
| CNS (Health) | 999 9999 9999 9999 | 15 | Algorithmic |
| Título Eleitor | 9999.9999.9999 | 12 | 2 |