UnionPay card number format
Starts with (IIN)
62
Length
16–19 digits
Security code
3 digits
Check digit
Luhn (mod 10) — not used by some cards
Test number
6200000000000005
A UnionPay number starts with 62 and has 16–19 digits. The last digit is a Luhn check digit, so a typo in one digit is almost always caught before the payment reaches the bank.
FAQ
How do I know if a UnionPay card number is valid?
Paste it above: the validator checks the prefix, the length and the Luhn checksum, and tells you which last digit is expected if the checksum fails.
Does a valid UnionPay number mean the card works?
No. Only the issuing bank can confirm the card exists and can be charged, during an authorization.
Where can I get UnionPay test numbers?
Use the UnionPay test card generator or the official sandbox cards of Stripe and Adyen, e.g. 6200000000000005.
Other card brands
Visa · Mastercard · American Express · Discover · JCB · Diners Club · Maestro