Exemplar-based inpainting · clone stamp · on-device

Clone & Patch

Paint over a watermark, a dust speck, a stray mark or a small patch of background, and have it filled with real pixels taken from elsewhere in the same image. Nothing is generated and nothing is invented — which is exactly why it holds up at print resolution.

Drop an image hereor click to browse — PNG, JPEG, WebP

What this can and cannot do

The fill is exemplar-based. For every pixel on the edge of the marked area the tool searches nearby for the block of real pixels that best matches the surrounding context, then copies it in. Because the material is genuine image data rather than a smooth average, texture, grain and straight edges carry through instead of turning into a blur.

It is very good at watermarks, dust, scanner specks, a stray hair, a date stamp, a small logo, or extending a plain background by a little. It is not an object remover: if you mark a person, a face or a large product, there is no similar material elsewhere in the file to copy from, and the result will be obvious repetition. That job genuinely needs a generative model, and this page does not pretend to be one — the earlier version filled the selection with a flat average colour plus random noise while describing itself as inpainting.

Work at a modest zoom and in several small passes rather than one big selection. Each pass is undoable, and the marked area is the only thing that ever changes.

Questions

Is my image uploaded anywhere?

No. The file is decoded in the page and every pass runs on your own device.

Why does a large selection look repetitive?

Because the algorithm can only copy what already exists in the image. Over a big area the same few good matches get reused, which reads as tiling. Smaller, repeated passes give the search more freshly filled context to work with and usually look better.

When should I use the clone stamp instead?

When you already know where the replacement should come from — for example copying a clean stretch of fabric over a mark on the same garment. The automatic fill picks its own source; the clone stamp does exactly what you tell it.

Does the download keep the original resolution?

The canvas works at up to 760 px on the long edge so the search stays responsive, and the PNG is exported at that working size. For print, patch the file at final size in a desktop editor, or keep the marks small enough that the resampling is not visible.

What does "unmatched" mean in the stats?

The number of pixels where no fully known patch could be found inside the search radius. Those fall back to an average of their neighbours, which is softer than a copied patch. A non-zero figure is a hint to widen the radius or mark a smaller area.