← Tools / Redact by Pattern
ℹ️ 100% private — your PDF is never uploaded to any server. All text extraction, pattern detection, and redaction happen locally in your browser.
Step 1 — Upload PDF
📄
Drop PDF here or click to browse

Single PDF · Processed entirely in your browser

How to use
  1. Upload your PDF — it is scanned automatically for all supported patterns
  2. Review the highlighted matches on the preview canvas (different colours per pattern type)
  3. Uncheck any pattern types you want to keep unchanged
  4. Click Redact All — permanent black boxes are applied across every page
  5. Download the redacted PDF

Supported patterns: Aadhaar (12-digit), PAN (ABCDE1234F), Indian mobile numbers (6–9 prefix, with optional +91), email addresses, and custom regex patterns.

Frequently asked questions
Are the redactions permanent?

Yes. The tool draws opaque black rectangles directly into the PDF content stream over the detected text. The original text cannot be recovered by selecting, copying, or searching the downloaded file.

Does it work on scanned PDFs?

Pattern detection requires selectable text. If your file is a scanned image with no text layer, no matches will be found. Use the Edit tool's manual redact mode for scanned documents.

Is my document private?

Yes. Your PDF is never uploaded to any server. All text extraction, pattern matching, and redaction run locally in your browser using JavaScript.

What if a detected match is incorrect?

Uncheck the corresponding pattern type before clicking Redact All to exclude it. For precise control, use the Edit tool's manual redact mode.

Can I redact a custom data format?

Yes. Enable the Custom Pattern checkbox, type a JavaScript regular expression (e.g. [A-Z]{2}\d{9} for a passport number format), and click Apply.

Sharing your Aadhaar? Read the full guide: How to mask Aadhaar number in PDF — UIDAI guidelines →