BytePlainlab
Discuss Tech 交流技术
Runs in your browser Luhn-checked card numbers

Mask Personal Data Before You Paste It Into a Chatbot

Before a contract or a support thread goes into a public AI chat, the obvious identifiers should come out. This experiment masks five kinds of them in your browser, and is explicit about the ones it cannot see.

Try it

Your text stays in this page

What it masks, in order

  1. Email addresses become [REDACTED_EMAIL].
  2. US Social Security numbers in the 123-45-6789 form become [REDACTED_SSN].
  3. Card numbers: runs of 13 to 19 digits (spaces or dashes allowed) are masked only when they pass the Luhn check, so most order and invoice numbers stay readable.
  4. Phone numbers in US and common international shapes become [REDACTED_PHONE].
  5. IPv4 addresses become [REDACTED_IP].

The masking runs in this page's JavaScript; the text is never sent to a server. It is a first pass, not a compliance control: read the output before you paste it anywhere. Missed something it should catch? Tell me at hi@byteplain.com.

What this experiment does not handle 这个实验不处理什么

  • Names, street addresses and free-text identifiers are not detected.不识别姓名、街道地址和其他自由文本形式的身份信息。
  • Any 10-digit number in phone-number shape is masked, including some order numbers.任何形似电话号码的 10 位数字都会被抹掉,包括部分订单号。
  • Card numbers with a typo fail the Luhn check and are left as they are.输错一位的卡号通不过 Luhn 校验,会原样保留。