Card number has valid format
What this tool does
Use this tool to verify if a card number is correctly formatted and mathematically valid. It helps you clean lists by filtering out typos or invalid entries before processing payments. This ensures your records only contain numbers that could potentially work.
When to use it
- Validating new customer payment details during sign-up.
- Cleaning up old mailing lists to remove obvious errors.
- Checking data exported from other systems for accuracy.
- Testing forms to ensure users enter numbers correctly.
What to expect
You will receive a clear yes or no answer indicating if the number format is valid. The result is based on the structure and check digits of the number provided.
Limitations
- This check only validates the format and math, not if the card is active or has money.
- It cannot confirm the card belongs to the person providing it.
- Rare or older card types might not be recognized.
When it fails
- If the input is not a number.
- If the number has too few or too many digits.
- If the calculation of check digits does not match.
Good to know
- Spaces in the number are automatically ignored during checking.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
credit_card | Yes | 4024007151839544 | Enter the full card number as text (digits only). For example, '4024007151839544'. Spaces are ignored. If the input is not numbers, the check will fail. |
Output data
| Field | Description |
|---|---|
result | A yes/no indicator showing if the card number's checksum is valid. For example, 'True' if valid or 'False' if not. |