LEI Generator (Legal Entity Identifier - ISO 17442)
Generate and format valid 20-character alphanumeric Legal Entity Identifier (LEI) codes according to ISO 17442 and GLEIF standards.
Waiting for generation...
About the Legal Entity Identifier (LEI)
The Legal Entity Identifier (LEI) is a 20-character alphanumeric reference code standardized by ISO 17442 and maintained by the Global Legal Entity Identifier Foundation (GLEIF).
Established by the Financial Stability Board (FSB) and G20, the LEI connects global financial markets by uniquely identifying legal entities participating in financial transactions and regulatory filings (MiFID II, EMIR, Dodd-Frank).
Anatomy & Structure of the LEI (ISO 17442)
The LEI code consists of exactly 20 alphanumeric characters structured into 4 components:
| Position | Field | Length | Meaning & Specification | Example |
|---|---|---|---|---|
| 1 to 4 | LOU Prefix | 4 characters | Identifies the GLEIF-accredited Local Operating Unit that issued the identifier | 5493 |
| 5 and 6 | Reserved | 2 digits | Reserved characters per ISO 17442 standard (default '00') | 00 |
| 7 to 18 | Entity Identifier | 12 characters | Unique alphanumeric code assigned to the legal entity | 84UKLVMY22DS |
| 19 and 20 | Check Digits | 2 digits | Two numeric checksum digits computed via ISO 7064 Modulo 97-10 | 16 |
Integrity Algorithm (ISO 7064 MOD 97-10)
Official calculation performed on the 20-character alphanumeric sequence:
NumStr(LEI) mod 97 ≡ 1 | DV = 98 - (NumStr(Base + '00') mod 97)
- 1. Convert letters to numbers (A=10, B=11, ..., Z=35) while preserving digits.
- 2. To generate, append '00' to the 18-character base numeric sequence.
- 3. Compute the integer remainder modulo 97 of the resulting number.
- 4. The two check digits equal (98 - remainder), formatted as two digits.
- 5. To validate, the complete 20-character converted number must satisfy remainder % 97 == 1.