Advertisement

Prefix 51–55, 2221–2720 · 16 digits · 3-digit CVV

Mexico Credit Card Generator

Generate test card numbers that start with real BINs from banks in Mexico — preset with Banco Nacional de Mexico, S.A (222668). Luhn-valid, with expiry date and CVV. Test data only, not real cards.

Advertisement
Local bank BINs
Generated cards

Test data only — these numbers are not issued by any bank and every real payment with them will be declined.

Advertisement

Generated locally with your browser’s crypto API — nothing is sent to a server.

Mastercard format

Starts with
51–55, 2221–2720
Length
16
Security code
3
Stripe
5555 5555 5555 4444
Mastercard generator
Advertisement

Brand ranges at a glance

The prefixes and lengths your checkout must accept. Each brand has its own generator page.

For developers & QA

Test data that stays out of PCI scope

Use generated numbers for everything before the payment request, then switch to your gateway’s official sandbox cards for approvals, declines and 3-D Secure.

  • Test form validation & input masks
  • Seed staging databases and demos
  • Reproduce declines and 3-D Secure in the sandbox
Browse gateway test cards

Official sandbox cards, per gateway

All 18 gateways →

Real BINs from banks in Mexico

The generator above is preset with BIN 222668, a Mastercard debit range of Banco Nacional de Mexico, S.A. Pick another bank's BIN below to switch — each number keeps the BIN, gets random digits and a Luhn check digit, and comes with a random expiry date and CVV.

One BIN per bank — the most common Visa or Mastercard product of each of the largest issuers, plus local-network BINs. All 1,865 BINs with a named issuer are in the Mexico BIN list.

Local card networks in Mexico

Besides the international networks, Mexico has its own card scheme. Local networks matter for testing because their numbers often use prefixes that a Visa/Mastercard-only form rejects or labels wrongly.

NetworkAboutBINsShareExample BIN
Carneta Mexican domestic network1828% 506201 Invex
Advertisement

Card networks and card types in Mexico

Our BIN data lists 2,149 BINs registered to Mexico, 1,865 of them with a named issuer across 367 banks. Mastercard is the most common network (35% of the BINs), followed by Visa (30%). Credit ranges outnumber debit ranges 1,276 to 866. 162 ranges are prepaid or gift products and 226 are business, corporate or commercial cards.

NetworkBINsShareDebitCredit
Mastercard751 35%292459
Visa637 30%284353
American Express282 13%8267
Carnet182 8%13151
Maestro126 6%1251
UATP100 5%0100
Diners Club39 2%039
Private label22 1%184

Most common product levels: Standard (566), Classic (262), Personal (179), Business (111), Prepaid (105).

Largest card issuers in Mexico

The 10 banks with the most BINs in the data, out of 367 named issuers. Each bank with ten or more BINs has a page listing all of them.

Payment testing notes for Mexico

Generated numbers only pass format checks: network prefix, length and the Luhn checksum. They are not issued by any bank in Mexico, carry no money and are declined by every real payment system — use them for forms, validation and BIN rules, and switch to your gateway's documented test cards for approvals and declines.

← Generators for other countries · Mexico BIN list · BIN generator · BIN checker

BIN data: bin-list-data by Venelin Kochev (a lite version of binlookup.io), licensed under CC BY 4.0. Changes made by Fakecreditcard: issuer, brand and country names re-cased and standardized, spelling variants of the same issuer merged, malformed phone numbers and web addresses removed.

Frequently asked questions

Can I generate a Mexico credit card number for testing?

Yes. The generator on this page starts every number with a real BIN registered to a bank in Mexico — by default 222668 (Banco Nacional de Mexico, S.A, Mastercard debit). The remaining digits are random and the last one is a Luhn check digit. No bank issued the number, so it carries no account and real payments with it are declined.

Which card networks are most common in Mexico?

By BIN count in our data: Mastercard 35%, Visa 30%, American Express 13%, Carnet 8%. Local networks: Carnet (182 BINs). Debit ranges make up 40% and credit ranges 59%.

Which BINs do Visa cards from Mexico start with?

Examples from different banks: 410180 (BBVA Mexico, S.A.); 400195 (Banco Azteca S.A. Institucion de Banca Multiple); 413405 (HSBC Mexico S.A., Institucion de Banca Multiple, Grupo Financiero HSBC); 402338 (Scotiabank Inverlat, S.A.). See the Mexico BIN list for every bank.

Which currency should I use to test payments from Mexico?

MXN (Mexican peso). Gateway APIs usually expect amounts in the smallest unit (for example 1050 for 10.50). A card from any country can pay in any currency the merchant supports; the issuer handles conversion.

Will these numbers pass a payment gateway?

They pass format checks — length, network prefix and the Luhn checksum — so they are ideal for testing form validation and BIN-based rules. Gateways in test mode want their own documented test cards for approvals and declines; in live mode every generated number is declined because no bank has issued it.

Related tools

Advertisement