Your files never leave your device. All processing happens locally in your browser.
How do I permanently black out sensitive text in a PDF — names, account numbers, signatures — without uploading the file to a server?
Open the PDF Redact tool, drop a PDF onto the page, and it renders every page in your browser so you can click and drag black (or white, gray, red) redaction boxes over anything sensitive. Use Find & Redact to search for a word and bar every match, or Auto-Detect PII to scan the text for emails, phone numbers, credit-card, Aadhaar and PAN numbers, dates and currency amounts and cover them in one tap. When you press “Redact permanently”, each page is re-rendered to a high-resolution image with the bars burned in and the PDF is rebuilt from those images — so the original text under every box is gone, not merely hidden, and cannot be selected, searched or copied back out. The redacted PDF downloads as name-redacted.pdf, and the file never leaves your device.
Draw redaction boxes by click-and-drag on any page (mouse or touch); choose black, white, gray or red bars
Find & Redact searches the text layer for a word or phrase; Auto-Detect PII flags emails, phones, cards, Aadhaar, PAN, dates and currency
Redaction is permanent — pages are flattened to images and the PDF is rebuilt, so covered text is destroyed, not hidden under a movable box
Runs 100% in your browser with pdf.js and pdf-lib — no upload, no server, no account — and downloads as name-redacted.pdf
Multi-page navigation with thumbnails and per-page redaction counts; undo, remove a single box, or clear all before applying
What is
PDF Redaction
PDF redaction is the process of permanently removing sensitive information — names, addresses, account and card numbers, signatures, health or legal details — from a PDF so it cannot be recovered by the recipient. True redaction differs from simply drawing a black box in a PDF editor: a box added as an annotation still sits on top of the original text, which can be moved, deleted or copied out from underneath. Genuine redaction destroys the underlying content. This tool achieves that by rendering each page to a raster image with the redaction bars painted directly onto the pixels, then rebuilding the PDF from those flattened images, so the text layer beneath every bar is discarded entirely and nothing can be selected, searched, extracted or restored. Boxes can be placed by hand, by searching for a term, or by an automatic scan for common personally identifiable information (PII) patterns — all computed in the browser with pdf.js and pdf-lib.
PDF Tools
Related terms
PDFredactionblack out textcensor PDFPIIpersonally identifiable informationflatten PDFsensitive dataprivacypdf.jspdf-libclient-sideGDPRsanitize documenthide text
Frequently Asked Questions
No. The PDF is rendered, redacted and rebuilt entirely in your browser, so the file never leaves your device — there is no upload, server or account.
Nothing is uploaded. When you drop a PDF, the browser File API reads it into memory, pdf.js renders each page to a canvas so you can see it, and when you apply the redactions pdf-lib rebuilds the document on your own machine and hands it back from a local Blob for download. No bytes are sent anywhere. That matters because the documents people redact — contracts, bank statements, medical records, court filings, ID scans — are exactly the files you would never want to hand to a cloud service. There is no login, tracking or CDN in the processing path, the tool works offline once cached, and closing the tab discards everything.
It is permanent. Each page is flattened to an image with the bars burned in and the PDF is rebuilt, so the text under every box is destroyed and cannot be selected, searched or copied back.
This is true redaction, not a cover-up. Many “black box” edits in PDF viewers add an annotation that floats over the text — the recipient can move or delete the box, or copy the text out from underneath. Here, when you press Redact permanently, every page is re-rendered to a high-resolution raster image with the redaction rectangles painted onto the pixels, and pdf-lib assembles a brand-new PDF from those images. The original selectable text layer is discarded in the process, so anything beneath a bar is gone for good: it will not appear in copy-paste, text search, or extraction tools. The trade-off is that the output pages are images, so the whole document is no longer selectable text — that is the price of guaranteed removal.
Yes. Auto-Detect PII scans the extracted text for emails, phone numbers, credit-card, Aadhaar and PAN numbers, dates and currency amounts; Find & Redact locates any word or phrase you type.
The tool reads the PDF’s text layer with pdf.js and offers two assisted modes. Find & Redact searches for a specific word or phrase and reports how many matches it found across how many pages. Auto-Detect PII runs a set of pattern matchers over the text — email addresses, phone numbers, credit-card numbers, Indian Aadhaar and PAN numbers, dates and currency amounts — and lists each category with a count so you can bar them in one tap. These modes place a redaction bar across the region of each page that contains a match, which you should visually check and nudge before applying, since they cover the matching line rather than pinpoint pixel-perfect word boxes. For exact control you can always draw boxes by hand. Scanned image-only PDFs have no text layer, so auto-detect and search cannot read them — use manual boxes there.
Yes. It is completely free with no account or watermark and runs in any modern mobile or desktop browser; you can draw redaction boxes with touch as well as a mouse.
PDF Redact is free with no sign-up, watermark or page limit, and because it is 100% client-side it works in any modern browser on Android, iPhone, iPad, Windows, macOS or Linux with nothing to install. The page viewer supports touch, so you can drag redaction boxes with a finger, switch pages with the thumbnail strip, and see a per-page count of how many areas are marked. You pick the bar colour (black, white, gray or red), undo the last box, remove an individual box or clear them all before committing, and only then are the redactions burned in. One PDF is processed at a time and the practical ceiling is your device’s memory, so a very large or high-page-count file is bounded by available RAM.
Detailed Explanation
📖How It Works
Permanently Blacking Out Sensitive Text in a PDF
PDF Redact lets you cover and permanently remove sensitive information from a PDF — names, addresses, account and card numbers, signatures, or any private content — entirely in your browser. Drop a PDF onto the /pdf-redact page and pdf.js renders each page to an image you can see and mark up. You add redaction bars three ways: draw a box by clicking and dragging directly on a page, use Find & Redact to search the text layer for a word or phrase and bar every match, or run Auto-Detect PII to scan for common patterns such as emails, phone numbers, credit-card, Aadhaar and PAN numbers, dates and currency amounts. Bars come in black, white, gray or red, and a thumbnail strip with per-page counts helps you work through long documents. Pressing “Redact permanently” burns the bars into a re-rendered image of each page and rebuilds the PDF, then downloads it as name-redacted.pdf — with nothing uploaded.
Three ways to mark content: manual click-drag boxes, Find & Redact text search, and Auto-Detect PII
Bars in black, white, gray or red; multi-page viewer with thumbnails and per-page redaction counts
Applying flattens each page to an image with bars burned in and rebuilds the PDF as name-redacted.pdf
Runs 100% in the browser with pdf.js and pdf-lib — no upload, server or account
📋Use Cases
When and Why to Redact a PDF
Redaction is a privacy and compliance task: you are removing information that must not travel with a document. Common cases include sharing a contract or invoice while hiding pricing, bank details or a counterparty’s data; releasing court, FOIA or public-records documents with witness names and identifiers removed; sending a bank or medical statement with the account number and balance obscured; and posting a screenshot, résumé or scanned ID online without exposing a home address, phone number or government ID. In each case a casual black rectangle is not enough — regulators and reporters have repeatedly recovered “redacted” text that was only visually covered by a movable annotation. This tool is built for the stronger requirement: it destroys the content beneath every bar so it cannot be recovered. Because it is client-side, you can sanitise the very files you are trying to protect without uploading them to a third-party service first.
Hide pricing, bank details or counterparty data before sharing a contract or invoice
Remove names and identifiers from court, FOIA or public-records releases
Obscure account numbers and balances on statements, or IDs on scanned documents
Sanitise sensitive files without uploading them — unlike cloud redaction services
🔧Technical Details
How the Redaction Is Applied and Why It Cannot Be Undone
When the page loads at /pdf-redact it renders the PdfRedact component (src/pages/tools/pdf/PdfRedact.tsx). Dropping a PDF reads it into an ArrayBuffer; pdf.js renders each page to a canvas at 2x scale for the on-screen preview and, in parallel, extracts each page’s text with getTextContent so Find & Redact and Auto-Detect PII can operate. Redaction boxes are stored as percentage coordinates relative to each page, so they stay aligned regardless of display size. When you apply, the tool loops over every page, re-renders it to a canvas at 3x scale for high quality, paints each page’s redaction rectangles with the chosen colour using the canvas fillRect, exports the canvas as a JPEG, embeds that JPEG into a new pdf-lib PDFDocument sized to the original page, and finally serialises the document with save() and wraps it in an application/pdf Blob for download. Because the new PDF is built from flattened page images, the original text objects — including everything beneath the bars — are never carried across, which is precisely why the redaction is irreversible.
pdf.js renders pages to canvas (2x preview, 3x on apply) and extracts text for search and PII detection
Redaction boxes are stored as percentage coordinates so they stay aligned to the page
Applying paints bars with canvas fillRect, exports each page as JPEG and embeds it via pdf-lib
The rebuilt PDF is made of flattened images, so the original text layer — and anything under a bar — is discarded
⚠️Limitations
Honest Limitations
A few scope notes keep expectations accurate. First, because true removal flattens every page to a raster image, the output PDF is no longer selectable or searchable text — that is the deliberate cost of guaranteed removal, and it makes files larger than a text PDF. Second, the assisted modes are aids, not a guarantee: Find & Redact and Auto-Detect PII place a redaction bar across the region of the matching line rather than a pixel-perfect box around the exact characters, so you should visually verify and adjust the bars before applying — and Auto-Detect’s patterns (email, phone, credit card, Aadhaar, PAN, dates, currency) are heuristics that can miss unusual formats or flag false positives. Third, detection and search read the PDF’s text layer, so a scanned, image-only PDF has nothing to scan — redact those by hand. Fourth, redaction removes visible content on the page; it does not scrub separate document metadata, so pair it with a metadata editor if the file’s properties also carry sensitive details. Finally, one PDF is processed at a time and the whole document is held in browser memory, so a very large or high-page-count file is bounded by your device’s RAM.
Output pages become flattened images, so the redacted PDF is no longer selectable text and is larger
Find and Auto-Detect bar the matching line, not exact word boxes — verify and adjust before applying
Auto-Detect patterns are heuristics and need a text layer; scanned image-only PDFs must be redacted by hand
Redacts page content, not document metadata; one file at a time, bounded by device RAM
🔒Privacy & Security
Privacy: The PDF Stays on Your Device
Redaction is a privacy task by definition — you are stripping out the most sensitive parts of a document — so uploading the file to do it would defeat the purpose. This tool never does. The PDF is read with the browser File API, rendered and previewed with pdf.js, painted with your redaction bars on a local canvas and rebuilt with pdf-lib, then returned from an in-memory Blob for download; there is no server, upload, database, logging, API or CDN anywhere in the processing path. The text search and PII scan run locally against the in-browser text. There is no login and no telemetry, the tool keeps working offline once the page is cached, and closing the tab discards the file and every redaction you placed. The only optional network use anywhere on the site is consent-gated advertising, which never sees your files — a real contrast with cloud redaction services that require you to upload the confidential document you were trying to protect.
File read, rendered, redacted and rebuilt entirely in the browser; nothing uploaded
No server, upload, database, API or CDN in the processing path; no login or telemetry
Text search and PII detection run locally against the in-browser text layer
Works offline once cached; closing the tab discards the file and all redactions
PDF Redact — how it removes content and where it stops
Capability
Support
Notes
Manual redaction
Click-drag boxes on any page
Draw bars with mouse or touch; choose black, white, gray or red; undo, remove one or clear all
Find & Redact
Text-layer search
Searches for a word or phrase and bars every match; needs a real text layer
Auto-Detect PII
Email, phone, card, Aadhaar, PAN, date, currency
Heuristic patterns bar the matching line — verify placement before applying
Permanence
True removal
Pages are flattened to images and the PDF is rebuilt, so text under a bar cannot be recovered
Output
name-redacted.pdf
A new PDF built from high-resolution page images; no longer selectable text
Scanned PDFs
Manual only
Image-only PDFs have no text layer, so search and auto-detect cannot read them
Privacy & scale
In-browser, bounded by RAM
Read, redacted and written on-device, one PDF at a time; 100% client-side, no upload
PDF Redact permanently blacks out sensitive content in a PDF entirely in the browser: pdf.js renders each page and extracts its text, you add bars by drawing boxes, searching the text with Find & Redact, or scanning for PII (email, phone, credit card, Aadhaar, PAN, dates, currency), and applying re-renders each page to a high-resolution image with the bars burned in and rebuilds the PDF with pdf-lib as name-redacted.pdf. Because the output is flattened images, text beneath a bar is destroyed and unrecoverable but the file is no longer selectable text; scanned image-only PDFs must be redacted by hand, and everything runs client-side with nothing uploaded.