Russian INN Generator and Checksum Validator – Free

This INN generator produces Russian taxpayer numbers in the 10-digit company format or the 12-digit individual format, each with correct control digits. It also validates the checksum of an existing INN.

How to use the INN generator tool

  1. Set Operation to Validate checksum or to Generate test numbers.
  2. To validate, type a 10-digit or 12-digit number into Russian INN. The length decides which formula is used.
  3. To generate, choose 10 digits or 12 digits under Generated length and enter a quantity up to 50 in Test numbers to generate.
  4. Select Process number, then read the result. Generated INNs appear one per line.
  5. Copy the output with the Copy button. Example validates the sample number 7707083893.

Two INN formats: 10 digits and 12 digits

INN (Идентификационный номер налогоплательщика, taxpayer identification number) is assigned by Russia's Federal Tax Service. Organizations receive ten digits: a four-digit tax office code, a five-digit record number and one control digit. Individuals, including sole proprietors, receive twelve digits: the four-digit tax office code, a six-digit record number and two control digits.

The first two digits of the tax office code are the region code, which is why many Moscow company numbers start with 77.

How INN control digits are calculated

Each control digit is a weighted sum of the digits before it, reduced modulo 11 and then modulo 10. The second reduction turns a remainder of 10 into 0. A ten-digit INN uses the weights 2, 4, 10, 3, 5, 9, 4, 6, 8 over its first nine digits.

A twelve-digit INN takes two steps. The eleventh digit uses the weights 7, 2, 4, 10, 3, 5, 9, 4, 6, 8 over the first ten digits. The twelfth uses 3, 7, 2, 4, 10, 3, 5, 9, 4, 6, 8 over the first eleven, so it also protects the eleventh digit.

10 digits: 770708389 + ?
7*2 + 7*4 + 0*10 + 7*3 + 0*5 + 8*9 + 3*4 + 8*6 + 9*8 = 267
267 mod 11 = 3, 3 mod 10 = 3      ->  7707083893

12 digits: 5001007322 + ??
5*7 + 0*2 + 0*4 + 1*10 + 0*3 + 0*5 + 7*9 + 3*4 + 2*6 + 2*8 = 148
148 mod 11 = 5                    ->  digit 11 is 5
5*3 + 0*7 + 0*2 + 1*4 + 0*10 + 0*3 + 7*5 + 3*9 + 2*4 + 2*6 + 5*8 = 141
141 mod 11 = 9                    ->  digit 12 is 9
INN: 500100732259

What the INN generator and validator check

Validation strips spaces, dots, slashes and hyphens, then accepts only 10 or 12 digits. Other lengths, such as 11, and any letters produce Enter 10 or 12 digits.

  • Matching control digits return Checksum valid. Assignment status is unknown.
  • A mismatch, or a number made of one repeated digit, returns Invalid Russian INN number.
  • Generated length affects generation only. Validation picks the formula from the length of the number you typed.
  • Generated numbers consist of random digits, so the leading four digits are not guaranteed to be a real tax office code.
  • Up to 50 numbers are produced per run, as plain digits.

Where INN test numbers are useful

Russian invoices, payment orders, contracts and payroll exports all carry an INN, and accounting and banking software usually refuses a number with wrong control digits. Generated values let you exercise those checks in forms, import routines and API validators without copying a real taxpayer's number into fixtures. Since the digits are random, a result can still coincide with an assigned INN, so keep it in test data.

Frequently asked questions

What is the difference between a 10-digit and a 12-digit INN?

Ten digits identify a legal entity and end in one control digit. Twelve digits identify an individual or sole proprietor and end in two control digits. The formulas use different weight tables, and this tool selects the right one from the length.

Does a correct INN checksum prove the taxpayer exists?

No. Control digits detect mistyped or transposed digits and say nothing about registration. To confirm a company or person, use the Federal Tax Service's own lookup services. This page makes no network lookup and reports Assignment status is unknown.

Can the generator produce an INN for a specific region?

No. All digits before the control digits are random, including the region and tax office code. If a test needs a fixed prefix such as 77, write the leading digits yourself and compute the control digit with the weights listed in this guide.

Why did my 12-digit INN fail when only the last digit was wrong?

Both control digits must match. The twelfth digit is calculated over the first eleven, so an error in the last position, or in the eleventh, makes the whole number invalid.

Are generated INNs stored or logged?

No. Random digits come from the Web Crypto API in your browser and the control digits are computed locally. The page does not transmit the numbers you generate or validate.

Related tools