Skip to content
Maskline home

How to mask personal information in text

Replace each personal detail with a placeholder such as [PERSON_1], keep a list of what each placeholder stands for, and share only the masked copy.

What counts as personal information

Anything that points to a real person or company. Some details name someone outright. Others only do when they are put together, such as a birth date, a town and a job title.

  • Names of people and organizations.
  • Email addresses, phone numbers and street addresses.
  • Dates of birth and other dates tied to a person.
  • ID numbers: passport, driving licence, tax, insurance, patient and case numbers.
  • Bank account and card numbers, and amounts of money.
  • Passwords, API keys and access tokens.
  • Internal names, such as a project or a client code.

Mask it by hand

  1. Copy the text into a new document, so the original stays as it was.
  2. Find each detail and replace it with a placeholder that says what kind it is, such as [PERSON_1] or [EMAIL_2].
  3. Use the same placeholder every time the same detail comes up, so the text still makes sense.
  4. Write down which placeholder stands for which detail, and keep that list to yourself.
  5. Read the masked copy once more from top to bottom before you share it.

This works for a short message. In a long text it is slow, and one missed name is enough to undo the rest.

Why placeholders work better than black bars

A black bar or "XXX" removes the detail and its meaning. A placeholder keeps the meaning: whoever reads [PERSON_1] and [PERSON_2] still knows two different people are involved. A placeholder can also be swapped back for the real detail afterwards, which a black bar cannot.

Mask it with Maskline

  1. Paste your text into Studio or open a file.
  2. Every detail found is marked in the color of its kind and replaced with a placeholder.
  3. Keep or mask each item, and add any word it missed.
  4. Copy the masked text and use it wherever you need it.
  5. Paste the reply into Restore to put the real details back.

The masking runs in your browser. Your text and the list of placeholders stay on your device and are never sent to our servers. Free masks 3 texts a day of up to 3,000 characters each and opens 3 files a day. Paid plans have no limits.

No detector catches everything. Look through the masked copy before you share it.

Start masking for free.

Get started free