Credit Card Number Validator

As a software developer or tester, you may be required to know what is a valid credit card number and what is an invalid credit card number. According to industry convention, credit card numbers have special prefixes and MOD 10 checks. This page allows you to learn and test the structure of credit card numbers. Issuers include American Express, Diners Club, Discover, JCB, MasterCard, VISA, Voyager.

How to validat credit card numbers?

In order to help your programming or testing tasks, FYIcenter.com has designed this online testing page for you to validate any given credit card numbers. It also returns the MII, issuer, account #, and checksum.

All you need to do is to enter a credit card number in the form below and click the Start button.

Credit Card Number:

What is a valid credit card number?

All credit card numbers are divided into 3 parts:

  • Issuer Identifier - 6 digits to identify the issuer of the card.
  • Acccount Number - 6 to 9 digits to identify the individual account number.
  • Check Digit - 1 digit computed as a checksum of the Issuer Identifier and the Account Number based on Luhn algorithm.

For example, credit card number "4417123456789113" consists of:

  • "441712" - Identifies a Visa partner as the issuer.
  • "345678911" - Identifies the holder's account number.
  • "3" - Gives the checksum number.

Popup Windows Tutorials

20 tutorials on different ways to create and test popup windows created in JavaScript: Page unload popups, Pop re-open on close, ...

200+ PHP Script Tutorials

Each tutorial answers one commonly asked PHP programming question with a short, but precise and clear PHP script.