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
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.

Visa format

Starts with
4
Length
13, 16, 19
Security code
3
Stripe
4242 4242 4242 4242
Visa 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 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
414639 Banco Sabadell, S.A. VisaCredit · Gold Use

One BIN per bank — the most common Visa or Mastercard product of each of the largest issuers. All 3,129 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,129 with a known issuer, from 250 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. 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 250 named issuers. Each bank with ten or more BINs has a page listing all of them.

Payment testing notes for Spain

Generated numbers only pass format checks: network prefix, length and the Luhn checksum. They are not issued by any bank in Spain, 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 · 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. The generator on this page starts every number 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. No bank issued the number, so it carries no account and real payments with it are declined.

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). 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