Mir Card Number Validator
Check whether a number is a structurally valid Mir card: the 2200-2204 prefix, the length and the Luhn check digit. Everything runs in your browser.
Mir card number format at a glance
| Starts with (IIN) | 2200 to 2204 |
|---|---|
| Length | 16 digits (up to 19) |
| Security code | CVP2, 3 digits, back of the card |
| Luhn check digit | Yes. The last digit is a Luhn (mod 10) check digit. |
| Issued in | Russia, by Russian banks. Acceptance outside Russia is limited to a small number of countries. |
| Network operator | National Card Payment System (NSPK) |
Mir IIN (BIN) ranges
| Prefix | Notes |
|---|---|
| 2200 to 2204 | Mir |
What the first digits mean
Mir numbers start with 2200 to 2204, just below the Mastercard 2-series range (2221-2720). Validators that treat every number starting with 22 as Mastercard misidentify Mir cards.
A prefix tells you the network, not the bank. To see the issuing bank, country and card type behind a Mir BIN, use the BIN lookup tool.
Worked Luhn example with a Mir test number
This uses a public test number from the YooKassa testing docs. It passes every format check but is not a real account, so it cannot be charged.
Number: 2200 0000 0000 0004 (16 digits)
- Start from the rightmost digit (the check digit) and move left.
- Double every second digit, starting with the one just left of the check digit.
- If doubling gives a number above 9, subtract 9 (same as adding its two digits).
- Add every value together. The number is valid if the total ends in 0.
| Digit | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Double? | x2=4 | - | x2=0 | - | x2=0 | - | x2=0 | - | x2=0 | - | x2=0 | - | x2=0 | - | x2=0 | - |
| Value | 4 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Total: 10. 10 mod 10 = 0, so the number passes the Luhn check.
Working backwards: without the check digit, the other digits add up to 6. The check digit is whatever brings that total to the next multiple of 10: (10 - 6) mod 10 = 4, which matches the last digit.
Why a valid Mir card number still declines
Passing the Luhn and length checks only proves the number is well formed. Whether the payment goes through is decided by the issuer, and these are the common reasons a Mir card is still declined:
Not accepted by the merchant acquirer
Most acquirers outside Russia cannot process Mir, so a valid number fails at the processor rather than the issuer.
Misidentified as Mastercard
Detection rules that label 22xx numbers as Mastercard route Mir cards incorrectly.
Insufficient funds
The number is fine, but the account cannot cover the amount right now. This is a soft decline: retrying after payday or once the balance recovers often succeeds.
Expired or replaced card
Luhn and length checks never look at the expiry date. A card reissued after loss, fraud or expiry keeps failing until the customer updates it or a card updater service supplies the new details.
Look up the exact response code in the decline code glossary to see whether it is a soft decline worth retrying or a hard decline that needs the customer.
Mir card number FAQ
How many digits is a Mir card number?
A Mir card number is 16 digits (up to 19). The last digit is a check digit calculated with the Luhn algorithm.
What does a Mir card number start with?
Mir card numbers start with 2200 to 2204. The first 6 to 8 digits (the BIN) identify the issuing bank.
What is the CVP2 on a Mir card?
The CVP2 (Card Verification Parameter 2) is the 3-digit security code on the back of the card. It is not part of the card number, so a number validator cannot check it.
Do Mir card numbers use the Luhn algorithm?
Yes. The last digit is a Luhn (mod 10) check digit.
Why would a valid Mir card number still be declined?
A valid number only proves the format is right. Not accepted by the merchant acquirer, Misidentified as Mastercard, Insufficient funds are common reasons a Mir payment still fails.