Home > Credit Card Basics > Credit Card Codes Explained

Credit Card Codes Explained

By: Edward Mellett - Updated: 25 Mar 2012 | comments*Discuss
 
Credit Cards Credit Card Algorithm 16

You may not pay much attention to the 16 digit number on the front of your credit card, but it is by far the most important part of your plastic. Furthermore, the sequence of numbers is absolutely unique, separating you from the millions, or possibly billions of other credit card users in the world. The numbers found on credit cards have a certain amount of internal structure, and share a common numbering scheme. Credit card numbers are a special case of ISO 7812 numbers, which are numbers that contain a single-digit major industry identifier (MII), a six-digit issuer identifier number (IIN), an account number, and a single digit checksum using the Luhn algorithm.

The Luhn Algorithm

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and Canadian Social Insurance Numbers. It was created by IBM scientist Hans Peter Luhn and described in U.S. in 1954.

The algorithm is in the public domain and is in wide use today. It is not intended to be a cryptographically secure hash function. It was designed to protect against accidental errors, not malicious attacks. Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from collections of random digits.

Your Card Prefix

The credit card number's prefix is the sequence of digits at the beginning of the number that determine the credit card network to which the number belongs. The first six digits of the credit card number are known as the Bank Identification Number (BIN). These identify the institution that issued the card to the card holder. The rest of the number is allocated by the issuer.

Online merchants may use BIN lookups to help validate transactions. For example, if the credit card's BIN indicates a bank in one country, while the customer's billing address is in another, the transaction may call for extra scrutiny.

What do credit card numbers actually mean?

The first digit in your credit card number signifies the system being used:

  • 3 - travel/entertainment cards (such as American Express and Diners Club)
  • 4 - Visa
  • 5 - MasterCard
  • 6 - Discover Card

The structure of the card number varies by system. American Express card numbers for example, start with 37; Carte Blanche and Diners Club with 38.

American Express - Digits three and four are type and currency, digits five through 11 are the account number, digits 12 through 14 are the card number within the account and digit 15 is a check digit.

Visa - Digits two through six are the bank number, digits seven through 12 or seven through 15 are the account number and digit 13 or 16 is a check digit.

MasterCard - Digits two and three, two through four, two through five or two through six are the bank number (depending on whether digit two is a 1, 2, 3 or other). The digits after the bank number up through digit 15 are the account number, and digit 16 is a check digit.

How long are Credit Card Numbers?

The VISA card website suggests that credit card numbers can only be 16 digits long, but this is factually inacurate. In the past, cards with 13 digits have been issued, although they are not issued today.

You might also like...
Share Your Story, Join the Discussion or Seek Advice..
Why not be the first to leave a comment for discussion, ask for advice or share your story...

If you'd like to ask a question one of our experts (workload permitting) or a helpful reader hopefully can help you... We also love comments and interesting stories

Title:
(never shown)
Firstname:
(never shown)
Surname:
(never shown)
Email:
(never shown)
Nickname:
(shown)
Comment:
Validate:
Enter word:
Topics