Where Does Your Credit Card Number Come From? (2024)

  • Credit Cards
  • Credit Card Basics

More than just random digits, these numbers follow a specific formula

ByJustin Pritchard

Updated on September 13, 2022

Reviewed bySamantha Silberstein

In This Article

View All

In This Article

  • How Long Is a Credit Card Number?
  • Parts of a Credit Card Number
  • Security Codes
  • Credit Card Technology Improvements

Where Does Your Credit Card Number Come From? (1)

The numbers on a credit card provide a unique way to identify your credit card account and authorize purchases. Credit card numbers can be between 10 and 19 digits long, and each part of the number has a different purpose. Take a look at credit card numbers and what they mean.

Key Takeaways

  • Credit card numbers must be between 10 and 19 digits long, and are usually 16 digits long.
  • Each credit card number must follow a specific formula that identifies the issuing bank.
  • Credit card numbers also contain a check digit, which ensures that the number is valid.
  • Changes in credit card technology, such as chips, tokens, and mobile payments, help protect your credit card number from fraud.

How Long Is a Credit Card Number?

Credit card numbers may be ten to 19 digits long.

Visa, Mastercard, and Discover cards most often are 16 digits long, and American Express cards typically have 15 digits.

Parts of a Credit Card Number

Credit card account numbers, also known as primary account numbers (PANs), consist of three main parts:

  • Information about the card issuer
  • Your account information
  • A check digit

Credit card numbers fall under identification card standards set by the International Organization for Standardization and International Electrotechnical Commission (ISO/IEC). As a result, a straightforward formula dictates the format.

Issuer Information

The first part of the number on identification cards that follow these standards—including credit cards and debit cards—consists of information about the card’s issuer.

Industry number: The first digit of your card is an industry identifier, which indicates the type of business the issuer of your card is involved in or, in some cases, outright identifies the type of credit card, such as Visa or Mastercard.

Credit Card Industry Numbers
1Airline
2Some Mastercard accounts since 2017
3American Express and Diners Club
4Visa
5Mastercard
6Discover
7Petroleum
8Telecommunications
9Government

Issuer identification number: The next six to eight digits are an issuer identification number (IIN), which is also called a "bank identification number" (BIN). That number specifies which financial institution issued your card.

Under the direction of the ISO/IEC, all issuers of credit cards should use an eight-digit IIN or BIN. This is designed to increase the number of potential IINs/BINs and prevent a shortage of them.

Your Account Information

The remaining digits, except for the last digit, are unique to your specific credit card account. They are selected by the issuer.

Check Digit

The last digit of a 16-digit PAN is the check digit—an essential part of a checksum, which helps to ensure that a credit card number is valid. The check digit is not selected by the credit card issuer but is determined mathematically based on something called the Luhn algorithm. This series of steps provides a quick and easy way to ensure the numbers entered from your card for payment follow an acceptable pattern. Ultimately, the algorithm looks for an output that is divisible by 10, indicating that the card number is potentially valid.

Read the numbers from right to left, skipping over the check digit, which will be used later in the process. Starting with the second digit from the right, double every other number. If a resulting number is two digits, such as 18, you will add the two digits together—in this case, to get 9. Add up all of these numbers. Then add up the digits you skipped when you were doing the doubling. Finally, add those totals together, along with the check digit. The result will be divisible by 10.

The checksum provides basic quality control, but it does not provide robust protection against fraud.

Note

Because the algorithm is publicly available, anybody can generate card numbers that satisfy the requirement. However, the check digit is helpful for catching data entry errors and unsophisticated thieves.

Security Codes

Your credit card account number contains essential information for processing payments, but in many cases, you also need a security code, also called a "card verification value" (CVV). When ordering online or by phone, you typically need to provide the security code to complete your purchase. That code helps verify that you have possession of the card and that someone isn't using a stolen credit card number. Your card number may be compromised in data breaches or by card skimmers, but getting the code is an additional hurdle for thieves.

  • Visa, Mastercard, and Discover cards display a three-digit CVV on the back of the card.
  • American Express cards display a four-digit CCV on the front of the card.

Credit Card Technology Improvements

Traditional card readers receive your credit card account information directly from a magnetic strip on the back of the card. It’s easy to steal a card number from a magnetic strip, and you potentially expose your account number every time you swipe your card. Some merchants in the U.S. still use magnetic card readers, but those readers are increasingly being replaced with more secure technology.

NFC mobile payments: When you pay with your mobile phone, your phone sends encrypted payment information to a payment terminal with near-field communication (NFC). You'll need to have entered your card number in your device’s payment app before you can begin making a mobile payment, but your device will not transmit your actual card number.

