Anonymize CPFs in List
Replace CPFs with masked version (123.***.***-45), keeping only first 3 and last 2 digits. Per LGPD practice.
—
Masking CPFs before sharing a file
You have to send a customer list to another team, attach a report to a support ticket or paste part of a spreadsheet into a chat, and the full CPF cannot go along. Paste the block of text and every CPF comes out as 123.***.***-09, with consistent punctuation even when the source had none. The result updates as you type.
Here is the part nobody mentions: the mask keeps the first three digits and the last two, and those last two are the check digits, computed from the first nine. Six digits stay hidden, a million combinations, but only about ten thousand of them are consistent with the check digits left in plain sight. That is pseudonymization: it lowers exposure, it does not make the number unrecognizable.
Review the output, because the search looks for eleven digits in a row and never verifies that they form a valid CPF. A Brazilian mobile number with area code also has eleven digits and becomes 119.***.***-21. An unpunctuated CNPJ, fourteen digits, comes out worse: the first eleven get masked and the rest trails behind; with dots and slash it passes untouched. The mask is fixed, and everything happens in your browser.
Frequently asked questions
Does this make the list anonymous under Brazilian LGPD?
Does the tool validate the CPF before masking it?
Are the CPFs I paste sent to a server?
Related Tools
Reverse List
Reverse the order of lines in a list or text. Paste the list and get the lines in reverse order instantly.
Extract Emails from Text
Find and extract all email addresses from a text or copied web page. Option to remove duplicates. Processed in the browser.
Repeat Text
Repeat a text or line N times with a configurable separator: new line, comma, space or any custom character.