본문으로 이동
Number Buffet

테스트용 카드 번호

결제 대행사가 공개한 샌드박스 BIN으로 만든 Luhn 유효 카드 번호 — 결제 양식과 테스트 모음을 점검하는 용도입니다. 실제 계정이 아닙니다.

3분 분량

설정

빠른 설정

One number per line. Duplicates are filtered out, so every row is distinct.

The brand decides the leading digits and the length. Both are part of the ISO/IEC 7812 numbering scheme, not a formatting choice.

The published list is short but universally recognised by test modes. The randomised mode keeps the same leading digits and fills the rest, which is what you want for bulk fixtures.

The same seed always returns the same list, so a shared link shows what you saw. Ignored when you ask for the published numbers only.

모양 미세 조정

먼저 이미지 옆의 설정을 고르세요. 아래 조절기가 그것을 다듬습니다.

Frame

A border drawn inside the edge of the image.

고급

결과

10개 값

4111 1138 1408 5337, 4111 1164 8325 6295, 3530 1149 3299 1112, 5555 5590 7977 7176, 6011 1182 1396 9409, 6011 1156 4438 4679, 5454 5450 8945 7521, 4242 4235 2230 4660, 4111 1184 2542 5160, 6011 0072 8730 7721

Leading digits come from the published sandbox prefixes (Visa: 411111, 424242, 400000, 401288; Mastercard: 555555, 510510, 545454, 222300; American Express: 378282, 371449; Discover: 601111, 601100; JCB: 353011, 356600); the middle digits are seeded-random and the final digit is the Luhn check digit. TEST VALUES ONLY. These are built from the sandbox BIN prefixes that payment processors publish for development. They satisfy the Luhn checksum and a checkout form’s format checks, they belong to no cardholder, they hold no funds, and a live acquirer declines them — they are not real accounts and cannot become real accounts. Never put a real card number into test data.


이미지 만들기

이 숫자를 꾸며 이미지로 내려받으려면 자바스크립트를 켜세요. 값 자체는 위에 나열되어 있습니다.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

아래의 배경 설명은 아직 번역되지 않아 영어로 표시됩니다.

테스트용 카드 번호 소개

Every card number you have ever typed ends in a digit that exists only to catch mistakes. The scheme behind it came from Hans Peter Luhn (1896–1964), a German-American researcher at IBM who was awarded more than eighty patents and who also gave information science Key Word in Context indexing and selective dissemination of information. His check-digit method reached the US Patent Office as patent 2,950,048, "Computer for Verifying Numbers", granted on 23 August 1960. The patent is for a small hand-held mechanical device that worked out the mod-10 sum for you; the doubled-and-reduced substitutions were not computed by the machine at all but simply printed in permuted order on its body. The algorithm went into the public domain and is now specified in ISO/IEC 7812-1.

Card numbering grew up around it. Diners Club issued the first widely accepted charge card in 1950 and BankAmericard followed in 1958, but it was ISO/IEC 7812, first published in 1989, that fixed what the digits mean: a leading major industry identifier, an issuer identification number of six digits — extended to eight in the 2017 revision — then the account identifier, then Luhn's digit. The register of issuer numbers is held on behalf of the American Bankers Association, with CUSIP Global Services taking over its administration in February 2024. When Mastercard ran short of room in its 51–55 block it announced a new 222100–272099 range on 3 November 2014, and those numbers went live on 14 October 2016 — which is why a well-maintained test suite now includes a 2-series card.

Test numbers themselves are a convention, not a standard. PCI DSS keeps live card data out of development environments, so every processor publishes a sandbox set, and a handful became universal through sheer repetition across gateway documentation. Nobody reserved them the way telephone numbering reserves drama numbers; they are simply numbers that were never issued, so that nobody's real card ends up in a fixture.

주요 성질

  • TEST VALUES ONLY — every number here is built from a BIN prefix published for sandbox use, corresponds to no cardholder and no funds, and is declined by live acquirers. It is not a real account and cannot become one.
  • Each value passes the Luhn check: double every second digit from the right, subtract 9 from any result above 9, sum everything, and the total is a multiple of 10. The last digit is the check digit.
  • The first digit is the major industry identifier — 3 is travel and entertainment, 4 and 5 are banking and finance. Visa begins with 4, Mastercard with 51–55 or 2221–2720, American Express with 34 or 37, Discover with 6011, 644–649 or 65.
  • Payment card numbers run from 8 to 19 digits. This page emits 16 for Visa, Mastercard, Discover and JCB and 15 for American Express, the lengths those brands use for ordinary consumer cards.
  • Luhn catches every single-digit error and nearly every swap of two adjacent digits, but not 09 ↔ 90, and not the twin errors 22 ↔ 55, 33 ↔ 66 or 44 ↔ 77.
  • Zero-padding a number on the left never changes its Luhn result, because the algorithm counts positions from the right and leading zeros add nothing to the sum.
  • The issuer identification number is the leading six digits, extended to eight by the 2017 revision of ISO/IEC 7812-1; the account identifier sits between it and the check digit.
  • A Luhn pass is not proof of anything about an account. Only an authorisation request to the issuer can establish that a card exists and has funds.

등장하는 곳

  • Processor sandboxes: Stripe, Adyen, PayPal and Braintree each publish a list of test card numbers, and 4111 1111 1111 1111 is accepted by test mode in practically every gateway.
  • Checkout forms run Luhn in the browser before anything is submitted, which is how a mistyped digit is flagged instantly instead of after a round trip to the acquirer.
  • The same algorithm guards identifiers well outside payments: IMEI numbers on mobile handsets, SIM card ICCIDs, Canadian Social Insurance Numbers and US National Provider Identifiers all end in a Luhn check digit.
  • QA fixtures and CI pipelines: since PCI DSS keeps real card data out of development environments, seeded test numbers are what end-to-end checkout tests actually run against.
  • Fraud screening uses a Luhn pass as the cheapest possible first filter — it throws out garbage before an authorisation is attempted, and that is the whole of its job.

이 생성기 사용법

생성된 값은 위쪽에 표시되고 옆에 복사 단추가 있습니다. 이미지로 만들려면 이미지 만들기의 스타일에서 모양을 고르고, 내보내기 크기를 정한 뒤 PNG·JPEG·WebP로 내려받으세요. 모두 브라우저에서 그려지므로 생성한 내용이 서버로 전송되지 않습니다.

작업하는 동안 주소창이 갱신되므로, 링크는 항상 지금 보이는 상태를 그대로 재현합니다. 특정 수열을 공유하거나 설정을 저장해 두기에 좋습니다. 값을 일반 텍스트로 가져가려면 복사를, CSV·JSON·NDJSON·SQL·XML이 필요하면 데이터 내보내기를 사용하세요.

출처

이 페이지의 역사적 설명은 위에 나열한 공개 라이선스 자료를 바탕으로 합니다. 잘못된 내용을 발견하셨나요? 알려주시면 바로잡겠습니다.