FinoltoAccounting that makes every day easier

How many characters does an LEI code have?

Short answer

Twenty: capital letters A–Z and digits 0–9. The last two characters are check digits, which make it possible to catch typing errors before the code is even looked up in the register.

Piemēram 254900Z2X0DFQRGCM915

Data is read from the GLEIF open LEI registry (api.gleif.org) and is not stored.

How the 20 characters are divided

The ISO 17442 standard defines the structure of an LEI code as follows:

PositionsWhat they mean
1–4Issuer (LOU) prefix assigned by GLEIF
5–6Reserved, usually “00”
7–18Entity-specific part
19–20Check digits

Why there are check digits

The check digits are calculated from the other 18 characters using the mod 97-10 algorithm (ISO 7064), the same one used for IBANs. If a character in the code is wrong or two characters have been swapped, the check digits will almost always fail to match.

Our LEI code lookup checks the check digits first and, if they do not match, tells you so without even querying the GLEIF register.

Common typing mistakes

  • The digit “0” and the letter “O”, or the digit “1” and the letter “I”, swapped.
  • A character lost or added because the code was copied with spaces or hyphens.
  • The code copied incompletely, for example without the check digits.

Can the length change

No. The length is fixed by the standard, and no issuer can change it. If a code is shorter or longer than 20 characters, it is not an LEI code.

More questions