ToolsRiver Income Tax

Credit Card Validator

  • Free, no sign-up
  • Runs in your browser
  • Works on mobile

Developer utilities / Number checks

Understand why a test number passes or fails

Check a test number’s format, length and Luhn checksum. Get a readable result for one number or a batch, without making a payment request.

Free · no sign-upRuns in your browserTest data only

Check a test number

Spaces and hyphens are accepted. Please use test data, not real card details.

TOOLS RIVER / NUMBER CHECKLOCAL
Format. Length. Checksum.
A CHECKSUM PASS DOES NOT CONFIRM AN ACTIVE CARD.
01 · Check the input format
02 · Compare common network prefixes and lengths
03 · Calculate the Luhn checksum

No bank lookup or payment attempt is made. Result cards and exports show only the last four digits.

Disclaimer: This tool checks number format, common prefix/length patterns and the Luhn checksum only. It does not verify whether a card exists, is active, has funds, belongs to anyone or will be accepted for payment. Do not enter real card details. Use test data only.

How to use the credit card validator

  1. Enter a test number, or select Load example to try a published sandbox value.
  2. Select Check number to see the format, network hint, length and Luhn result.
  3. For several inputs, choose Batch and paste one number per line, or import a one-column TXT/CSV file. Use Check batch or Ctrl+Enter / Command+Enter.
  4. Copy or download the report as TXT, CSV or JSON. Reports mask the number except for its final four digits.

The tool helps developers test forms and students understand check digits. Keep test numbers as text: converting long identifiers into spreadsheet numbers can lose digits.

What the Luhn check does

Starting from the right, double every second digit. Subtract 9 from a doubled value greater than 9, then add the values together. A total divisible by 10 passes the checksum. This catches many typing errors, but it does not verify a card's existence or ownership.

Network hints use common prefixes for Visa, Mastercard, American Express, Discover, JCB, Diners Club and UnionPay. They are not a live BIN lookup. Co-branded cards, new ranges and other networks may not be recognised. Some networks have exceptions to Luhn, so a failed check should not be used as a universal bank decision.

Worked example

The published test number 4242 4242 4242 4242 produces a total of 80 and passes. With its final digit changed to 1, the total is 79 and the check fails. Neither result tells you whether an account has funds.

Frequently asked questions

Does “checksum passed” mean the card is active?

No. The tool cannot check account status, available funds, ownership, expiry or CVV. It does not contact a bank or attempt a payment.

Should I enter my real card number?

Please use test data only. This widget runs its checks in your browser and does not send its input to a validation service. Avoid putting real financial details into public testing tools.

Why is the network unrecognised?

The prefix may be outside the common ranges this tool covers. You can still see the Luhn result, but the network-specific length check will be marked as not checked.

Can I paste numbers with spaces or hyphens?

Yes. For example, 4242-4242-4242-4242 is accepted. Letters, decimal points and comma-grouped amounts are rejected instead of silently changing the input.

How does batch checking handle errors?

Each non-empty row gets its own result. Invalid rows are kept in the report. A CSV file must contain one column, with an optional card_number, test_number or number header. The limit is 100 rows.

Where can I find payment test numbers?

Use your payment provider's official documentation. The Load example button uses a value listed in Stripe's testing guide, checked on 13 November 2026. Use provider examples only in the appropriate test environment.

Related tools

Try these next

Share this tool

Scroll to Top