Advertisement

Prefix 4 · 13, 16, 19 digits · 3-digit CVV

Spain Credit Card Generator

Generate test card numbers that start with real BINs from banks in Spain — preset with CaixaBank, S.A (400741). 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
Spain 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 4 · 13, 16, 19 digits · 3-digit CVV

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

Visa format

Starts with
4
Length
13, 16, 19
Security code
3
Stripe
4242 4242 4242 4242
Visa generator
Advertisement

Real BINs from banks in Spain

The generator above is preset with BIN 400741, a Visa credit range of CaixaBank, 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.

BINIssuerNetworkType · levelUse this BIN
400741 CaixaBank, S.A. VisaCredit · Classic Use
401851 Banco Cooperativo Espanol, S.A. VisaCredit · Classic Use
512483 Mastercajas, S.A. MastercardCredit · Standard Use
510131 Banco Santander, S.A. MastercardDebit · Platinum Use
431213 Servired, Sociedad Espanola de Medios de Pago S.A. VisaCredit Use
403519 Banco Bilbao Vizcaya Argentaria S.A. (BBVA) VisaCredit · Classic Use
410216 Banco Popular Espanol, S.A. VisaCredit · Classic Use
403430 Banco de Sabadell, S.A. VisaCredit · Classic Use

Each row is a different bank: its most common Visa or Mastercard range. All 3,124 BINs with a named issuer are in the Spain BIN list.

Card networks and card types in Spain

We count 4,135 card BINs for Spain — 3,124 with a known issuer, from 245 banks. The largest network is Visa with 47% of the ranges, followed by Maestro (22%). Credit ranges outnumber debit ranges 2,320 to 1,815. Visa ranges outnumber Mastercard 2.6 to 1. 234 ranges are prepaid or gift products and 625 are business, corporate or commercial cards.

NetworkBINsShareDebitCredit
Visa1,927 47%5401,387
Maestro908 22%9080
Mastercard738 18%297441
American Express240 6%0240
Diners Club132 3%0132
UATP100 2%0100
Private label82 2%6517
UnionPay5 less than 1%41

Most common product levels: Standard (858), Classic (686), Business (352), Gold (297), Electron (223).

Advertisement

Largest card issuers in Spain

The 10 banks with the most BINs in the data, out of 245 named issuers. The three largest issuers — CaixaBank, Banco Cooperativo Espanol and Mastercajas — hold 23% of the BINs with a named bank. Click a bank to see every BIN it has in Spain.

Payment testing notes for Spain

Paying online in Spain: local methods and gateways

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

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

GatewayAboutTest cards
RedsysSpanish card payment platform behind many Spanish bank virtual POS terminals; publishes test cards (e.g. 4548 81...) and test environments. Official docs
PAYCOMETSpanish payment gateway with a published test card list. Official docs
MONEISpanish payment platform supporting cards and Bizum; testing docs list test cards. Official docs
StripeSupports cards and Bizum for Spanish customers; test cards in its testing docs. Stripe test cards

Card generators for other countries

← Generators for other countries · Spain 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 Spain credit card number for testing?

Yes. Every number on this page starts with a real BIN registered to a bank in Spain — by default 400741 (CaixaBank, S.A, Visa credit). The remaining digits are random and the last one is a Luhn check digit. None of them is a real card; live payments fail.

Which card networks are most common in Spain?

By BIN count in our data: Visa 47%, Maestro 22%, Mastercard 18%, American Express 6%. Debit ranges make up 44% and credit ranges 56%.

Which BINs do Visa cards from Spain start with?

Examples from different banks: 400741 (CaixaBank, S.A.); 401851 (Banco Cooperativo Espanol, S.A.); 431213 (Servired, Sociedad Espanola de Medios de Pago S.A.); 403519 (Banco Bilbao Vizcaya Argentaria S.A. (BBVA)). See the Spain BIN list for every bank.

Which currency should I use to test payments from Spain?

EUR (euro). Gateway APIs usually expect amounts in the smallest unit (for example 1050 for 10.50). Also test a foreign-currency charge on a Spain BIN: the issuer converts it, which some checkouts display differently.

Is a generated Spain card number a real card?

No. They start with real BINs from banks in Spain such as CaixaBank, but no bank issued them: no account, no money, no cardholder. Every real purchase, free trial or card check declines them. To pay online, use a virtual or prepaid card from your bank or a wallet such as Bizum and PayPal. Testing a checkout? Use your gateway’s sandbox test cards.

Which payment methods should a checkout for Spain offer next to cards?

Bizum: Spanish real-time payment system: the shopper enters the phone number registered with Bizum and approves the payment in their bank's app (EUR only). PayPal: PayPal wallet, available to Spanish businesses and buyers. SEPA Direct Debit (adeudo SEPA): Debit from a euro IBAN under a signed mandate, common for subscriptions.

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