Redact PDF by Pattern

Provide a regex; every match is rasterised over with a black box on each page. Catch SSNs, internal codes, names, anything that follows a stable pattern.

Your files never leave your browser. All processing happens on your device — nothing is uploaded.

1. Upload your file

How does the Redact PDF by Pattern work?

Extract per-page text positions with pdfjs, run a JavaScript regex over the concatenated text, and draw a black rectangle over each matching text fragment. Default pattern matches US SSNs; provide your own regex to catch internal account numbers, employee IDs, project codenames, or anything that follows a stable shape. Note: this is VISUAL redaction (black rectangles drawn on top of the original text). For TRUE permanent redaction (rasterise + black-out so the underlying text cannot be extracted), pipe the result through Permanent Redaction.

🔒 Security & Privacy

All processing happens on your device. Your files never leave your browser, never touch our servers, and are not stored anywhere. Close the tab and the file is gone.

📱 Use it on any device

Works in any modern browser — Mac, Windows, Linux, iPhone, Android, and tablets. No installation, no app to download. Just open the page and start.

⚡ Quick & easy

Drag, drop, click. Most files process in seconds, not minutes. No watermarks added to your output, no per-day limits, and the tool always shows the result before asking you to download.

🎁 Always free, no signup

Free to use, every time. No account creation, no email required, no “trial” that converts to a paid plan. We make money from ads so you don’t have to pay.

Frequently asked

Visual is sufficient if your only concern is humans reading the document. For documents going to adversaries who might extract text via copy/paste or programmatic extraction, the visual rectangles can be deleted. Use Permanent Redaction afterward for those cases.

Related PDF tools

More tools you might like

Hand-picked tools that pair well with this one — same audience, same intent.

PDF PII Detector
PDF

Scan a PDF for SSNs, credit-card numbers, email addresses, and phone numbers — report locations with redaction-ready coordinates so you can target a redaction pass.

HIPAA PHI Detector
PDF

Scan a PDF for likely PHI (protected health information) — SSNs, dates of birth, phone numbers, email addresses, and MRN-shaped strings — with page numbers and remediation suggestions.

Scrub PDF Metadata
PDF

Strip author, title, subject, keywords, creator, producer, creation date, and modification date from a PDF — for sharing externally without leaking who made it or when.

Permanent Redaction
PDF

Genuinely remove sensitive content by rasterising the affected pages and burning black rectangles into the bitmap — the underlying text is gone, not just hidden.

Redact PDF (true content-stream removal)
PDF

Court-grade redaction: matched pages are rasterised, then black bars are drawn over the matches — the original text under the rectangles is permanently gone from the file, not just hidden. Pages with no matches stay as vector.

Redact PDF
PDF

Find text and cover it with black rectangles — visual redaction. For full text-stream removal, use a paid pro tool.

PDF Cleaner (Strip Comments, Forms, Scripts)
PDF

One-shot cleanup: strip every annotation, form field, and JavaScript script from a PDF. Hand off a clean copy for publishing, archiving, or sharing externally.

Floor Tile Calculator (with pattern)
Calc

Tiles needed = (room area / tile area) × pattern-waste factor. Auto-rounds to whole tiles + box count.