If you've ever drawn a black box over a name, SSN or account number and sent the PDF, the data is probably still in the file.

Most "redaction" is a rectangle painted on top of the page. The text underneath is still in the PDF's content stream, so anyone can select it, copy it, or pull it out with one command. Contracts, invoices, HR files, bank statements and court exhibits get leaked this way all the time.

Here's how to test any PDF in 10 seconds, what real redaction has to remove, and a way to do it in the browser without uploading the file anywhere.

1. Test a "redacted" PDF in 10 seconds

No tools: open the PDF, press Ctrl/Cmd+A, copy, and paste into a plain text editor. If the "hidden" text shows up, it was never removed.

From a terminal (poppler-utils):

# Dump every bit of text the PDF still contains pdftotext redacted.pdf - | grep -iE "123-45-6789|jane@client.com" # Quick check for anything that looks like an SSN or an email pdftotext redacted.pdf - | grep -nE "[0-9]{3}-[0-9]{2}-[0-9]{4}|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+" 

Any hit means the black box is cosmetic.

2. Where sensitive data hides besides the visible text

Even if the page text is clean, check these before you send:

  • Document properties and XMP metadata: author, title, subject, the software used. pdfinfo -meta file.pdf shows them.
  • Comments and annotations: sticky notes and review comments often quote the exact thing you redacted.
  • Form field values: a filled form keeps its values even if you cover the field.
  • Links and bookmarks: a mailto: link or a bookmark titled with a client's name.
  • Images: a scanned signature or a photo of an ID is pixels, not text, so a text search won't find it.
  • Attached files: a PDF can carry other files inside it. pdfdetach -list file.pdf lists them.

3. What real redaction has to do

  1. Remove the text, image pixels, drawings and form fields under each mark, not just cover them.
  2. Keep the rest of the page real, so the document is still selectable, searchable and accessible.
  3. Clean the side channels you choose: metadata, comments, and links, form values or bookmarks that contain the redacted text.
  4. Let you verify the result (run the test from step 1 again).

4. Doing it in the browser with Redact PDF

I build FreeDailyPro, and Redact PDF is the tool we made for exactly this. The file is processed locally in your browser; it isn't uploaded to a server.

What it does:

  • Removes the text, picture pixels, drawings and form fields under each box you mark, and draws a black bar in their place. The rest of the page keeps its real, selectable text, fonts, links and bookmarks.
  • Find & Mark: type a name or account number and it marks every match across the document, including a name split across text pieces.
  • Detectors: email addresses, phone numbers, card numbers, SSN-style numbers, EIN-style numbers and likely names (a best guess, so review every mark).
  • Custom patterns: up to 5, including simple regular expressions.
  • Optional cleanup: clear document metadata, remove comments, and remove links, form values and bookmarks that contain the searched text.

Honest limits, so you know what to check:

  • Scanned pages are pictures, so search can't read them. Draw boxes by hand, or run OCR PDF first.
  • If content under a box can't be cut out exactly (a curved drawing, a gradient, an unusual font encoding), that page is turned into a picture with the box painted black. A notice names the page and the reason.
  • Attached files inside the PDF are not inspected or removed; the summary counts any that remain.
  • Look over the result before you send it.

Try it now

  1. Open Redact PDF.
  2. Drop in your PDF.
  3. Type a name or number and click Find & Mark, or tick the detectors, or draw boxes.
  4. Turn on "clear document metadata" and comment removal if you need them.
  5. Apply, download, and rerun the pdftotext | grep test above. It should come back empty.

No login. You get daily trial uses, then a day pass or a monthly plan if it becomes part of your workflow.

More:

How do you handle redaction today: a dedicated desktop app, a script, or the black-box-and-hope method? I'd like to hear what breaks for you.