How to redact a PDF so the text is really gone
Every SSN and account number deleted from the file, not just hidden under a box.
A real run on 13 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. The waiting is sped up; it took 1 min 38 s in real time.
The short answer.
Use a real redaction tool, not a black rectangle: a drawn box leaves the text underneath, where anyone can copy it out. On a Mac, Preview's Tools, Redact removes the text it covers; on Windows, the free PDF24 Creator or Acrobat's Redact tool does. Then search the saved copy for a number to prove it's gone. Stella (stella.sh) finds every number you name, deletes it from a copy and checks it can't be pulled back out.
Stella does this on Windows, Mac and Linux.
What happened.
36 numbers removed, a Social Security number and an account number for each of 18 new hires, in about 1 minute 40 seconds. Checked afterwards against an answer key written before the run: none of the numbers can be found in the copy's text or anywhere in the file's bytes, every spot is covered by a black box, all 18 names and the other details are still readable, the page count is the same and the original is unchanged.
The payroll PDF is made up for this run: a fictitious company, and SSN-shaped numbers from a range that's never issued. The work is sped up 4×.
How Stella does it.
- Opens the PDF you describe (“the new hires PDF in my Downloads”) and finds every Social Security and bank account number on all five pages
- Deletes them from a copy of the file rather than painting over them, so nobody can copy or search them out from under the black boxes
- Keeps everything else readable: names, roles and start dates
- Checks its own work: tries to pull the numbers back out of the file, and renders page 1 to see that the boxes sit in the right places
- Leaves the bank routing number visible and explains why (it's the same for all 18 people and only identifies the bank), offering to black it out too
The prompt.
I need to share the new hires PDF in my Downloads with our team leads, but they shouldn't see anyone's social security number or bank account number. Black those out.
This is the exact prompt from the recording. If your files are somewhere else, say where.
Do it yourself.
Work on a copy
Duplicate the PDF first (File, Duplicate in Preview, or copy and paste it in File Explorer). Redaction can't be undone in the saved file, so keep the original somewhere safe and only share the copy.
On a Mac: Preview's Redact tool
Open the copy in Preview (macOS 11 or later), choose Tools, Redact, and drag across each number. Preview marks the areas and, when you save, removes the text under them. Go page by page: there's no way to search and redact every match at once.
On Windows: PDF24 or Acrobat
The free PDF24 Creator has a Redact tool that works offline: draw boxes over the numbers and save. In Adobe Acrobat (paid), choose Redact, mark each number or use Find text & redact to mark every match of a pattern, then Apply.
Never just draw a black box
Rectangles, a black highlighter or black text shading only hide the number on screen. The text is still in the file, and select-all, copy and paste reveals it. Printing to an image PDF does flatten it, but every page loses its searchable text.
Prove it's gone
Open the saved copy, press Cmd-F or Ctrl+F and search for the last four digits of a few numbers. Then select the text around a box and paste it into a note. If any digit turns up, the redaction didn't take.
Where it stops.
- The test PDF had real text. Scanned pages are pictures, so Stella would need to read them with OCR before it could find the numbers, which wasn't part of this run; check scanned pages by eye.
- It decides what to remove from your description. In the recording it kept the routing number on purpose and said so. Name everything you want gone (dates of birth, home addresses) to be safe.
- The PDF's text goes to the AI model you use in Stella so it can find the numbers, which is the very data you're protecting. For highly sensitive files, choose your model accordingly.
- Recorded on Linux. Stella installed a PDF library (PyMuPDF) for the redaction, and does the same on a Mac or Windows PC, which adds a little time the first run.
Questions.
Why doesn't a black box redact a PDF?
Because the box is a separate layer drawn on top. The text under it is still in the file, so anyone can select, copy or search it. Real redaction deletes the content under the box and then burns the box into the page.
Can I redact a PDF for free?
Yes. Preview on a Mac and PDF24 Creator on Windows both redact for free and offline. Stella is free with the ChatGPT or Claude plan you already have.
Does redaction remove hidden data too?
Preview and PDF24 remove the marked text. Acrobat also has Remove Hidden Information for metadata, comments and attachments. In the recording only the numbers were removed; ask if you want the file's metadata cleared as well.
What if the PDF has a password?
Remove the password first with the one you have, then redact the unlocked copy. Photos have their own privacy leak: remove the location from photos before you post them.
Is Stella free for this?
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.
Can I control what Stella changes on my computer?
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.
Checked against these sources on 13 November 2026.