Credit card type by number
What this tool does
This tool checks if a card number is valid and identifies the brand. It helps you confirm if a payment method is recognized before processing. Use it to catch errors early.
When to use it
- Checking a user-entered card number for typos.
- Validating a payment method in a form.
- Filtering invalid cards before checkout.
- Verifying card brand for reporting.
What to expect
You will get a confirmation of validity and the card brand. If valid, you see the brand name. If not, you see a specific error code.
Limitations
- Only works for standard major card brands.
- Does not check if funds are available.
- Cannot detect all types of fraud.
When it fails
- The number contains non-digits.
- The number fails the checksum check.
- The card brand is not recognized.
Good to know
- Enter only digits. No spaces or dashes.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
credit_card | Yes | 4024007151839544 | Enter the full credit card number as text (digits only, no spaces or symbols). Example: '4024007151839544'. This field is required. |
Output data
| Field | Description |
|---|---|
result | A yes/no indicator. Returns 'True' if the card number is valid and a brand is identified, otherwise 'False' or the text 'not-found' if the number is valid but no brand is recognized. |