Home · Finance Tools · Mastercard Validator

Validate Mastercard in 2 seconds

Validate Mastercard numbers — Luhn checksum, 16-digit length, BIN range check. Format-only.

Try live demo ↓ See pricing
GET /card — live demo
Input mastercard

Sample value. Replace with your own.

Validation result
// Click "Validate →" to run
Ready. Free 50 validations/day.

How it works

Credit card numbers follow the Luhn algorithm and brand-specific lengths. Our validator detects the brand from BIN range, checks length and runs Luhn. It does not verify if the card is active or has funds.

API call

# GET
curl "https://finance-validators.boring-saas-infra.workers.dev/card?value=5555555555554444"

# POST (same result)
curl -X POST https://finance-validators.boring-saas-infra.workers.dev/validate \
  -H "Content-Type: application/json" \
  -d '{"type":"card","value":"5555555555554444"}'

What you get back

{
  "valid": true,
  "card_number": "4111111111111111",
  "brand": "visa",
  "luhn_ok": true,
  "length_ok": true,
  "last4": "1111",
  "length": 16,
  "note": "Format-only check. Does not verify if card is active."
}

Why use our mastercard validator

Pricing

$0/forever
  • 50 validations / day
  • All 5 validators
  • REST API
Start free
$19.99/month
  • 5,000 validations / month
  • Batch validation
  • VIES lookup (VAT)
  • Priority queue
Subscribe →

FAQ

How do I validate a mastercard?

GET /card?value=YOUR_VALUE or POST to /validate with {"type":"card","value":"..."}.

Is there a free tier?

Yes. 50 validations per day, no credit card required.

What does the validator check?

Format, length, country rules, and checksum where applicable.

Can I integrate this via API?

Yes. REST API. GET or POST. Works from any language.

Does it check if a real account exists?

No. Format + checksum only. It does not verify existence or activity.

Related validators