Credit Card Validator · Card Number and Routing Number Checker
When to Use This Calculator
Everyday financial situations where this tool gives you fast, accurate clarity:
Catch a Typo
See at once whether a card number has a wrong digit and which digit would fix it.
Identify the Card Network
Find out whether a number is Visa, Mastercard, American Express, Discover or another network.
Check a Routing Number
Verify the 9-digit number on a check before you send an ACH or wire transfer.
Test a Payment Form
Use the test numbers to try the checkout or form you are building.
Luhn checksum: starting from the rightmost digit, double every second digit, subtract 9 from any result above 9, add all the digits, and the total must be a multiple of 10. Card network by the first digits: Visa 4; Mastercard 51-55 and 2221-2720; American Express 34 and 37; Discover 6011, 644-649, 65 and 622126-622925; JCB 3528-3589; Diners Club 300-305, 36, 38 and 39; UnionPay 62. Length by network: Visa 13, 16 or 19; Mastercard 16; American Express 15; Discover 16 to 19; JCB 16 to 19; Diners Club 14 to 19. Security code: 3 digits on the back for most cards, 4 digits on the front for American Express. Routing number (3-7-1): 3 × (d1 + d4 + d7) + 7 × (d2 + d5 + d8) + 1 × (d3 + d6 + d9) must be a multiple of 10. Routing symbol (first two digits): 01-12 commercial banks, 21-32 thrift institutions (district + 20), 61-72 electronic transactions (district + 60), 80 traveler's checks. UnionPay cards are not required to pass the Luhn check. The masked number shows the first six and last four digits at most.
Applicable Laws & Regulatory Standards
ISO, PCI Security Standards Council & Federal Reserve Financial Services
Defines the structure of a payment card number, the issuer identification number at the start and the Luhn check digit at the end, which are the two things this tool reads.
Allows showing at most the BIN and the last four digits of a card number, a limit this tool respects by echoing only the first six and last four digits.
Defines the 9-digit routing number, its 3-7-1 check digit and the first two digits that identify the Federal Reserve district and the type of institution.
Govern ACH payments, which use the routing number to direct a debit or credit to the right bank, and require the receiving bank identifier to carry a valid check digit.
Legal citations and statutes are provided for consumer transparency, analytical validation, and educational reference under U.S. consumer financial regulations. This tool is not a substitute for formal legal, accounting, or tax counsel.
Found an error or have a suggestion?
Help us calibrate this tool for US regulations and consumer standards.