By Tim King · Updated
Redact PDF
Black Out Names, Numbers and Phrases so They Are Deleted From the File
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the PDF Redactor works
Redact PDF documents so the hidden words are really gone. Type the names, account numbers or phrases to remove, and every match is blacked out and the page is rebuilt without its text layer. Everything runs in your browser, so the original never leaves your computer.
Drawing a black rectangle over a name in a PDF editor hides it on screen, but the text is usually still in the file underneath. Anyone can select it, copy it, or search for it. Court filings, government reports and company documents have been published this way for years, with "redacted" names recovered by simply copying and pasting the black box. A real redaction removes the text itself, not just the view of it.
How to redact PDF files
- Drop the PDF into the box.
- Type each word, name, number or phrase to remove, separated by commas, for example
Jane Smith, 07700 900123, Flat 4. - Pick a resolution and run the tool.
- Check the preview and download the copy ending in
-redacted.pdf.
Matching ignores capitals and treats any run of spaces as one, so jane smith also catches
Jane Smith and JANE SMITH.
How it works
The text of each page is read with pdf.js, Mozilla's open-source PDF reader, and every match is located on the page. The page is then drawn as an image, solid black boxes are painted over each match, and the image becomes the new page in a fresh PDF built with pdf-lib.
That last step is what makes the removal permanent. The new file contains only pictures of the pages, so there is no text layer, no hidden objects under the boxes, no earlier revisions, no form fields, no comments, no attachments and no document metadata such as the author's name. Whatever was under a black box no longer exists in the file in any form.
| Approach | Text under the box | Metadata and history |
|---|---|---|
| Black shape drawn over text | Still there, copy and paste reveals it | Kept |
| Highlighter set to black | Still there | Kept |
| This tool | Deleted, page rebuilt as an image | Removed |
Choosing a resolution
| Resolution | Good for | File size |
|---|---|---|
| 150 dpi | Reading on screen and email | Smallest |
| 200 dpi | Everyday printing | Medium |
| 300 dpi | Small print, forms and archive copies | Largest |
Each page becomes an image, so the output is often larger than a text PDF. 200 dpi is a good balance for most letters and statements.
Tips and pitfalls
List every form of the information. A name may also appear as initials, a surname alone, an email address or a username. A phone number may be written with or without spaces. Add each version you need gone, separated by commas.
Check every page. The boxes are placed from the PDF's own text positions. Unusual fonts, rotated text and letters spaced apart for justification can shift a box slightly. Look at the download page by page before sharing it, and run it again with a higher resolution or a longer phrase if anything shows.
Scans have no text to search. A scanned page is already a picture, so its words cannot be found. Use the Image Redactor to draw boxes on a picture of the page instead.
The text is no longer searchable. Because every page is an image, nothing in the redacted copy can be selected or searched, including the parts you kept. Keep the original for your own use and share only the redacted copy.
Test what you send. Paste text copied from the downloaded file into the Redaction Checker, or try selecting text in your PDF reader. Nothing should be selectable.
Password-protected files must be unlocked first.
Reading the result
Matches blacked out counts the boxes drawn. Pages with matches shows how many pages had at least one. The preview shows the first page with a redaction. If nothing matched, no file is made and the message suggests why.
FAQ
Is redacting a PDF with a black box enough?
No. A box drawn in most PDF editors only covers the text, which can still be copied, searched or extracted. True redaction deletes the text, which this tool does by rebuilding each page as an image with the boxes burned in.
Can the redacted text be recovered from the downloaded file?
No. The downloaded PDF holds only images of the pages with the black boxes painted on. There is no text layer, earlier version or hidden object left in the file that contains the removed words.
Why can I no longer select or search the text in my PDF?
Every page is turned into an image so that nothing under the boxes survives. That also removes the text layer for the rest of the page. Keep your original copy for searching and editing.
Is my PDF uploaded to a server?
No. The text search, the black boxes and the rebuilt PDF are all made by JavaScript in your browser tab. The original and the redacted copy stay on your computer the whole time.
See also: all PDF tools, Images, Audio, Video & Screen, SVG, Simulations & Screensavers, Generative Art, Chart Makers, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.
Related tools
Redaction Checker
Find names and numbers still readable in a "redacted" document.
Image Redactor
Black out or pixelate parts of an image for good.
PDF Metadata Remover
Strip author, dates and hidden XMP metadata from a PDF privately.
Compare PDFs
See every line added or removed between two versions of a PDF.
Password Protect PDF
Lock a PDF with AES-256 and an open password, without uploading it.