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

Runs in your browser · 8 networks · 374,788 BINs

Local bank BINs
Mexico billing addresses →
Generated cards

Test data only — these numbers are not issued by any bank and every real payment with them will be declined. Need a card that works online? Ask your bank for a virtual card. Testing a checkout? Use your gateway’s sandbox test cards.

Advertisement

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

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

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.

The largest issuers in Mexico, one typical Visa or Mastercard BIN each, plus local-network BINs. All 1,863 BINs with a named issuer are in the Mexico BIN list.

Local card networks in Mexico

Mexico runs domestic card networks next to Visa and Mastercard. Make sure your brand detection and validation accept their numbers.

SchemeCard numbers start withLengthOnlineAbout
Carnet
Prosa (Promoción y Operación, S.A. de C.V.)
506199-506499, 286900, 502275, 606333, 627535, 636318, 636379, 639388, 639484, 639559, 50633601, 50633606 and 5 more 16 Yes Mexican domestic card brand (created 1968) processed by Prosa; dLocal lists Carnet Credit and Carnet Debit as accepted online card brands. No (Carnet-branded credit, debit and prepaid cards). Source

BIN counts for local networks in our dataset:

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,863 of them with a named issuer across 362 banks. Mastercard is the most common network (35% of the BINs), followed by Visa (30%). Credit ranges outnumber debit ranges 1,276 to 866. Visa and Mastercard hold a similar number of ranges. 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 362 named issuers. Together, AEC Mexico de CV - Gstar Cons Charge, Aeromexico (AM) and Banco Nacional de Mexico issue 16% of the ranges that name a bank. Follow a bank name for its complete list of ranges.

Payment testing notes for Mexico

Paying online in Mexico: local methods and gateways

Cards are only part of the picture. These payment methods are popular in Mexico and usually sit next to the card form at checkout:

Payment gateways developers commonly integrate for Mexico, with their official sandbox docs:

GatewayAboutTest cards
Mercado PagoPublishes country-specific test cards; the cardholder name (e.g. APRO) selects the simulated result. Mercado Pago test cards
OpenpayMexican gateway with a sandbox and a published testing page of test cards. Official docs
ConektaMexican PSP for cards, OXXO and SPEI with test-mode API keys. –
dLocalCross-border PSP supporting Visa, Mastercard, Amex, Carnet, OXXO and SPEI in Mexico. –

Card generators for other countries

← 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. Pick a bank from Mexico (the default is Banco Nacional de Mexico, S.A, BIN 222668) and the tool builds Luhn-valid numbers on that prefix, with expiry and CVV. Nothing is attached to them, so any real charge is 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.); 413405 (HSBC Mexico S.A., Institucion de Banca Multiple, Grupo Financiero HSBC); 400195 (Banco Azteca S.A. Institucion de Banca Multiple); 402318 (Banco Mercantil del Norte S.A.., Instituci N de Banca M Ltiple, Grupo Financiero). 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). Shoppers with cards from Mexico can still be charged in other currencies; their bank converts the amount.

Is a generated Mexico card number a real card?

No — format only. Banks in Mexico decline numbers they never issued, which is every generated number. If you need to pay, a bank virtual card or a wallet such as Mercado Pago is the safe route. Testing a checkout? Use your gateway’s sandbox test cards.

What does a Carnet card number look like?

Carnet numbers start with 506199–506499, 286900, 502275, 606333, 627535 and 636318 and have 16 digits with a Luhn check digit. Mexican domestic card brand (created 1968) processed by Prosa; dLocal lists Carnet Credit and Carnet Debit as accepted online card brands. Make sure your card form accepts these prefixes instead of rejecting them as an unknown brand.

How do people pay online in Mexico besides cards?

OXXO: Customer pays a generated voucher in cash at OXXO convenience stores. SPEI: Mexican interbank electronic transfer, offered by PSPs as a bank-transfer checkout option. Mercado Pago: Mercado Libre's wallet, widely accepted at Mexican online checkouts.

Related tools

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 →

Advertisement