Tokenization: Instead of providing card information to a merchant’s payment terminal “in the open,” the information can be replaced with a random series of characters known as a "token." Hackers are unable to make sense of the stolen data because it wasn't created by an algorithm that could be decrypted.

EMV cards: Credit cards with a smart chip, which are known as "EMV cards," also protect your credit card number. Instead of swiping your card and providing an unencrypted account number, you insert your card with a chip into a chip reader.

The chip contains a processor that can encrypt your information as well as generate a unique code that is used for a single transaction. That interactive process and the chip that's crucial to it are hard for would-be thieves to duplicate.

Note

EMV stands for Europay, Mastercard, and Visa, the three companies that pioneered the chip technology.

Was this page helpful?

Tell us why!

Sources

The Balance uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.

Part Of

Credit Cards 101

  • What Is a Credit Card?1 of 13
  • The Pros and Cons of Credit Cards2 of 13
  • Using a Credit Card vs Cash3 of 13
  • What Is a Credit Limit?4 of 13
  • How Is Credit Limit Determined?5 of 13
  • 7 Basic Credit Card Features6 of 13
  • What the Numbers on Your Credit Card Mean7 of 13
  • 6 Tips for Using Cash-Back and Travel Rewards Credit Cards8 of 13
  • 7 Reasons Not to Get a Credit Card9 of 13
  • Using a Credit Card to Pay Monthly Bills10 of 13
  • How to Avoid Credit Card Finance Charges11 of 13
  • Adding Authorized Users to Your Credit Card12 of 13
  • How Many Credit Cards Should You Have?13 of 13
Related Articles
Get to Know Your Debit or Credit CardWhat Is an ABA Number?What Is an Issuer Identification Number (IIN)?What Is a Primary Account Number?What Is Credit Card Encryption? What Is a Card Validation Code? What You Should Know Before Making Use of a EMV Chip Credit Card What Is a Bank Identification Number (BIN)?
What Is a Chip Card? What Is a Chip-and-PIN Card? What to Do if You Find a Lost Credit CardHow To Find Your Credit Card Security CodeReasons Your Credit Card Isn't WorkingHow To Use a Debit Card Online and at an ATMWhat Is a Magnetic Stripe Card?Pay With Your Mobile Phone

Newsletter Sign Up

Newsletter Sign Up

We Care About Your Privacy

We and our 100 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.

We and our partners process data to provide:

Store and/or access information on a device. Use limited data to select advertising. Create profiles for personalised advertising. Use profiles to select personalised advertising. Create profiles to personalise content. Use profiles to select personalised content. Measure advertising performance. Measure content performance. Understand audiences through statistics or combinations of data from different sources. Develop and improve services. Use limited data to select content.

Where Does Your Credit Card Number Come From? (2024)

FAQs

Where Does Your Credit Card Number Come From? ›

Issuer identification number (IIN) The first six or eight digits of a card number (including the initial MII digit) are known as the issuer identification number (IIN). These identify the card issuing institution that issued the card to the card holder. The rest of the number is allocated by the card issuer.

What are the first 4 digits of a Visa card? ›

What do the first four digits of a credit card mean? The first four digits are part of the BIN or IIN, a six-digit number that identifies the card issuer. These numbers contain valuable information about a credit card. The first digit of a credit card specifies the card's payment network and industry.

What do the 16 digits on a credit card mean? ›

Most credit cards have 15 or 16 digits displayed across the front, depending on the issuer. The first 6 digits indicate the issuer number, the next five refer to the specific issuing bank, and the final six equal the user's account number.

How do credit card companies generate card numbers? ›

The actual format is easy: the first six numbers are the card issuer, the next 9 are random, and the last one is a checksum with a publicly available algorithm. The end date is just a date in the future in MM/YY format, and the CVV is a random three digit number.

How did someone get my credit card details? ›

Credit cards can be stolen in a variety of ways: Through theft of a physical card, via data breaches, by card skimmers—the list goes on. Zero liability protections may prevent you from being financially responsible for fraud, but a credit card theft remains an inconvenience at best and a nightmare at worst.

What card starts with 4147? ›

A Visa credit card starts with 4147, judging from the first digit of this string of numbers. Each credit card has a unique string of numbers, but the first one can help you identify the payment network.

What type of credit card starts with 4400? ›

4400 – This prefix is commonly associated with Visa branded debit and credit cards issued by various banks. Cards that start with 4400 are part of Visa's extensive network and are widely accepted both domestically and internationally. 5466 – Credit cards that begin with 5466 are typically MasterCard products.

Where do credit card numbers come from? ›

Issuer identification number (IIN) The first six or eight digits of a card number (including the initial MII digit) are known as the issuer identification number (IIN). These identify the card issuing institution that issued the card to the card holder. The rest of the number is allocated by the card issuer.

