Card Number Masker (PCI)
Mask a card number for receipts and logs: first 6 + last 4, or last 4 only.
Tool inputs stay in your browser · optional AI search sends your query
Good to know: PCI DSS allows showing at most the first 6 and last 4 digits (BIN and last four). Never store full card numbers in logs.
How to use it (step by step)
- 1Fill in the boxes: “Card number”, “Style”, “Mask character”. Example numbers are already there so you can see how it works; replace them with yours.
- 2The result updates instantly as you type (on a phone it is below the boxes).
- 3The bold line is the main answer. Tap Copy next to any value to copy it.
Words to know
- PCI DSS
- The security rules businesses must follow when handling card numbers. One rule: never show or save the full number.
- Masking
- Hiding most of a number with dots or stars, like •••• 4242, so it cannot be misused.
- BIN / IIN
- The first 6–8 digits of a card. They tell which network (Visa, Mastercard…) and which bank issued it, like an area code on a phone number.
More in Cards & Payments
Luhn Check Digit CalculatorFind the last digit that makes a number pass the Luhn (mod 10) algorithm.Luhn Algorithm Step by StepSee exactly how the Luhn (mod 10) checksum is calculated for any number.Bulk Card Number ValidatorValidate a list of card numbers at once: network, length and Luhn, one per line.Card Brand DetectorIdentify the card network from the first digits: Visa, Mastercard, Amex, JCB, UnionPay and more.BIN / IIN Checker (Offline)Break down the first 6–8 digits of a card: network, industry (MII), lengths and IIN size.MII Lookup (First Card Digit)What the first digit of a card number means: banking, travel, airlines, petroleum…