Documents
How to anonymize a document before sharing it
By Tinta Tech7 min readLeer en español
The short answer
To anonymize a document you have to remove or replace personal data in the text itself, not cover it up. Work on a copy, swap each item for a generic placeholder, export to a new file, clear the metadata, and check the result by selecting and searching the text. A black box drawn over a PDF leaves the text underneath intact, and anyone can copy it.
- Drawing a black box or highlighting in black deletes nothing: the text stays underneath and can be selected, copied and searched.
- Data also leaks through metadata, comments, tracked changes, hidden layers and the file name.
- Removing the name is not enough if indirect details, taken together, still point to one person.
- The safe method is to replace the text, export to a new file and verify the result.
- Automatic detection saves time, but the final review is always yours.
Why doesn't a black box actually redact the text?
Because the box is a shape placed on top of the text, not a change to the text. In a PDF or a word-processor file, the words are still there underneath. Drag the cursor over the area, copy, paste somewhere else, and they are readable again.
The same goes for black highlighting, or for changing the font color to match the background. The data stops being visible, but the file keeps it, and it also turns up when someone uses the search box in a PDF reader.
The test is simple: open the file, select all, copy, and paste into a plain text editor. If the data shows up, it has not been removed.
Where else can a document leak personal data?
The visible text is only part of the file. These are the usual leaks:
- Document metadata: author, organization, software used, creation and modification dates.
- Comments and tracked changes: deleted text can survive in the revision history, along with the name of whoever edited it.
- Hidden layers and objects: text outside the visible margin, switched-off layers, hidden sheets, data embedded in a chart.
- The file name: a file named after the person undoes all the work.
- Low-quality blur or pixelation: lightly blurred text can remain legible or be reconstructed. Only a solid block on a flattened image removes the information.
- Headers, footers and stamps: they often repeat case numbers, names or signatures on every page.
Photos placed in a document carry their own metadata as well. If that applies to you, see how to remove metadata from photos.
What personal data should you remove from a document?
Everything that could identify a person, directly or in combination with something else. It helps to sort it into groups.
| Type | Examples | Why it matters |
|---|---|---|
| Direct identifiers | Full name, national ID or passport number, signature, photograph | They identify the person on their own |
| Contact details | Home address, phone number, email address | They let someone locate or contact the person |
| Financial and property data | Account numbers, card numbers, license plates | They are tied to an owner and enable fraud |
| Sensitive data | Diagnoses, treatments, medical leave | Exposure causes harm that is hard to undo |
| Indirect identifiers | Date of birth, job title, employer, small town, family relationships | Combined, they narrow the group down to one person |
The last group is the one people forget. "The principal of the only school in town" contains no name, yet it points to a specific individual. Ask yourself whether someone who knows the context could recognize the person from what you left in.
What is the difference between anonymization and pseudonymization?
Anonymizing means leaving the document in a state where it can no longer be linked to a person, not even by whoever prepared it. Pseudonymizing means replacing the data with codes or labels, such as "Person A", while keeping somewhere else the key that maps back to the real data.
The distinction has consequences. A pseudonymized document remains sensitive for as long as that key exists, or as long as indirect details let a reader work out who is who. If you have to comply with a data protection rule, what it requires is set by the law where you are, not by what you call the file.
How do you redact a document or PDF by hand, step by step?
One principle covers it: replace the text, do not cover it. This method works in any word processor.
- Work on a copy. Store the original separately and leave it alone.
- List what you will remove. Read the whole document and note names, numbers and indirect details.
- Replace, do not cover. Use find and replace to swap each item for a generic placeholder, such as [NAME 1] or [ADDRESS]. Use the same placeholder for the same person so the text still makes sense.
- Search for variants. Surname only, initials, nicknames, the name in capitals, a number with and without separators.
- Accept all changes and delete comments. Go through headers, footers, footnotes and tables.
- Export to a new file. Paste the clean text into a blank document or export a fresh PDF rather than saving over the old one.
- Clear the metadata and rename the file.
- Verify. Select all, copy, paste into a text editor, and search for every item on your list.
If all you have is a PDF and not the editable source, use your PDF editor's true redaction feature, the one that deletes content, not the drawing tool. If you do not have one, cover the data with solid blocks, convert the pages to images, and confirm the text can no longer be selected.
Can you trust automatic detection of personal data?
As a first pass, yes; as the final review, no. Software is good at finding things with a recognizable shape, such as email addresses, phone numbers or ID numbers. It struggles with anything that depends on context: a surname that is also an ordinary word, a nickname, a misspelled name, or an indirect identifier.
It errs in both directions. It can miss a real item, and it can flag something that is not personal, such as a street or institution name you need to keep. That is why the output always needs a human read before it is shared.
What our tool does
The anonymize document tool combines rules and AI to find names, ID numbers and other personal data. Before it hands anything back, it shows a review screen listing every finding, where you can untick the ones you want to keep and add any that were missed.
The result is a plain-text version with placeholders such as [NAME 1] in place of each item. It does not keep the original layout: if you need the same formatting, you will have to paste the text into your own template. It also reads scanned PDFs and photos of documents using text recognition, and the uploaded file is deleted when processing ends.
To confirm afterward what changed between the original and the clean version, you can compare the two documents.
What should you check before sending a redacted document?
- Select all and paste into a text editor: nothing from your list appears.
- Searching for each name, surname and number returns no results.
- No comments, pending changes or hidden text remain.
- The metadata shows no author or organization.
- The file name identifies no one.
- The indirect details left in do not let a reader work out who it is.
- Headers, footers, signatures, stamps and images have been reviewed.
- Someone unfamiliar with the matter read the result and recognized no one.
What mistakes do people make when redacting a document?
- Covering instead of deleting. The most common mistake, and the easiest to test for.
- Working on the original. Without a backup you cannot go back or compare.
- Removing only the full name. Initials, stray surnames and indirect details stay behind.
- Forgetting the metadata and the file name.
- Pixelating or blurring text. It is not a safe way to remove information.
- Trusting automatic detection without reviewing it.
- Sending the wrong file. Name the clean version clearly and keep it apart from the original.
Frequently asked questions
- How do you redact a PDF properly?
- Use a redaction feature that deletes the content, not a box drawn on top. Then save the result as a new file and confirm the redacted text cannot be selected, copied or found with search.
- How can I tell if redacted text can be recovered?
- Select everything in the file, copy it and paste it into a text editor. If the data appears, or the PDF reader's search finds it, it is still inside the file.
- Is deleting the person's name enough?
- Not always. Details such as job title, town, date of birth or a family relationship can identify someone when combined. Consider whether a reader who knows the context could recognize the person.
- Is pixelating or blurring text safe?
- It is not reliable. A light blur can leave text legible or allow it to be reconstructed. To remove information from an image, use a solid block and save a new, flattened image.
- Does the tool keep the original document's formatting?
- No. It returns a plain-text version with placeholders in place of personal data. If you need the original layout, that text has to be formatted again.
- Can I anonymize a scanned document or a photo?
- Yes, but the text has to be extracted first with optical character recognition. Our tool does this for scanned PDFs and photos of documents; review those more carefully, because a poor-quality image produces reading errors.
This article is general information, not legal advice. If you need to submit evidence in a lawsuit or official process, consult a lawyer in your country. Found a mistake? Write to hola@tintatech.com.
Keep reading
Documents
How to convert a PDF table or invoice to Excel
Copying a table from a PDF into Excel scrambles it. Your options for text PDFs, scans, and photos, and what to check so errors don't slip through.
8 min · October 13, 2026
Documents
How to compare two versions of a document and see what changed
Reading two versions side by side misses small edits. How to compare two Word or PDF documents, which contract clauses to check first, and what to avoid.
7 min · October 13, 2026