Advertisement

Prefix 300–305, 36, 38–39 · 14–19 digits · 3-digit CVV

Diners Club Card Number Generator

Generate 14-digit Diners Club International test numbers from the 36, 38 and 300–305 ranges, with a random expiry date and 3-digit security code.

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

Diners Club format

Starts with
300–305, 36, 38–39
Length
14–19
Security code
3
Stripe
3056 9300 0902 0004
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 →

About Diners Club card numbers

Diners Club was founded in New York in 1950 as the first general-purpose charge card: members could pay at many restaurants with one card and settle the bill monthly. Discover Financial Services bought Diners Club International in 2008, and Diners cards now run on the Discover Global Network. Today the brand is most common in corporate travel and in markets such as Latin America, Croatia and parts of Asia.

Diners Club numbers break two common assumptions. Most international Diners cards have 14 digits, grouped 4-6-4 like 3622 720627 1667, and they start with 36, 38 or 300–305. The network allows up to 19 digits, and in the United States and Canada Diners Club cards have been issued with Mastercard-range numbers (starting with 54 or 55) and are processed as Mastercard. A checkout that hard-codes a 16-digit length, or treats every number starting with 3 as American Express, will reject or mislabel these cards.

The security code is three digits on the back, and the last digit of the card number is a Luhn check digit like every other brand. Because Diners runs on the Discover network, many US payment processors return “Discover” as the card brand for a Diners number. Your brand detection may need to accept both.

Use the generator above to create 14-digit Diners numbers in bulk, then check that your form accepts the length, formats it as 4-6-4 and shows the right logo. For a gateway sandbox, use the gateway’s own Diners test card: Stripe documents 3056 9300 0902 0004 and the 14-digit 3622 720627 1667, Braintree 3625 960000 0004, and Adyen 3600 666633 3344 (expiry 03/2030, CVC 737).

Diners Club number format

Starts with (IIN)300–305, 36, 38–39
Number length14 (up to 19) digits
Typical layout3xxx xxxxxx xxxx
Security code3-digit code on the back
Check digitLast digit, calculated with the Luhn (mod 10) algorithm
NetworkDiners Club International (Discover network)
Advertisement

Official Diners Club sandbox test numbers

Payment gateways publish fixed test numbers that only work in their test mode. Use them when you need a predictable gateway response; use the generator above for bulk or randomized data.

GatewayTest number
Stripe3056 9300 0902 0004

Sources: the gateways' own documentation — Stripe, PayPal, Braintree, Adyen.

How to test Diners Club payments safely

  1. Generate a batch of Diners Club numbers above and paste them into your form to confirm brand detection, length and formatting.
  2. Change one digit of a generated number — your form should now reject it, because the Luhn check fails. You can confirm why with the validator.
  3. Switch your payment provider to sandbox / test mode and use its documented test cards for authorization, decline and 3-D Secure scenarios.
  4. Never use real customer card numbers in development or staging environments.
Generated Diners Club numbers are for testing only. They are not linked to any Diners Club account, hold no balance and will be declined by any live payment system.

Frequently asked questions

How many digits does a Diners Club card have?

Most international Diners Club cards have 14 digits, starting with 36, 38 or 300–305. The network allows up to 19, and US/Canadian Diners cards may use 16-digit Mastercard numbers.

What is a Diners Club test card number?

Stripe documents 3056 9300 0902 0004 and 3622 720627 1667 for test mode. See our test card numbers page for other gateways.

Is Diners Club the same as Discover?

Discover owns Diners Club International and processes its cards, but Diners keeps its own number ranges and branding.

Are these real Diners Club card numbers?

No. They follow the Diners Club number format but are not linked to any account and cannot be used to pay.

Related tools

Advertisement