Skip to content
epitometool

PDF redact (visual)

PDF tools

Cover PDF regions with opaque rectangles to hide content visually — useful as a visual mask before flattening.

Updated

Visual redaction only. The black box hides content from view, but the underlying text remains in the PDF stream. Anyone can recover it with copy-paste or a text-extract tool. For true redaction, flatten the result through /tools/pdf-to-jpg → /tools/image-to-pdf, or use professional redaction software.
100% private. Your PDF never leaves your device — redaction runs in your browser. (Open DevTools → Network to verify.)

One PDF at a time. The selected regions are filled with the chosen colour.

Quick start

How to cover content in a PDF

Draw opaque rectangles over PDF regions to hide content visually — entirely in your browser.

  1. Step 1
    Drop or pick a PDF

    Drag the PDF onto the drop zone, click to pick it, or paste from the clipboard. The file stays on your device.

  2. Step 2
    Define rectangles and scope

    For each rectangle set x/y/width/height in mm, in or pt. Apply to all pages or a comma-separated range like 1-3,5,7-9. Pick a fill colour.

  3. Step 3
    Redact and download

    Hit Redact pages. A Web Worker draws the rectangles with pdf-lib and you download <basename>-redacted.pdf. Remember: this is visual redaction only — the underlying text remains.

In-depth guide

Cover up content in a PDF (visual redaction)

This tool draws an opaque rectangle over a region of one or more PDF pages — useful for hiding addresses, signatures, account numbers, or whole header bars before sharing a document. Read the limitation below before you trust the output: this is visual redaction, not true content removal. Everything runs in a Web Worker via pdf-lib; the file never leaves your browser.

Visual redaction vs true redaction

Drawing a rectangle hides content from the eye. It does not delete the underlying text. Anyone with a copy of the file can recover it in seconds.

When you put a black box on top of text in a PDF, the text object beneath is still there. It's hidden visually — but every word remains in the file's content stream and can be recovered by:

  • Selecting all and copying — most viewers happily copy text under a rectangle
  • Any text-extract / OCR tool that reads the PDF stream directly
  • Removing the rectangle in a PDF editor
  • Searching the document for keywords

For situations where motivated parties might receive the file (legal discovery, FOIA / RTI responses, security-cleared docs, anything with regulatory consequences), do not rely on this tool. Use specialist redaction software that flattens the page or removes the content from the stream.

When this tool is good enough

Visual redaction is fine — easy, fast, browser-local — when:

  • You'll flatten the result. Run the redacted PDF through /tools/pdf-to-jpg then /tools/image-to-pdf and the text layer is destroyed; only the rasterised image remains.
  • You're printing on paper. The rectangle prints solid; the underlying text never reaches the page.
  • The audience is casual. A colleague who reads the file in Preview / Acrobat reader won't realise selectable text sits under the box, but a determined recipient will.

How coordinates work

Each redaction rectangle is defined by four numbers:

  • x from left — distance from the left page edge to the rectangle's left side.
  • y from top — distance from the top page edge to the rectangle's top side. (We invert the usual PDF bottom-up convention so you can read coordinates the same way you see the page on screen.)
  • width — rectangle width.
  • height — rectangle height.

All four use the same unit (mm, in or pt). A standard US Letter page is 215.9 mm × 279.4 mm; A4 is 210 mm × 297 mm. To cover a top-edge header on an A4 doc, try x=0, y=0, width=210, height=20 (mm). Click Add rectangle to stack multiple regions in one pass.

Privacy & safety

The PDF is parsed and re-drawn locally in a Web Worker. No file bytes, no rectangle coordinates and no metadata are transmitted anywhere. The result is built in your browser's memory and offered as a download. Open DevTools → Network during redaction and confirm: zero outbound requests for the file.

Common pitfalls

  • Password-protected, digitally signed, or archival PDFs may need a specialist workflow before editing.
  • Large scans can use a lot of memory, especially on phones or older laptops.
  • Check the downloaded file before replacing the original, because compression, OCR, or conversion can change visual details.

Frequently asked questions

Does this actually remove the text underneath the black box?

No — and this is the most important thing to understand about this tool. It draws an opaque rectangle on top of the page. The original text and image objects remain in the PDF's content stream. Anyone who selects-all and copies, or runs a text-extract tool, can still read what's underneath. For TRUE content removal (where the bytes are gone), you need professional redaction tools that flatten and re-encode the page.

When is visual-only redaction good enough?

When you're flattening to an image afterwards (export to PNG/JPG), when you're printing and only the paper output matters, or when the audience is a casual viewer who won't open the file in Acrobat. It's NOT good enough for legal discovery, security clearance, GDPR right-to-be-forgotten, or anything where motivated parties have access to the file.

Is anything uploaded?

No. The PDF is loaded with pdf-lib inside a Web Worker in your browser, rectangles are drawn locally, and the result is downloaded directly. Open DevTools → Network while redacting and you'll see zero outbound traffic for the file.

Can I apply rectangles to multiple pages at once?

Yes. Add one or more rectangles, then pick the scope: all pages, or a comma-separated range like "1-5,7,9-12". Every rectangle is drawn on every page in the scope — useful for redacting consistent positions like a header bar or page-number block.

What units can I use for coordinates?

Millimetres (mm), inches (in) or PDF points (pt — 1/72 of an inch). All four numbers (x from left, y from top, width, height) use the same unit. The y coordinate counts from the top of the page so it reads the same way you see the page on screen.

How do I make the redaction box a different colour?

Use the colour picker. Black (#000000) is the visual default and the most recognisable, but white (#FFFFFF) is useful for "erasing" content into the page background — and any other hex value works for branded watermark-style covers.

Will redacted pages still be searchable?

Yes, because the underlying text is still in the file. This is another reason to flatten / re-rasterise if you want the redacted content gone for real. If you need a sealed copy, run the result through /tools/pdf-to-jpg → /tools/image-to-pdf — that destroys the text layer.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.