PT-BR · EN

Fake Credit Card Generator

Generate fake credit card numbers for testing checkout flows, payment gateway sandbox integrations, and form validation. Supports Visa, Mastercard, American Express, Elo and Hipercard. All numbers pass the Luhn (mod-10) checksum, so they validate in any standard credit card validator, but they will fail at the gateway authorization step. Safe for QA environments only.

Click Generate to create fake credit card numbers

Clique em Gerar para começar

How Luhn validation works

The Luhn algorithm (mod-10) is the checksum used by virtually all credit card networks since the 1960s. It detects single-digit typos and most adjacent-digit swaps. Every credit card number you see has a last digit calculated so the sum of digits (doubled in odd positions from the right, then summed in case of overflow) is divisible by 10. FakeForge generates the first 15 digits and calculates the 16th, producing numbers that pass any client-side or server-side Luhn check.

Brand-specific prefixes (BIN)

Each card network has a unique Bank Identification Number (BIN) prefix:

  • Visa: starts with 4, 16 digits, CVV 3 digits
  • Mastercard: starts with 51 to 55 (classic) or 2221 to 2720 (new range), 16 digits, CVV 3 digits
  • American Express: starts with 34 or 37, 15 digits, CID 4 digits
  • Elo: starts with 401178, 438935, 451416, 457631 and others (Brazilian network), 16 digits, CVV 3 digits
  • Hipercard: starts with 606282 (Brazilian network), 16 digits, CVV 3 digits

When to use fake credit card numbers

Use FakeForge cards for: client-side form validation tests, server-side Luhn check verification, e-commerce checkout flow UI testing, payment form QA in CI/CD pipelines, customer demo environments where you want a realistic-looking card but no real authorization risk. For end-to-end transaction tests, switch to the official sandbox cards provided by each payment gateway (Stripe, Mercado Pago, PagSeguro, Adyen, Braintree all publish lists of test card numbers that hit specific authorization scenarios).

REST API for automated testing

# Generate 100 random credit cards
curl "https://fakeforge.com.br/api/generate?type=creditCard&quantity=100"

# Generate 50 Visa cards specifically
curl "https://fakeforge.com.br/api/generate?type=creditCardVisa&quantity=50"

# Generate 50 Mastercard cards specifically
curl "https://fakeforge.com.br/api/generate?type=creditCardMastercard&quantity=50"

# Bulk export to JSON for fixture seeding
curl -X POST "https://fakeforge.com.br/api/generate" \
  -H "Content-Type: application/json" \
  -d '{"type":"creditCard","quantity":1000,"format":"json"}'

Free tier: 100 requests per day, up to 10,000 cards per call. JSON, CSV and SQL output. Each card includes number, brand, CVV and expiration date.

Other Brazilian generators