Redact a PDF
Cover matching text runs and rebuild the PDF as images. Terms match only within a single text run, and boxes are approximate: visually review every page before sharing.
or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
Downloads a small public example. Your own files are not used.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To cover matching PDF text runs, drop the PDF here, enter comma-separated terms and press Redact and flatten. Terms match only within one text run; boxes use an approximate fixed height. Matching text runs are covered and every page is turned into an image, so no text layer survives for anyone to copy or search. Check the rendered pages by eye: large or rotated text can remain visible outside a box. It runs in your browser and the PDF is never uploaded.
A worked example
See a real input and result
This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.
Input sample
Actual output
- Input count
- 1
- Output count
- 1
- Runs redacted
- 1
- Text layer
- removed entirely
- Input 1 pages
- 1
- Output 1 pages
- 1
- Input bytes
- 971
- Downloadable output bytes
- 24175
Settings used: terms: Wolfgang · scale: 2
This synthetic sample only; results depend on the input. Every page is rasterised and the original text layer is discarded. Matching only checks within individual text runs and uses approximate boxes, so large or rotated letters may remain visible and phrases split across runs may be missed. Inspect every output page before sharing; a removed text layer alone does not prove all sensitive content is hidden. The output is images: no longer searchable, and often larger.
Ran through this tool on . Use “Try sample files” above to run it yourself.
How to cover PDF text runs and review the result
- STEP 1
Choose the PDF
Add one PDF that has real, selectable text. A scan needs OCR first, or there is nothing for the search to find.
- STEP 2
List the words to remove
Type them in Words to remove, separated by commas, such as a surname, an account number and a postcode.
- STEP 3
Choose Output resolution
The default 2x (144 dpi) reads well on screen; use 3x or 4x if the redacted copy will be printed.
- STEP 4
Press Redact and flatten
The report shows how many runs were redacted. Open the -redacted PDF and check every page before you send it.
Why a black box is not redaction
Drawing a black rectangle over text in a PDF editor hides it from your eyes and nothing else. The characters are still in the file underneath, so anyone can select them, copy them or run a search and find them. Leaked court filings and government reports have been "un-redacted" exactly this way.
Redaction must remove the information from the file. Here, after blacking out the matches it flattens every page to a picture, so the output contains no text at all, only pixels. This removes the text layer, but any characters left visible outside a box can still be read or OCRed.
What survives, and what does not
pdf.js reads the position of every text run in the document. A run is blacked out if it contains any of your terms, matched without regard to case. A phrase must occur within one run; a phrase split across runs is not matched. Substrings match too, so Ann can also match Annual. Each page is rendered to a canvas at the Output resolution, black boxes are painted over the matching runs, and the canvas is saved as a JPEG. pdf-lib then builds a brand-new PDF from those images alone. The original text, fonts, annotations, form fields, attachments and document metadata are never copied across.
What you keep
The look of every page, as an image at the resolution you choose
Page order and page sizes
Everything outside the matched text runs, visually
What you lose
The whole text layer, on every page: the output cannot be searched or copied from at all
More than the word itself: the entire text run containing a match is blacked out, often a phrase or a whole line
Links, bookmarks, form fields, annotations, attachments and the original title and author
Words that exist only as pixels, such as in a scanned page or a picture; these are not found
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Redact a PDF at a glance
| Input | One PDF with a text layer |
|---|---|
| Output | Image-only PDF with matches blacked out |
| Matching | Case-insensitive, any run containing a term |
| Text left in output | None, on any page |
| Resolution | 1x to 4x (72 to 288 dpi), default 2x |
| Engine | pdf.js + pdf-lib |
| Runs on | Your device, in the browser |
If something goes wrong
One term was found but another phrase was missed
A successful run only means at least one text run matched somewhere. Phrases split across runs do not match. Try distinctive individual words, inspect for over-redaction, and verify every occurrence visually before sharing.
It says none of the words appear
Either the spelling differs from the document, or the PDF is a scan with no text layer. Try one word on its own, or run the file through Add a text layer first.
Part of a large heading is still visible above the black box
The box is sized for body text, about 12 points high. Large headings can poke out above it. Check headings carefully, and do not use this for redacting large display text.
More was blacked out than I asked for
Redaction works on whole text runs, which is how the PDF stored the text. A run can be a phrase or a full line, so the surrounding words go too.
Redact a PDF questions
Does this permanently remove the text or just cover it?
It removes the entire text layer and rebuilds the PDF from images. Covered pixels replace matched runs, but text missed by the search or extending outside a box can remain readable. Inspect every page visually; an empty search result alone does not prove redaction succeeded.
Is my PDF uploaded to redact it?
No. Reading, blacking out and rebuilding all happen in your browser. Sending a document to a server in order to hide its sensitive parts would undermine the point; here it never leaves your device.
How do I check the redaction worked?
Search should find nothing because the whole text layer is gone, even if sensitive pixels were missed. Inspect every page visually at high zoom, especially large, rotated or OCR-positioned text. Do not share a file while any sensitive characters remain visible.
Can I redact a scanned PDF?
Not directly. The search reads the text layer, which a scan does not have. Run the scan through Add a text layer, then redact that copy. The black boxes go where the OCR placed the words, so check the result closely.
Can I draw a box to redact an area or an image?
Not with this tool. It only redacts by searching for words you type, so signatures, photos, logos and handwritten notes are not found or covered. Everything is still flattened to an image, but those areas stay visible.
Can I redact a PDF without Adobe Acrobat?
Yes. This runs in any current browser on Windows, Mac, Linux or ChromeOS with no software or account. The trade-off compared with Acrobat is that every page becomes an image rather than keeping the unredacted text editable.