Skip to content
YardMaths PDF

Redacting a PDF the right way: remove the text, don't just hide it

Updated ยท 5 min read

To redact a PDF safely, the sensitive text must be deleted from the file, not just covered. A black rectangle, a black highlight, or white text on a white page only changes how the page looks. The words are often still in the file, and anyone can copy them out. Our redact PDF tool removes the content by turning the pages you redact into flat pictures, so there is no hidden text left underneath.

This guide explains why simple covering fails, the steps to redact properly, how to test your result before you send it, and the other places where private details can hide. Everything runs in your browser, so the document never leaves your device.

Why a black box does not protect you

A PDF is built from layers. When you draw a black shape on top of a line of text, you add a new layer, and the text underneath is untouched. Open the file, select all, copy, and paste into a plain text document, and the "hidden" words can show up.

This has gone wrong in public more than once. An American Bar Association article on redaction failures describes a 2019 court case in which lawyers filed documents whose black-box redactions could be defeated by copying and pasting the covered passages. The filings were removed and replaced with properly redacted versions. The same article mentions a 2008 audit of federal court records that found Social Security numbers covered by black boxes but still present underneath.

Guidance from the U.S. National Security Agency for Acrobat users makes the same point from the other side. Marking an area for redaction only outlines it. The content is removed when the redaction is actually applied.

  • Drawing a black rectangle over the text does not remove it.
  • Highlighting text in black does not remove it.
  • Changing the font color to white is described by Adobe as unreliable for keeping information private.
  • Placing a picture or a white box over a paragraph hides it from view only.

What real redaction does

Real redaction deletes the content. Adobe says that when you apply redaction in Acrobat, a pop-up warns that the redacted information will be permanently deleted and cannot be retrieved. That is the goal: after you save, there is nothing left to recover.

Our tool reaches the same goal in a different way. It redraws every page that has a box as an image, at 150 or 300 dpi, with your black boxes burned in. A picture of a page has no text layer, so there is nothing to copy. Before the file is offered, the tool checks that the redacted pages contain no text at all. This comes with trade-offs you should know before you start.

  • By default every page becomes an image, the safest choice, so you cannot select or search the text anymore, including the text you did not redact. The option Keep them as they are leaves the pages without boxes untouched, but then any text hidden on them (white text, tiny text, text under pictures) stays too.
  • Links and form fields on the redacted pages are dropped, and the title, author, bookmarks, and attached files of the original are not copied into the new file.
  • The new file may be larger or less sharp than the original, depending on the pages.
  • You cannot undo a redaction in the new file. Keep your original in a safe place and send only the redacted copy.

How to redact a PDF in your browser

Follow these steps with the redact tool. Nothing is uploaded, and your original file stays unchanged on your device.

  1. Open the redact PDF tool and choose your file, or drag it onto the page.
  2. Drag on the page preview to draw a box over every word, number, signature, or image you need to remove. Use Previous and Next to go through every page, or press Black out this whole page. Cover each place where the information appears, including headers, footers, and page margins.
  3. To catch a word everywhere at once, type it under Find text to redact and press Mark every match. It finds only real text on one line, not a word split across lines or text inside a scanned picture, so check each page and draw boxes over anything it missed.
  4. Look closely at small print and check that each box fully covers what you want to hide, with a little room on every side.
  5. Choose what happens to pages without boxes and the image quality (Standard, 150 dpi, or Sharp, 300 dpi), then press Redact PDF and download the new PDF. It is saved as a separate file, so the original is not touched.
  6. Test the result with the checks in the next section before you share it.

Test your result before you send it

The American Bar Association article recommends testing a redacted file by copying and pasting the redacted area into a text document. It also recommends keeping an unredacted copy, or saving the redacted version under a new name, so you can still reach the original information. Use this quick routine every time.

  1. Open the new file in a different PDF viewer from the one you used to create it.
  2. Press Select All, copy, and paste into a plain text editor. A properly redacted file should give you no readable text from the hidden areas.
  3. Use the search function to look for a word you redacted. It should find nothing.
  4. Look at every page one last time at 100 percent zoom to make sure no box is out of place.
  5. Check the file name. A name like "John-Smith-medical-form" can give away what the pages hide.

Other places private details can hide

Page content is not the only thing a PDF carries. The NSA guidance lists the kinds of hidden data that a full sanitizing step removes: metadata, embedded content and attached files, scripts and links, hidden layers, bookmarks, stored form data, comments, and leftovers from earlier saves.

Check the document properties of your new file, too. Fields such as author and title can reveal names or project details. Our guide to viewing and editing PDF metadata shows what to look for.

If you only need to drop whole pages that hold private details, you can delete pages from a PDF instead of blacking out parts of them.

Limits of this method

Redaction is only as good as your marking. If a name appears in a footer on page 9 and you miss it, it stays visible. Read the whole document once with the sole purpose of finding things to hide.

Context can also give things away. If you remove a name but leave the job title, the employer, and the date, a reader may still work out who it is. Decide what must be hidden, not just the obvious words.

Finally, a redacted PDF is a new file. If the original has already been emailed or posted, redacting a copy does not pull the original back.

If you are deciding where to process a sensitive file in the first place, read are online PDF tools safe for sensitive documents.

Questions people also ask

Can someone remove a black box from a redacted PDF?

It depends on how the box was made. If it is a shape drawn over live text, the text is still in the file and can often be copied out. If the content was truly removed, as it is when our tool converts the pages to images, there is nothing underneath to reveal.

Does turning the text white hide it for good?

No. Adobe describes changing the font color to white as an unreliable way to keep information private. The text is still in the file and can still be selected.

How can I check that my redaction worked?

Open the new file in another viewer, select all, copy, and paste into a plain text editor. Then search for a word you redacted. If nothing comes up, the text is gone.

Will my redacted PDF still be searchable?

Not with our default setting. The pages become images, so the file has no text layer. Running text recognition on it later would add a text layer back, so do that only on a copy and check the result carefully.

Should I keep the original file after redacting?

Yes, in a secure place. Redaction is permanent in the new file, so the original is the only way to get the hidden information back. Just be careful never to send the original by mistake.

Sources

Updated . Written for YardMaths PDF Tools: free tools that run in your browser.