Skip to content
CheckcraftDownload
Practical workflow

SNILS generator: Russian test numbers with valid check digits

A Russian form or API asks for a SNILS, and a real one must not be used in tests. These numbers are random but pass the same check-digit test as real ones.

Checkcraft ·

Get help with your first test →

How a SNILS is built

A SNILS has 11 digits: nine digits of the number and two check digits. It is usually written as 112-233-445 95. The check number is computed from the first nine digits, so a form or API can catch a single-digit typo at once, before any database lookup.

How the check number is computed

Each of the nine digits is multiplied by a weight: the first by 9, the second by 8 and so on down to 1 for the last. If the sum is below 100, it is the check number. If the sum is 100 or 101, the check number is 00. If it is above 101, take the remainder of division by 101, and a remainder of 100 is also written as 00. Numbers up to 001-001-998 have no defined check number.

API call diagram: method and URL, headers, body, status and response body, logs and database
112-233-445 → 1×9 + 1×8 + 2×7 + 2×6 + 3×5 + 3×4 + 4×3 + 4×2 + 5×1 = 95
SNILS: 112-233-445 95

How to use them in tests

Pick a count and a format, then copy the numbers or download CSV and JSON. CSV suits data-driven tests where one request runs for every row of the file. Check the opposite case too: a number with a broken last digit should be rejected with a clear 400 or 422, not crash with a 500. In Checkcraft the numbers are fed into the request from a CSV and the response is checked with no-code rules.

These numbers are not real

A number is built from random digits and only passes the checksum test. It may match someone’s real number by chance, so use it in test environments only, never in documents, contracts or filings. Generation and checking run in your browser; the page sends nothing to a server.

Layers of an API call check: status, headers, body, calculations, logs, database

More on test data

Where to use generated data: Practice API with bugs: find all 10.

Next step

Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

Download FreeDownload and first run

No sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.

References

Wikipedia (Russian): SNILS

Start with the linked example and compare its result with your own test requirement.

Ask a person

Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

No account required. We will reply by email. This is a support request, not a newsletter subscription.