# Russian INN, OGRN and KPP generator: test data for companies and sole traders

Source: https://checkcraft.ru/en/guides/inn-generator.html · updated 2026-12-01

Company INN (10 digits) and individual INN (12), OGRN, OGRNIP and KPP for tests: up to 1,000 numbers with valid check digits, CSV and JSON export…

Practical workflow

Testing company sign-up, a counterparty form or an API needs a plausible Russian taxpayer number, and real company details in test data are an unnecessary risk. These numbers are random but pass the check-digit test.

Checkcraft · 27 November 2026

Get help with your first test →

## INN: 10 and 12 digits

A company INN has 10 digits; an individual or sole trader INN has 12. The first four digits are the tax office code, and the first two of them match the region code. The last digit of a company INN and the last two digits of an individual INN are check digits.

## How the INN check digit is computed

Multiply each digit by its weight and add them up, take the remainder of division by 11, then the remainder of that by 10. For 10 digits the weights are 2, 4, 10, 3, 5, 9, 4, 6, 8. For a 12-digit INN the first check digit uses the first ten digits with weights 7, 2, 4, 10, 3, 5, 9, 4, 6, 8, and the second uses the first eleven with weights 3, 7, 2, 4, 10, 3, 5, 9, 4, 6, 8.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

```
const W = [2, 4, 10, 3, 5, 9, 4, 6, 8];
const check = inn => W.reduce((s, w, i) => s + w * inn[i], 0) % 11 % 10;

check('7707083893');  // 3, the last digit of Sberbank's INN
```

## OGRN, OGRNIP and KPP

An OGRN has 13 digits: the record type (1 or 5), the last two digits of the year, the region code, the record number and a check digit. The check digit is the remainder of the first 12 digits divided by 11, with a remainder of 10 written as 0. An OGRNIP has 15 digits and starts with 3; its check digit is the last digit of the remainder of the first 14 digits divided by 13. A KPP has 9 digits and no check digit: the tax office code, the registration reason (01 means the company’s own address) and a sequence number.

## What to check in tests

A number with valid check digits should pass, and one with a broken last digit should be rejected with a clear 400 or 422. A 10-digit INN should not be accepted in an individual INN field, and vice versa. In Checkcraft these checks are no-code rules, and the numbers are fed into requests from a CSV.

## 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.

## More on test data

Where to use generated data: [Practice API with bugs: find all 10](https://checkcraft.ru/en/guides/api-testing-practice.html).

- [Russian name generator: random full names with patronymic, birth date, phone and email](https://checkcraft.ru/en/guides/fio-generator.html)
- [Free public APIs to practise API testing](https://checkcraft.ru/en/guides/free-test-apis.html)
- [Free APIs for testing: JSONPlaceholder vs DummyJSON vs Reqres, and one with real bugs](https://checkcraft.ru/en/guides/free-apis-for-testing.html)
- [Check an API response online, no install or sign-up](https://checkcraft.ru/en/guides/try-api-check-online.html)
- [SNILS generator: Russian test numbers with valid check digits](https://checkcraft.ru/en/guides/snils-generator.html)

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 Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## References

[Wikipedia (Russian): INN](https://ru.wikipedia.org/wiki/%D0%98%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3%D0%BE%D0%BF%D0%BB%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%89%D0%B8%D0%BA%D0%B0) · [Wikipedia (Russian): OGRN](https://ru.wikipedia.org/wiki/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%BD%D0%BE%D0%B9_%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80)

## Continue with a related task

[SNILS generator: Russian test numbers with valid check digits](https://checkcraft.ru/en/guides/snils-generator.html) · [Data-driven API testing with CSV and Excel exports](https://checkcraft.ru/en/guides/api-testing-from-csv.html) · [400 Bad Request in an API: what is wrong with the request](https://checkcraft.ru/en/guides/api-400-error.html) · [Format JSON online: pretty print, minify and sort keys](https://checkcraft.ru/en/guides/json-formatter-online.html)

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.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

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

Page card: /ai/pages/en/guides/inn-generator.md
