The anatomy of a card number
A primary account number (PAN) is a structured number: a leading Major Industry Identifier and IIN, a variable-length account number, and one final Luhn check digit. Under ISO/IEC 7812 a PAN is at most 19 digits, and the IIN is only its opening 6–8 digits.
A primary account number is structured, not random. It opens with a Major Industry Identifier (MII), continues with the IIN, then an account number, and ends with a single Luhn check digit, as set out in ISO/IEC 7812. This page explains the structure descriptively; Bindex never provides a full-number validator or generator.
- Major Industry Identifier — the first digit signals the industry (for example, 4 and 5 denote banking and financial cards).
- Issuer Identification Number — the leading 6–8 digits that identify the issuer and scheme.
- Account number — the variable-length middle digits assigned by the issuer to the account.
- Check digit — the final digit, computed with the Luhn mod-10 algorithm to catch transcription errors.
Key takeaways
- A PAN has four parts: MII, IIN, account number and a Luhn check digit (ISO/IEC 7812).
- The IIN is only the opening 6–8 digits; a BIN lookup reads that segment and nothing else.
- The check digit detects typing errors; it is not encryption, authentication or a fraud signal.
Coverage figures for this topic are computed from the active published dataset version, not written as fixed numbers; current totals and the last sync time are shown on the data sources page.