Blog

Security

How to redact a PDF properly (and check that it worked)

A black box drawn over text usually leaves the words in the file. Here's how real redaction works, what people often miss, and how to check the result before you share it.

MD Rakib Shekh · Founder & Lead Architect

· 6 min read

On this page

You need to share a bank statement, a contract or an HR file, but parts of it are nobody else's business: an account number, a name, a home address. The usual trick is to draw a black box over them. In most PDF editors, that box only covers the text. The words are still in the file, and anyone can copy them out.

Proper redaction deletes what's under the box. Here's how to do it, what people usually miss, and how to check the result before you send it.

Why a black box isn't enough

A PDF page is built in layers: text, images and drawings, with comments and shapes on top. When you add a black rectangle in an ordinary editor, it becomes one more layer sitting above the text. The page looks redacted, but:

  • Selecting the area and pasting it into a note shows the hidden words.
  • Searching the file finds them.
  • Screen readers and copy tools can still read them.
  • Anyone with an editor can move or delete the box.

The same problem shows up in other forms:

  • Black highlighter in Word, then saving as PDF. The text is still there, just on a black background.
  • White boxes or white text placed over the content.
  • Cropping a page. The cropped area is often still in the file, just outside the visible edge.
  • Printing to PDF or "flattening". This merges the box into the page, but the text underneath is often still stored in the file.

On a scanned page, the words are part of a picture. A box drawn on top hides them on screen, but the full picture is usually still in the file underneath.

What real redaction removes

Real redaction changes the content of the file, not just how it looks. When you download from Pagestro's Redact PDF tool:

  • Text under each box is deleted.
  • The part of any image under a box is wiped.
  • Drawings that sit entirely inside a box are removed.
  • Form fields and comments under a box are dropped, along with their values.
  • Document metadata, such as the title and author, is cleared.

Copy and search tools then find nothing in those areas. The file is processed in your browser, so the document you're redacting is never uploaded.

How to redact a PDF with Pagestro

Step 1. Open Redact PDF and add your document. It handles files of up to 100 pages.

Step 2. Draw boxes. "Shape Area" lets you drag a box over anything: text, a photo, a signature. "Select Text" snaps the box to the lines of text you drag across.

Step 3. Search for repeated details. Type a name or number into search, and Pagestro lists every match. You can cover them one at a time or all at once.

Step 4. Pick a colour. Black, white and red boxes all remove the same content; only the colour left on the page changes. Black makes it obvious that something was removed, which is usually what you want.

Step 5. Download, then check the result (see below). Pagestro saves a new file, so your original stays as it was on your device.

Tip: Draw each box a little larger than what you're hiding. Drawings and lines are only removed when they sit fully inside a box, and a margin around text costs nothing.

Search only finds text that the PDF actually contains. On a scanned page, draw the boxes by hand. Running OCR first adds a text layer you can search, as our guide to making a scanned PDF searchable explains, but check that each box lines up with the word in the picture.

A checklist of what to redact

Before you start, read the whole document and list everything that needs to go. Common items:

  • Names, signatures, home addresses, phone numbers and email addresses
  • Account, card, tax and ID numbers
  • Dates of birth
  • Photos, logos or letterheads that identify a person or company
  • Barcodes and QR codes, which can hold personal data
  • Headers, footers, page margins and handwritten notes
  • Every repeat of a name, including running headers, footnotes and appendices

You don't always need to remove everything. US federal courts, for example, ask filers to show only the last four digits of a Social Security or financial account number, the year of birth instead of the full date, and a minor's initials instead of their name, under Federal Rule of Civil Procedure 5.2. For a court filing, follow the rules of the court you're filing with.

How to check that the redaction worked

Open the downloaded copy, not the one in the editor, and go through this list:

  • Search for each word or number you removed (Ctrl+F or Cmd+F). It should find nothing.
  • Select and copy across each black box, then paste into a plain text note. Nothing from underneath should appear.
  • Open the document properties in your PDF reader and look at the title, author and subject.
  • Check the file name, bookmarks and attachments. A file called "smith-divorce-settlement.pdf" gives away what the boxes hide.
  • Zoom in on scanned pages to make sure no edge of a word peeks out.

If something shows up, go back to your original and redact again. For anything high-stakes, ask a colleague to run the same checks.

When to use something else

Redaction is the right tool for removing details from pages you'll share. Some jobs suit other tools better:

  • Whole pages to hide? Remove them instead. Our guide to splitting a PDF and extracting pages shows how to keep only the pages you need.
  • Keeping the whole file private? Add a password with Protect PDF. Redaction controls what readers see; a password controls who can open the file.
  • Legal discovery or freedom-of-information work? Teams that need redaction logs, reason codes or review workflows are better served by dedicated redaction software. Pagestro removes content but doesn't add reason codes.

Frequently asked questions

Can redacted text be recovered?

Not when it has been truly redacted, because the content is gone from the file. Text that was only covered with a box can be recovered easily.

Can I undo a redaction after downloading?

No, and that's the point. Keep your original file somewhere safe in case you need to redact again.

Is my PDF uploaded when I redact it with Pagestro?

No. The file is opened and redacted in your browser on your own device. Nothing is sent to Pagestro.

Can I redact a scanned PDF?

Yes. Draw boxes over the parts to hide, and the image pixels under each box are wiped. Search won't find words inside a scanned picture, so go through each page by eye.

Should I use a black or a white box?

Both remove the same content. Black shows readers that something was removed. White can look cleaner but may make people think the page is complete.

  • Redaction
  • PDF security
  • Privacy
  • Personal data

Written by

MD Rakib Shekh

Founder & Lead Architect

Founder of Pagestro & UIXport. Specializing in WebAssembly browser tools, PDF processing, and high-performance design workflows.

Get new guides by email

Practical tips for PDFs, contracts and invoices. Unsubscribe anytime.