Advertisement

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

Morocco Credit Card Generator

Generate test card numbers that start with real BINs from banks in Morocco — preset with Attijariwafa Bank (401713). 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 Morocco

The generator above is preset with BIN 401713, a Visa debit range of Attijariwafa Bank. 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
401713 Attijariwafa Bank VisaDebit · Classic Use
455219 Societe Generale Marocaine de Banques VisaDebit · Classic Use
252500 Banque Centrale Populaire MastercardDebit · Standard Use
524889 Bank of Africa MastercardDebit · Standard Use
252525 Credit Immobilier et. Hotelier MastercardDebit · Standard Use
409572 Credit du Maroc, S.A. VisaDebit · Classic Use
431441 Banque Marocaine du Commerce Exterieur VisaDebit · Classic Use
252502 Credit Agricole du Maroc MastercardDebit · Standard Use

One BIN per bank — the most common Visa or Mastercard product of each of the largest issuers. All 252 BINs with a named issuer are in the Morocco BIN list.

Card networks and card types in Morocco

Morocco has 416 BINs in the dataset; 252 name the issuing bank, spread over 31 issuers. Visa is the most common network (38% of the BINs), followed by Maestro (28%). Debit ranges outnumber credit ranges 333 to 83. 24 ranges are prepaid or gift products and 35 are business, corporate or commercial cards.

NetworkBINsShareDebitCredit
Visa158 38%13721
Maestro115 28%1150
Mastercard111 27%7635
Diners Club13 3%013
American Express11 3%011
Private label4 1%13
Local brand4 1%40

Most common product levels: Standard (172), Classic (54), Gold (20), Platinum (19), Business (16).

Advertisement

Largest card issuers in Morocco

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

Payment testing notes for Morocco

Generated numbers only pass format checks: network prefix, length and the Luhn checksum. They are not issued by any bank in Morocco, 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 · Morocco 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 Morocco credit card number for testing?

Yes. The generator on this page starts every number with a real BIN registered to a bank in Morocco — by default 401713 (Attijariwafa Bank, Visa 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 Morocco?

By BIN count in our data: Visa 38%, Maestro 28%, Mastercard 27%, Diners Club 3%. Debit ranges make up 80% and credit ranges 20%.

Which BINs do Visa cards from Morocco start with?

Examples from different banks: 401713 (Attijariwafa Bank); 455219 (Societe Generale Marocaine de Banques); 409572 (Credit du Maroc, S.A.); 431441 (Banque Marocaine du Commerce Exterieur). See the Morocco BIN list for every bank.

Which currency should I use to test payments from Morocco?

MAD (Moroccan dirham). 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