Is it okay to put personal data into ChatGPT if you mask it? Asterisks, pseudonyms and placeholders compared
· DataMint · 7 min read
"Mask personal data before entering it." It is a common line in company guidelines. But it does not say how. Every employee does it differently. One replaces the middle character of a name with an asterisk, another writes "Customer A," another just deletes it.
The answer first: if you masked it properly, you can enter it. But "properly" means that no one can tell who it is from that text alone, and the quality of the AI's answer varies a lot with the method. Let's apply three methods to the same sentences.
Same sentences, three methods
Here is the original. (The names and numbers are made-up samples. Korean names put the family name first: 홍 is the family name, 길동 the given name.)
Customer 홍길동 (010-1234-5678) asked for a refund to an account in the name of spouse 김영희.
Customer 홍길동 made the same request last week.1. Starring out part of the value
Customer 홍*동 (010-****-5678) asked for a refund to an account in the name of spouse 김*희.
Customer 홍*동 made the same request last week.This is the most familiar method. It is what we always see on receipts and screens, so it feels masked. In fact it masks the least. The family name, the last character of the given name and the last digits of the phone number remain. Anyone who knows the customer can tell who it is, and even a stranger can narrow it down by combining it with other information. It is meant to stop someone reading over your shoulder, not to make data fit to send outside.
2. Replacing with fake values
Customer 김민준 (010-0000-0001) asked for a refund to an account in the name of spouse 이서연.
Customer 김민준 made the same request last week.Replace each value with a different one that looks real. This is what the AI reads most naturally. It suits work where the sentences have to read smoothly, such as drafting a notice to a customer. There are two drawbacks. The person who receives the text cannot tell whether a name is real or replaced, and a number you made up at random may happen to be someone's real number. So fake values have to be picked from ranges that are not in real use.
3. Replacing with placeholders
Customer [Name_1] ([Phone_1]) asked for a refund to an account in the name of spouse [Name_2].
Customer [Name_1] made the same request last week.Write the type and a number where the value was. No trace of the original value remains. Yet the AI knows that [Name_1] and [Name_2] are different people, and that [Name_1] on the second line is the same person as on the first. Another advantage is that anyone can see the text has been masked.
| Criterion | Asterisks | Fake values | Placeholders |
|---|---|---|---|
| Trace of the original value | Remains | None | None |
| Same person stays the same | May collide by chance | Possible if you keep to it | Guaranteed by the number |
| Does the AI know the type of value? | Guesses | Knows | Stated |
| How natural the sentences are | Awkward | Natural | Slightly awkward |
| Is it visible that the text was masked? | Visible | Not visible | Obvious |
| Restoring the original values | Not possible | Needs a mapping table | Needs a mapping table |
We recommend the third as the default. Switch to the second only for work where the sentences have to read smoothly. The first is better not used when sending to AI.
Does masking make it no longer personal data?
One legal term needs a mention. This part is about Korea. Korea's Personal Information Protection Act (PIPA) (in Korean) has the concept of pseudonymized information. It is information processed so that a specific individual cannot be identified without the additional information needed to restore it, and the law still classifies it as personal information. The law also limits the purposes for which pseudonymized information may be processed without consent to statistics, scientific research, archiving in the public interest and the like (Article 28-2).
So be careful about concluding that "it is pseudonymized, so there is no legal issue at all." Masking in this post does not mean going through pseudonymization as a legal procedure. It has a practical meaning: making sure no value that identifies a person is in the text that goes to the AI service. Two points matter.
- No one should be able to tell who it is from the outgoing text alone.
- The mapping table that links original values to placeholders must not go out. If the table goes out with the text, the masking is pointless.
When masking names and numbers is not enough
Some text reveals who it is about even with the third method. That is when what identifies the person is not a value but the content.
- Title and organization. "CEO [Name_1] at the founding anniversary of A Electronics" tells you who it is even with the name masked.
- Rare circumstances. A rare disease, an unusual accident, or an incident reported in the news points to a person by itself.
- Combinations. Age, neighborhood and occupation are each common, but the three together become one person.
- Small populations. In the review material of a five-person team, teammates know who it is about even with the names removed.
Text like this needs a person to read it once more after a tool has masked the names and numbers. Where needed, blur it one level: the organization becomes "a manufacturer," the disease "a chronic condition."
Tips for masking by hand
- Same value, same placeholder. From the start of the text to the end, and in the follow-up conversation too, the same person must have the same number.
- Write the type.
[Account_1]is better than***. The AI writes proper sentences only when it knows what was there. - Keep dates and amounts. They usually do not identify a person, and without them the AI has nothing to work with. Dates of birth are the exception.
- Keep the mapping table on your PC only. Write it in a notepad, use it to restore the values after you get the answer, then delete it.
- Do not miss the same value written differently. "홍길동," "홍 길동" and "길동 씨" (the given name with an honorific) are all the same person.
You can do this by hand once or twice. Twenty times a day is hard. Once you add managing the mapping table and restoring the answer, all the time AI saved is gone.
DataMint Cover supports all three
Our DataMint Cover finds and masks personal data the moment text goes into an AI input box. You can choose the masking style.
![Cover popup with three masking styles to choose from: type tokens ([Phone_1]), partial masking (010-****-5678) and natural pseudonyms (a made-up name)](/blog/cover-popup.webp)
- Type tokens:
[Name_1],[Phone_1]. This is the default. - Natural pseudonyms: different values shaped like a person's name or a number. For numbers, Cover uses only values that are not in real use, such as ones filled with zeros, and it does not use a name that appears in the original text as a pseudonym.
- Partial masking: the asterisk method. You can choose it, but for the reasons above we do not recommend it when sending to AI.
The mapping table stays inside the browser tab
The mapping between original values and placeholders exists only in that tab's memory. It does not go to a server and is gone when the tab is closed. Paste several times in the same tab and the same value still gets the same placeholder, while new values continue the numbering.
Restoring
Hover over a placeholder in the AI's answer and you see the original value. Select and copy the answer and it is copied with the original values. You do not need to swap them back by hand with a mapping table.
Cover cannot mask the cases above where the content itself gives the person away. What Cover finds are values with a form, such as names, numbers and addresses. Text with a title or a rare circumstance needs a person's judgment.
Wrapping up
"Mask it before you enter it" is not followed unless you say how. Asterisks only give the feeling of masking. For text that goes to AI, use placeholders by default, give the same person the same number, and keep the mapping table from going out. Adding just these three lines to your guideline makes a difference.
A worked example on a call record is in Can you summarize customer calls with AI?
- #mask personal data for ChatGPT
- #pseudonymization
- #PII masking
- #generative AI privacy
- #prompt security
- #placeholder tokens