OGRN decoder online — validate OGRN and OGRNIP by check digit. OGRN structure: year, region, tax office, registry number.
Structure Decoding
OGRN (13 digits) and OGRNIP (15 digits) validation by check digit. Automatically determines the number type.
OGRN structure: 1 digit — sign (1/5 — legal entity, 3/4 — IE), 2 digits — registration year, 2 digits — RF subject code, then serial number and check digit.
OGRNIP has a similar structure but with 9 serial number digits instead of 7.
OGRN Validation Online — Checksum Verification and Structure Decoding
This tool verifies OGRN and OGRNIP correctness using the check digit algorithm and decodes each element: registration sign, year, region code, tax office number, and registry serial number.
What Is OGRN and OGRNIP
OGRN (Primary State Registration Number) is a unique 13-digit number assigned to legal entities upon entry into the EGRUL registry. OGRNIP is the analogous 15-digit number for individual entrepreneurs (EGRIP registry).
OGRN/OGRNIP Number Structure
| Position | OGRN (13 digits) | OGRNIP (15 digits) |
|---|---|---|
| 1 | Sign: 1 — primary, 2 — other, 5 — legacy | Sign: 3 — primary, 4 — other |
| 2–3 | Registration year (last 2 digits) | Registration year |
| 4–5 | Region code | Region code |
| 6–7 | Tax office code | Tax office code |
| 8–12 / 8–14 | Serial number | Serial number |
| 13 / 15 | Check digit | Check digit |
Check Digit Algorithm
For OGRN (13 digits): the first 12 digits are divided by 11. The remainder's last digit must match the 13th digit. For OGRNIP (15 digits): the first 14 digits are divided by 13.
How to Find an Organization's OGRN
- EGRUL extract — free on the Federal Tax Service website by INN or company name
- Company details — in contracts, on the company website in the "Details" section
- Registration certificate — the document issued when the entity was created
Frequently Asked Questions
What is the difference between OGRN and INN?
OGRN is the registration number (13/15 digits), assigned at creation. INN is the tax number (10/12 digits), assigned upon tax registration. Check INN with the INN validator.
Can OGRN change?
No, OGRN is assigned once and persists throughout the organization's existence.
What does the first digit mean?
Registration sign: 1 — primary entry for a legal entity, 2 — other EGRUL entry. For OGRNIP: 3 — primary, 4 — other.
What is an IP's OGRN?
Individual entrepreneurs have OGRNIP (15 digits), verified by dividing by 13 instead of 11.
To generate test INNs use the INN generator.
Useful articles
SNILS: Format, Check Digit, and Test Data
A breakdown of the SNILS format, the check digit algorithm, its role in the social security system, and why developers need test data.
INN Validation: Check Digit Verification Algorithm
A step-by-step INN check digit validation algorithm with calculation examples, common error analysis, and tips for integrating validation into your code.