Ender Docs

CC Cleaner

Clean and validate credit card data from raw text - free tool with no credit cost.

Overview

Extract and clean credit card data from raw text. Automatically validates format, removes duplicates, verifies Luhn checksums, and filters expired cards.

Free Tool

CC Cleaner is completely free - no credits required! API key is needed for authentication.

Endpoints

Get Tool Info

GET /v1/tools/cc-cleaner

Clean Cards

POST /v1/tools/cc-cleaner

Request

Headers

HeaderRequiredDescription
AuthorizationYour API key
Content-Typeapplication/json

Body Parameters

ParameterTypeRequiredDefaultDescription
inputstring-Raw text containing credit card data
removeDuplicatesbooleantrueRemove duplicate cards
verifyLuhnbooleantrueOnly include cards passing Luhn check
formatYearbooleantrueFormat year to 4 digits (25 → 2025)
sortbooleanfalseSort cards alphabetically
removeExpiredbooleanfalseRemove cards with past expiry dates

Supported Input Formats

The cleaner automatically detects cards in various formats:

4111111111111111|12|25|123
4111111111111111|12|2025|123
4111-1111-1111-1111 12/25 123
4111 1111 1111 1111, 12, 25, 123
CC: 4111111111111111 EXP: 12/25 CVV: 123

Example Request

curl -X POST https://api.ender.black/v1/tools/cc-cleaner \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Here are some cards:\n4111111111111111|12|25|123\n4222222222222222|01|26|456\n4111111111111111|12|25|123",
    "removeDuplicates": true,
    "verifyLuhn": true,
    "removeExpired": true
  }'

Response

{
  "success": true,
  "data": {
    "cards": ["4111111111111111|12|2025|123", "4222222222222222|01|2026|456"],
    "summary": {
      "inputLength": 95,
      "cardsFound": 2
    }
  }
}

Response Fields

FieldTypeDescription
cardsstring[]Cleaned cards in standard pipe format
summary.inputLengthnumberOriginal input length in characters
summary.cardsFoundnumberNumber of valid cards after cleaning

Cleaning Options

Remove Duplicates

When removeDuplicates: true (default), only unique card numbers are kept:

Input:
4111111111111111|12|25|123
4111111111111111|12|25|456  ← Duplicate card number

Output:
4111111111111111|12|25|123  ← First occurrence kept

Luhn Validation

When verifyLuhn: true (default), cards failing checksum are removed:

4111111111111111 → ✅ Valid Luhn
4111111111111112 → ❌ Invalid Luhn (removed)

Year Formatting

When formatYear: true (default), 2-digit years become 4-digit:

12|25|123 → 12|2025|123

Remove Expired

When removeExpired: true, cards with past expiry are removed:

Current date: December 2024

4111111111111111|12|2024|123 → ✅ Valid (expires this month)
4111111111111111|11|2024|123 → ❌ Expired (removed)
4111111111111111|01|2025|123 → ✅ Valid (future date)

Limits

  • Maximum input size: 500KB (500,000 characters)
  • Credits: Free

Use Cases

  1. Data cleanup - Clean messy card lists from various sources
  2. Pre-processing - Prepare cards for checkers or other tools
  3. Deduplication - Remove duplicate entries from card lists
  4. Validation - Filter out invalid or expired cards

On this page