How to Redact a PDF Properly So Hidden Text Can't Be Recovered

Why black boxes often fail to redact PDFs, how true redaction removes the text underneath, and a step-by-step method to redact and verify a document.

Updated September 29, 2026 6 min read

Use the free Redact PDFBlack out text and areas in a PDF for good, with search-and-redact

You need to share a document but part of it must stay private: a client's account number, a colleague's home address, salary figures, or a name in a complaint. The instinctive fix is to draw a black rectangle over the sensitive part and save. The page looks redacted. Very often, it is not.

This guide explains why "covering" and "redacting" are different things inside a PDF, how to redact a file properly in your browser, how to check the result before you send it, and which built-in tools can and cannot do the job.

Covering is not redacting

A PDF page is built in layers. The page content, meaning text, fonts and images, is one layer. Comments, highlights, shapes and stamps are annotations that sit on top. When you draw a black box with a markup or comment tool, you add an annotation. The words underneath are still in the page content.

That means anyone who receives the file can:

  • select the area and copy the text into an email;
  • search the document for the hidden name and find it;
  • run a text extraction tool and read everything;
  • delete or move the box in any PDF editor.

Highlighting text in black, placing a black image over it, or changing the text colour to match the background all have the same weakness. Even "flattening" a black box into the page often just paints a rectangle on top of text that still exists.

Proper redaction must remove the underlying content, not hide it. There are two ways to do that:

  1. Content-level removal: a professional editor deletes the specific text characters and image pixels under the redaction and leaves the rest of the page editable.
  2. Rasterisation: the page is rendered to an image with the black boxes painted into the pixels, and the page is rebuilt from that image. No text, fonts or vectors remain on that page.

Our tool uses the second approach. It is simple and hard to get wrong, at the cost that redacted pages are no longer text-searchable.

Redact a PDF step by step

Redact PDF runs in your browser, so the sensitive original is never uploaded.

  1. Open Redact PDF and drop the file onto the box.
  2. On the page preview, drag to draw a black box over each area you want to hide. Use the page arrows to move between pages. Click the × on a box to remove it.
  3. To find text automatically, use Search & redact: type a word or phrase and press the search button to mark every match. Presets are available for Email addresses, Phone numbers and Long numbers (IDs, cards, accounts), and you can enter your own regular expression.
  4. Review every page. Search cannot find text inside images, on scanned pages or phrases split across lines, so add boxes by hand wherever needed. Cover signatures, stamps and photos manually too.
  5. Choose the Quality of redacted pages: 150 DPI for smaller files, 200 DPI as a balance, or 300 DPI for small print and documents that will be printed.
  6. Decide whether to Keep title and author. If you leave it off, all document metadata, bookmarks and attachments are dropped.
  7. Click Apply redactions & download.

Pages that contain no redaction boxes are copied unchanged and keep their selectable text. Only pages with at least one box are rebuilt as images.

How to verify a redacted PDF

Never send a redacted document without testing it. These checks take two minutes:

  1. Search for the redacted terms. Open the new file and search for a name or number you removed. It should not be found.
  2. Try to select the area. Drag across a black bar and copy. Paste into a text editor; nothing from under the bar should appear.
  3. Extract all text. Run the file through PDF to Text and search the output. This catches text a viewer might not highlight.
  4. Check the document properties. Title, author, subject and keywords can contain names. PDF Metadata Editor shows and edits them.
  5. Look beyond the page. Bookmarks, file attachments, form field values and comments can all contain sensitive text. When the tool does not keep metadata, these are removed, but check if you made further edits afterwards.

What else can leak

Redaction mistakes are rarely about the black bar itself. Common leaks include:

  • Context that identifies the person anyway. A job title plus a department plus a date can be as revealing as a name.
  • Bar length. A box that exactly fits a short surname hints at its length. Where that matters, make boxes a consistent width.
  • Unredacted copies elsewhere in the document. A name removed from the body may appear in a footer, a table of contents or an email signature on the last page. Search-based redaction helps here.
  • Earlier versions. If you previously sent an unredacted draft, redacting the next one does not recall it.

Other ways to redact

Professional PDF editors

Paid PDF suites include a dedicated redaction tool that removes content at the character level and can sanitise hidden data such as metadata and embedded files. If you redact often, need text on redacted pages to remain searchable, or work under a formal legal process, those tools are the better fit.

macOS Preview

Recent versions of Preview offer a redaction option in the markup tools. Test the result with the verification steps above before relying on it, as with any tool.

A crude but effective method is to add black boxes, then export every page to an image and rebuild the PDF. It works because nothing but pixels survives, but you lose text on every page, not just the redacted ones. PDF to JPG followed by Image to PDF does this; the dedicated tool is quicker and keeps untouched pages intact.

What does not work

Word processors' highlight or shading, drawing shapes in a comment tool, and the black marker in most annotation apps are all cover-ups, not redactions. Printing and rescanning does remove the text, but it lowers quality and is easy to forget on one page.

When redaction is not the right tool

  • If you need to remove whole pages, use Delete PDF Pages instead.
  • If you only need to stop editing or copying, password protection limits access but the content is still there for anyone with the password.
  • If you are removing reviewers' comments rather than page content, Remove PDF Annotations is the right job.

Frequently asked questions

Is drawing a black box over text in a PDF safe?

No. A drawn box is placed on top of the page, and the text underneath can still be selected, copied or extracted. The content must be removed, not covered.

Can redacted text be recovered?

Not if the redaction removed it. With rasterised redaction, the page contains only an image with the black bar painted in, so there is no text left to recover.

Why can't I search the redacted pages any more?

Pages that contain redactions are rebuilt from images, so they have no text layer. Pages without redactions keep their searchable text.

Which resolution should I choose for redacted pages?

200 DPI suits most office documents. Choose 300 DPI for small print or documents that will be printed, and 150 DPI when file size matters most.

Does redaction remove metadata?

The output is a fresh file, and unless you choose to keep the title and author, document metadata, bookmarks and attachments are dropped.

Try it now: Redact PDF

Loading tool…