Skip to content
cosmodev ~/tools/credit-card-validator

신용카드 번호 검증기

Validators & Testers

Luhn 체크섬으로 신용카드 번호를 검증하고 발급 브랜드(Visa, Mastercard, Amex, Discover, Diners, JCB, UnionPay, Maestro)를 감지합니다. 100% 클라이언트 동작 - 아무것도 전송되지 않습니다.

결과
결과를 보려면 카드 번호를 입력하세요.
브랜드
알 수 없음
Luhn 검사
실패 ✗
유효 여부
아니요 ✗

Runs 100% client-side - your card number never leaves your browser. Test numbers only.

(문서는 영어)

What it does

The Credit Card Validator checks whether a card number is structurally and mathematically valid using the Luhn algorithm, and identifies the issuing brand (Visa, Mastercard, American Express, Discover, Diners Club, JCB, UnionPay, Maestro) from the number’s prefix and length. This is exactly the kind of front-end check you’d run before submitting a payment form. Everything runs 100% client-side - the number never leaves your browser, so it’s safe even for real cards (though this tool is intended for test numbers).

How to use it

  1. Type or paste a card number into Card number (spaces and dashes are ignored).
  2. Hit Sample to load a known-valid Visa test number.
  3. Read the Luhn check and Valid results, plus the detected Brand.
  4. Copy the formatted number if you need it elsewhere.

Examples

Valid Visa test number

Input: 4111 1111 1111 1111 → Brand Visa, Luhn Pass, Valid Yes.

Invalid (off-by-one)

Input: 4111 1111 1111 1112 → Luhn Fail, Valid No.

American Express (15 digits)

Input: 3782 822463 10005 → Brand American Express, formatted 3782 822463 10005.

Good to know

  • Private: all validation is local - nothing is transmitted or stored.
  • Luhn ≠ real card: the Luhn checksumchecksumA short digest computed from a block of data, compared after transfer or storage to detect corruption. Changing one bit changes the checksum. confirms the number is well-formed, not that the account exists or has funds.
  • Related tools: IBAN Validator, HashHashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible. Type Identifier.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.