We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Free online UnionPay card checker. Instantly identify card types (debit, credit, prepaid) using the first 6-digit BIN. Fast, secure, and accurate.
tools.bankcard-account-type.emptyPlaceholder
Identifying a UnionPay card account type relies on two levels: first, bank card number validation using the Luhn algorithm (also known as the modulus 10 algorithm) to verify if the card number is valid; second, the Bank Identification Number (BIN)—the first 6 digits of the card number. UnionPay assigns specific BIN ranges to each issuing institution and defines the card type (debit card, credit card, prepaid card, etc.) corresponding to that range.
Luhn Algorithm Formula (plain text representation):
Starting from the right, sum the digits in odd positions directly; multiply the digits in even positions by 2, and if the result is greater than 9, subtract 9, then sum them up; take the total sum modulo 10. If the remainder is 0, the validation passes.
Variable explanation: Let the card number be d1 d2 … d16. Starting from the 1st digit on the right (the check digit), let S1 be the sum of the odd positions, and S2 be the sum of the processed even positions. Then (S1 + S2) mod 10 = 0.
After you enter a card number, this tool first uses the Luhn algorithm to determine if the card number is valid. It then extracts the first 6 digits to match against the built-in BIN table and outputs the corresponding account type. If the card number fails validation, it will prompt "Invalid card number."
Let's look at an example together: open the UnionPay Card Account Type Checker above, and you will see an input box and an "Identify" button.
Interpretation: The card number 6228480012345678 passes the Luhn check (you can verify this yourself), and the first 6 digits 622848 correspond to the Agricultural Bank of China debit card BIN range, so the result is a debit card.
Let's try two different card numbers:
These two comparative examples demonstrate that this tool can not only distinguish between debit and credit cards but also identify input errors.
Meaning of the three common types of identification results:
If the result only shows "UnionPay Card" without a specific distinction, it means the card's BIN belongs to a general range or the tool's database does not yet cover its detailed classification. However, the vast majority of mainstream bank BINs are already in the database.
| Concept | Purpose | Identification Basis |
|---|---|---|
| Luhn Validation | Verifies if the card number comes from a standard generation algorithm | Modulo 10 calculation of all digits in the card number |
| BIN Identification | Determines the issuing institution and card type | The first 6 digits of the card number |
| UnionPay Card Type | Account functional attributes (Debit/Credit) | Issuing institution classification corresponding to the BIN range |
Summary: Luhn validation is the basic filtering layer, and BIN identification is the type determination layer. Combining both provides reliable results.
⚠️ Unregistered table bankcard-bins:common
Common UnionPay card BIN and card type mapping (Examples): Agricultural Bank of China debit card BIN 6228xx, China Construction Bank credit card BIN 6225xx, Industrial and Commercial Bank of China debit card BIN 6200xx, etc. The complete data is built into the tool's database, so there is no need to memorize it.
Now you can enter your own UnionPay card number in the calculator above to see what type it is identified as.