Muffin's DocPatch

Erase wrong or hallucinated text from PDFs and images by filling over it — then type the corrected text on top. Auto-sample the background or pick any fill color. Right-click patches to duplicate. 100% browser, no upload.

📄 Fix PDF
🖼️ Fix Image
Step 1 — Erase: Drag a box over wrong text. Fill color is sampled live. Adjust in the color strip if needed. Hover a patch → drag any of the 8 handles to resize it.
Step 2 — Add Text: Switch to Add Text mode → drag a box → type the correct text.
Step 3: Right-click any patch to duplicate (fixed color or live-resample). Download as PDF, PNG, JPEG, or WebP.
📄
Drop your PDF here or click to browse
Any PDF · Auto-samples background · Right-click patches to duplicate
Step 1 — Erase: Drag a box over wrong text. Fill color is sampled live. Adjust in the strip below. Hover a patch → drag any of the 8 handles to resize.
Step 2 — Add Text: Switch to Add Text → drag a box → type the correction.
Step 3: Right-click any patch to duplicate it. Download as PNG, JPEG, WebP, or PDF at full original resolution.
🖼️
Drop your image here or click to browse
PNG, JPG, WebP, GIF, BMP · Auto-samples background · Right-click to duplicate

What is Muffin DocPatch?

Muffin DocPatch is a free, browser-based tool that lets you erase wrong, hallucinated, or misspelled text from PDFs and images and replace it with corrected text — without uploading your file to any server. DocPatch samples the background color from the area you drag over and fills it in, then lets you type the correct text on top with your choice of font, size, and color. Everything runs locally in your browser using the Canvas API, PDF.js, and PDF-lib.

⌫ Smart Erase with Live Preview
Drag a box over any text and see the fill color update live as you drag. DocPatch averages the edge pixels of your selection to estimate the background color automatically.
⇲ 8-Handle Resize
Every patch and text box has 8 resize handles on corners and edges. Hover any patch and drag a handle to adjust the size precisely after placing it.
⧉ Right-Click Duplicate
Right-click any patch for two duplicate options: fixed color copies the exact fill, or live resample updates the fill color automatically as you drag to a new location.
🔒 Zero Upload · Works Offline
Your files never leave your device. No account required. Disconnect from the internet after the page loads and every feature continues to work.

Your file never leaves your browser

DocPatch processes everything locally using Canvas API for pixel operations, PDF.js for rendering PDF pages, and PDF-lib for rebuilding the output PDF. No file is sent to any server.