What card number is 4111 1111 1111 1111 CVV? ›

What credit card should we be testing with? Only pre-approved 'test card' numbers provided by Windcave can be used for testing, within test environments. We recommend using the test card 4111 1111 1111 1111 for Visa, 5431 1111 1111 1111 for MasterCard, 3711 1111 1111 114 for Amex, and 3600 0000 0000 08 for Diners.

How do companies get my new credit card number? ›

How Updater Services Work. Each month, merchants send a list of names and card numbers to their acquirer, or payment processor, who check their data against Visa, MasterCard, American Express and Discover, Lindeen explained. The acquirer lists the cards with updated information, and returns the list to the merchant.

How did hackers get my credit card number? ›

Accidentally downloading malware or spyware can enable hackers to access information stored on your computer, including credit card information and other details. For example, a malware attack might use a keylogger that records your keystrokes or browser history and then sends that information to a hacker.

Who tracks your credit card information? ›

The 3 credit bureaus: Equifax, Experian and TransUnion. Credit bureaus collect data related to your credit and compile it into credit reports.

Can banks find out who used your card? ›

Bank investigators will usually start with the transaction data and look for likely indicators of fraud. Time stamps, location data, IP addresses, and other elements can be used to prove whether or not the cardholder was involved in the transaction.

Is 4715 a Visa or Mastercard? ›

GSA SmartPay Purchase Card/Account Prefixes
BrandCard/Account Prefix
Visa4614, 4715, 4716
Mastercard5565, 5568

Do all Visa numbers start with 4? ›

Visa starts with 4, a Mastercard is 5 and Discover is 6. Other numbers are used to identify the industry. For instance, 1 and 2 are used for the airline industry. The numeral 3 represents travel and entertainment, so it makes sense that 3 also indicates it's an American Express card.

Where is the 4 digit PIN on a Visa card? ›

The PIN (Personal Identification Number) on a Visa gift card is typically located on the back of the card, underneath a scratch-off sticker. You need to scratch off the sticker to reveal the PIN.

What type of card starts 4659? ›

OH's HSBC Visa Debit starts 4659 and I'm fairly sure thats not full-auth, but OH has the cheque guarantee Visa Debit with A&L and thats 4567. I have two A&L Visa Debit Cards and both start 4659. Neither have ever been CGC cards, but both will work offline just fine.

References

Top Articles
Climate Prediction Center - Atlantic Hurricane Outlook
Climate Prediction Center - Atlantic Hurricane Outlook
Fiskars X27 Kloofbijl - 92 cm | bol
Dairy Queen Lobby Hours
122242843 Routing Number BANK OF THE WEST CA - Wise
Time in Baltimore, Maryland, United States now
Live Basketball Scores Flashscore
Brendon Tyler Wharton Height
Apnetv.con
Ogeechee Tech Blackboard
Craigslist Labor Gigs Albuquerque
Santa Clara Valley Medical Center Medical Records
Oriellys St James Mn
Sams Gas Price Fairview Heights Il
Ivegore Machete Mutolation
Samantha Lyne Wikipedia
Bend Pets Craigslist
Webcentral Cuny
Star Wars: Héros de la Galaxie - le guide des meilleurs personnages en 2024 - Le Blog Allo Paradise
iZurvive DayZ & ARMA Map
Keurig Refillable Pods Walmart
ZURU - XSHOT - Insanity Mad Mega Barrel - Speelgoedblaster - Met 72 pijltjes | bol
Program Logistics and Property Manager - Baghdad, Iraq
Mybiglots Net Associates
Happy Homebodies Breakup
Regal Amc Near Me
2487872771
Craigslist Lake Charles
Garden Grove Classlink
Black Panther 2 Showtimes Near Epic Theatres Of Palm Coast
Dhs Clio Rd Flint Mi Phone Number
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
Obituaries, 2001 | El Paso County, TXGenWeb
Uncovering the Enigmatic Trish Stratus: From Net Worth to Personal Life
Calvin Coolidge: Life in Brief | Miller Center
Dairy Queen Lobby Hours
Sports Clips Flowood Ms
Flaky Fish Meat Rdr2
Lil Durk's Brother DThang Killed in Harvey, Illinois, ME Confirms
Ticketmaster Lion King Chicago
Ross Dress For Less Hiring Near Me
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Mychart Mercy Health Paducah
Penny Paws San Antonio Photos
Brown launches digital hub to expand community, career exploration for students, alumni
Hampton In And Suites Near Me
Costner-Maloy Funeral Home Obituaries
Michaelangelo's Monkey Junction
Tyrone Dave Chappelle Show Gif
Craigslist Monterrey Ca
Used Curio Cabinets For Sale Near Me
Booked On The Bayou Houma 2023
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6130

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.