How to use the SNILS generator tool
- Under Operation, keep Validate checksum to test a number or switch to Generate test numbers.
- For a check, enter all 11 digits in Russian SNILS. The printed layout 112-233-445 95 is accepted.
- For new numbers, fill Test numbers to generate with a quantity from 1 to 50.
- Select Process number to get the verdict or the generated list in the Result box.
- Select Copy to copy the text. Clear resets the fields.
What SNILS is and how it is written
SNILS (Страховой номер индивидуального лицевого счёта) is the insurance number of an individual ledger account in Russia's mandatory pension and social insurance system. It is issued to a person once, and employers, clinics and government portals use it to identify that person.
The number has eleven digits. Nine form the account number and two form the control number. On documents it appears as three hyphenated groups followed by a space and the control number: 112-233-445 95.
The SNILS control number algorithm
Number the nine account digits from the right, so the first digit has position 9 and the last has position 1. Multiply each digit by its position and add the results. A sum below 100 is the control number itself. Sums of 100 and 101 give 00. For larger sums take the remainder after dividing by 101, and treat a remainder of 100 as 00.
The code implements this as the sum modulo 101 with 100 mapped to 0, padded to two digits, which gives the same answer for every possible sum.
112-233-445
1*9 + 1*8 + 2*7 + 2*6 + 3*5 + 3*4 + 4*3 + 4*2 + 5*1 = 95
95 < 100 -> control number 95
087-654-303
0*9 + 8*8 + 7*7 + 6*6 + 5*5 + 4*4 + 3*3 + 0*2 + 3*1 = 202
202 mod 101 = 0 -> control number 00What the SNILS generator outputs
Generation picks nine random digits with crypto.getRandomValues, skips a draw where every digit is the same, calculates the control number and prints the eleven digits without hyphens or spaces. You can request up to 50 numbers per run, one per line. Insert the separators yourself if the target system stores the formatted form.
The tool applies the control number formula and nothing else. Some validators add format rules, such as refusing an account number that contains the same digit three times in a row, or skipping the check for numbers up to 001-001-998. Those rules are not implemented here, so a generated value can fail a stricter checker.
Validation results and error cases
Spaces, hyphens, dots and slashes are removed before the check, so both the printed and the compact form work.
- Eleven digits with the right control number: Checksum valid. Assignment status is unknown.
- Eleven digits with a wrong control number: Invalid Russian SNILS number.
- Eleven identical digits, such as 000-000-000 00, are always invalid.
- Fewer or more than eleven digits, or letters: Enter 11 digits.
Frequently asked questions
Is a generated SNILS a real insurance number?
It is a random account number with a correct control number. It was not issued by the Social Fund of Russia, although a random value can happen to equal an issued one. Use it for software testing and sample documents only.
How do I check a SNILS control number by hand?
Multiply the nine account digits by 9, 8, 7, 6, 5, 4, 3, 2 and 1 from left to right and add the products. Below 100 the sum is the control number. For 100 or 101 it is 00. Above that, use the remainder modulo 101.
Why does a valid SNILS end in 00?
The control number is 00 whenever the weighted sum is 100 or 101, or when its remainder modulo 101 is 0 or 100. The number 087-654-303 00 is one such case: its sum is 202, exactly twice 101.
Does this tool confirm who a SNILS belongs to?
No. It performs arithmetic on the digits you enter and never contacts a government service. A passing result means the number is well formed, not that it is assigned to a particular person.
Can I enter SNILS without hyphens?
Yes. 11223344595 and 112-233-445 95 are treated the same, because separators are removed first. The generator always returns the compact form with no separators.