Home OGRN / OGRNIP Russia
Russia OGRN / OGRNIP validator
How the OGRN / OGRNIP format works
- Format
- 13 digits (OGRN, legal entities) or 15 digits (OGRNIP, sole traders); the last digit is a check digit
- Example
- 1027700132195
Things to watch for
- Digits 2–3 are the last two digits of the registration year and digits 4–5 the region code
- The OGRNIP check digit is the last digit of the mod-13 remainder — some libraries compare the whole remainder and wrongly reject valid numbers whose remainder is 10, 11 or 12
- Checksum only — a pass doesn't confirm the entity appears in the state register or is still active
^([1-9][0-9]{12}|[34][0-9]{14})$An OGRN (ОГРН, основной государственный регистрационный номер, Primary State Registration Number) is the 13-digit number a Russian legal entity receives when it’s entered in the Unified State Register of Legal Entities (ЕГРЮЛ). Its 15-digit counterpart for sole traders, the OGRNIP (ОГРНИП), is assigned on entry into the register of individual entrepreneurs (ЕГРИП). Both numbers identify the register entry. The separate INN identifies the taxpayer.
Inside the number
The first digit marks the record type. Next come the last two digits of the registration year and a 2-digit region code. In an OGRN, the following seven digits are a 2-digit tax-inspectorate code and a 5-digit record number. An OGRNIP has a 9-digit record number in that position instead. In both, the final digit is the check digit.
How the check digit works, and a common bug
Read the leading digits as one large number:
- OGRN: divide the first 12 digits by 11.
- OGRNIP: divide the first 14 digits by 13.
The check digit is the last digit of the remainder. A remainder of 10 gives 0, and for an OGRNIP a remainder of 11 gives 1 and 12 gives 2. Some widely used libraries compare the whole mod-13 remainder with the final digit instead. They wrongly reject every valid OGRNIP whose remainder is 10, 11 or 12. This tool uses the last-digit rule.
For the example 1027700132195, the first 12 digits leave a remainder of 5 when divided by 11, which matches the final 5.
What a pass doesn’t tell you
A pass confirms the check digit matches. It doesn’t show that the entry exists in ЕГРЮЛ or ЕГРИП, that the entity is still active, or that it hasn’t been liquidated. The state registers are the authority for that.
Scope: OGRN and OGRNIP format and checksum validation only. It doesn’t cover register status.
Content last reviewed 2026-10-11.
OGRN / OGRNIP FAQ
How can I tell an OGRN from an OGRNIP?
By length. A 13-digit OGRN belongs to a legal entity such as a company. A 15-digit OGRNIP belongs to an individual entrepreneur (sole trader). They use different divisors for the check digit, 11 for the OGRN and 13 for the OGRNIP, and this tool picks the right one from the length.
Why do some validators reject my valid OGRNIP?
The OGRNIP check digit is the last digit of the mod-13 remainder, so remainders of 10, 11 and 12 give check digits of 0, 1 and 2. Validators that compare the whole remainder with the final digit reject those valid numbers. This tool uses the last-digit rule.
Is an OGRN the same as an INN?
No. The OGRN records a legal entity's entry in the Unified State Register of Legal Entities (ЕГРЮЛ). The INN is its taxpayer number with the Federal Tax Service. A Russian company has both, and each has its own check-digit formula.