mypdf.space

How to redact a PDF properly: remove the text, don’t just cover it

By SumitPublished 1 Sept 2026Last reviewed 10 Oct 20266 min readPrivacy

Short answer

A black box drawn over text only adds a shape on top. The text underneath can still be selected, copied and searched. Real redaction deletes the content itself. In mypdf, Redact and Auto-redact PII rebuild every page you redact as a flat image with the black areas burned in, so no text survives under them. Afterwards, open the downloaded file and try to select and search for what you removed. If nothing comes up, it worked. The PDF leak check also flags any text still sitting under a black box.

Every so often a court filing or a government report gets published with black bars that don’t hide anything. Someone drags their cursor across a bar, pastes into a text editor, and the “redacted” name is right there. The person who prepared the file didn’t forget the black box. They used a tool that draws on the page instead of one that removes from it.

This guide explains the difference, walks through redacting a PDF in your browser, and shows you how to check the result before it leaves your hands.

Covering vs. removing: what happens inside the PDF

A PDF page is a stack of drawing instructions: put this text here, place this image there, fill this rectangle black. When you add a black box with a shape or highlighter tool, you add one more instruction to the top of the stack. The text instruction underneath is untouched. It’s still in the file and still selectable, and anything that reads PDF text will read it: search, copy and paste, screen readers, a three-line script.

Real redaction works the other way round. It deletes whatever is in the marked area, so nothing is left underneath. Adobe Acrobat, for example, separates marking an area from applying the redaction, and only the apply step removes anything. Removing hidden information like metadata is offered as a separate step after that (Adobe’s redaction guide).

How mypdf removes the text

When you apply redactions, every page with at least one black box is rendered as a high-resolution image (about 200 DPI for manual redaction and 180 DPI for auto-redact). The black boxes are painted into that image, and the image replaces the original page. The page’s text, fonts and vector drawings aren’t copied into the new file. Pages with no redactions are copied across unchanged.

There’s a trade-off: on a redacted page, all the text becomes part of the image, not just the part you blacked out. Nothing on that page can be selected or searched any more. If you need it searchable again, run OCR on the redacted file. OCR only reads what’s visible, so it can’t bring the removed words back.

All of this runs in your browser tab. The PDF is never uploaded, which matters for exactly the kind of document that needs redacting.

How to redact a PDF, step by step

  1. 1

    Save an untouched copy of the original somewhere safe. Redaction can’t be undone on the file it produces.

  2. 2

    If the PDF is a scan, run OCR PDF first so the automatic scanner has text to read. Skip this if you’ll only draw boxes by hand.

  3. 3

    Open Privacy scanner to see which pages contain email addresses, phone numbers, card numbers, IBANs and ID-style numbers. It only reports; it doesn’t change the file.

  4. 4

    For those patterns, use Auto-redact PII and choose which types to black out. For everything else (names, addresses, signatures, a paragraph about a client), open Redact and drag a box over each area, page by page.

  5. 5

    Apply the redactions and download the new file.

  6. 6

    Check the downloaded file, not the one you were editing. The next section shows how.

  7. 7

    Clear the document properties with Remove metadata, or use Deep Clean if the file might also contain attachments or form data.

Check that the text is really gone

This takes about a minute, and it’s the step that would have prevented most of the redaction failures that make the news. Do it on the downloaded file.

  • Select through the box. Open the PDF in any viewer and drag your cursor across a black bar. Nothing should highlight.
  • Search for what you removed. Press Ctrl+F (Cmd+F on a Mac) and type a name or number you blacked out. You should get zero results.
  • Copy the whole page. Select all, copy, and paste into a plain text editor. A redacted page gives you nothing, because it’s now an image.
  • Check the rest of the document. Run Extract text on the whole file and search the output for the same words. They often appear again on pages you didn’t redact, like a summary table or a footer.
Check the result with Extract text

What redaction doesn’t touch

Redaction works on what’s drawn on the page. A PDF can carry information in other places, and each needs its own fix:

  • Document properties such as author, title and the app that made the file. Clear them with Remove metadata as the last step before you send.
  • Comments and annotations on pages you didn’t redact are copied across as they are. Check your PDF viewer’s comments panel and delete anything that shouldn’t travel.
  • Attachments. A PDF can carry whole files inside it. PDF audit lists them, and Deep Clean removes them.
  • The file name. “Smith_disciplinary_final.pdf” gives away what the black bars are hiding. Rename the file before you send it.
  • The same detail somewhere else. A blacked-out account number doesn’t help if the last four digits appear in a table on page 12.

Automatic detection is a first pass

Auto-redact looks for information with a recognisable shape: email addresses, US phone numbers, international numbers written with a + country code, card numbers that pass a checksum, IBANs, US Social Security numbers, and Aadhaar- and PAN-style IDs. It’s good at catching the one you’d have missed on page 40.

It can’t tell that a person’s name is sensitive, that a project codename is confidential, or that a street and a date together identify someone. Local phone numbers written without a country code may be missed too. Treat the automatic pass as a checklist, then read the document yourself.

Open Auto-redact PII

Limits worth knowing

  • Redacted pages become images: nothing on them can be selected or searched, and they’re often larger than before.
  • Automatic detection only covers the patterns listed above. Names, addresses and context-dependent details need manual boxes.
  • Scanned pages need OCR before the automatic scanner can find anything on them.
  • Comments on pages you didn’t redact are kept. Delete them in your PDF viewer if they shouldn’t be shared.
  • Password-protected PDFs have to be unlocked before they can be redacted.
  • Redaction is permanent in the file you download. Keep your original.

Tools used in this guide

Frequently asked questions

  • Why can people still read the text under my black box?
    Because the box was drawn on top of the text, not in place of it. A PDF stores the text and the box as separate instructions, so anything that reads text ignores the box. Proper redaction deletes the text in the marked area.
  • Is redaction in mypdf permanent?
    Yes, in the file you download. Pages with redactions are rebuilt as images with the black areas burned in, and the original text on those pages isn’t copied into the new file. The original file on your computer isn’t changed.
  • Can I redact a scanned PDF?
    Yes. Draw boxes with Redact on any page, scanned or not. For automatic detection, run OCR PDF first so the scanner has text to read.
  • Does redaction remove metadata?
    Not as a separate step. Clear the document properties with Remove metadata, or use Deep Clean if you also want attachments and form data removed.
  • Is my PDF uploaded when I redact it?
    No. Scanning, redaction and the rebuild all happen in your browser tab. The file never leaves your device.

Sources

  1. Adobe Help Center, Redact sensitive content in Acrobat Pro

Related guides

More in privacy