Loading…
Loading…
Check a payment card number with the Luhn algorithm, identify the network (Visa, Mastercard, Amex…), and format it. Never sent or stored.
Also covers: Luhn checker · Credit card number formatter
The check runs entirely in your browser: the number is never sent, saved, or logged. To test, use the public test numbers card processors publish, like 4242 4242 4242 4242.
Result
—
Type or paste a card number.
The network is identified from its first digits, the length is checked, and the Luhn checksum is verified as you type. The result is masked by default.
A checksum used by payment cards: every second digit from the right is doubled, the digits are summed, and the total must be a multiple of 10. It catches any single mistyped digit and most swaps of two neighbouring digits.
No. It only means the number is well-formed. Whether a card exists, is active, or has funds can only be checked by the card issuer during a payment.
The check runs entirely in your browser and the number is never sent, stored, or logged. For testing, you don't need a real card: payment processors publish test numbers like 4242 4242 4242 4242.
Shopping
Work out a sale price and savings from a percentage off, stack an extra discount, or find the discount percentage or the original price.
Dining
Calculate the tip and total for a bill, split it between people, tip on the pre-tax amount, and round up the total or each share.
Sharing
Split a bill evenly, or share trip and group expenses: record who paid what and get the fewest payments to settle up.
Tax
Add VAT, GST, or sales tax to a net price, or take it out of a tax-inclusive price, at any rate.
Shopping
Compare the price per 100 g, per kg, per litre, per ounce, or per item across pack sizes to find the best value.
Formatting
See how an amount is written in different countries: symbols, separators, and decimals for 30 currencies and 14 locales, with the JavaScript code.