1001Ferramentas
🕵️Text

Anonimizador PII

Mascara CPF, e-mail e telefone do texto com regex.

Texto mascarado

Strip CPF, email and phone before sharing

You need to paste a log excerpt, a support ticket or a spreadsheet row somewhere that is not yours: a helpdesk thread, a team chat, an AI prompt. Buried in it there are Brazilian CPF numbers, customer emails and phone numbers. Deleting them by hand works for the first two, and on the third one you miss one. This page sweeps the text and swaps those three kinds of data for fixed placeholders.

Three regular expressions run in order: CPF first, then email, then phone. CPF is caught with or without punctuation, including eleven bare digits. The phone pattern accepts an area code in parentheses, the extra leading nine and either a hyphen or a space. That is where the catch lives: any run of ten or eleven digits is read as a phone, so a long order ID or a card typed in blocks comes out chopped in the middle.

Read the output before you send it anywhere. CNPJ, postal codes, ID numbers, plates, IP addresses, birth dates, names and street addresses are left untouched, and a card number is only hit by accident. Treat this as a first pass, not as your data protection control. Everything runs in your browser and nothing is uploaded. There is no copy button, so select the result text yourself.

Frequently asked questions

Does it mask CNPJ numbers?
No. The CPF pattern may clip part of an unpunctuated CNPJ by chance, but the 00.000.000/0001-00 format goes through untouched. Check it by hand.
Can I change the mask characters?
No, the replacements are fixed strings shaped like the original data. For reversible pseudonyms you need something else.
Is my text uploaded anywhere?
No. The masking runs in JavaScript on the page itself; nothing is sent or stored.

Related Tools