Automatic SVG White Fill

Find areas closed by lines and add a white fill behind the line art.
Overlapping artwork no longer shows through from behind.

01

Files

Drop SVG files here

or

SVG · Multiple files

02

Detection

Detection precision

An existing matopuri-white-fill group is replaced; the original line art elements are never changed.

Runs on your deviceYour SVGs stay in your browser.
HOW IT WORKS

Render. Find closed areas. Lay white underneath.

01

Render the SVG

The SVG is rendered at high resolution on a transparent background, and its lines are read as barriers.

02

Detect closed areas

Transparent areas that cannot be reached from outside are picked as areas to fill.

03

Add white paths

White vector paths are inserted behind the original line art.

TESTED EXAMPLES

What automatic white fill can close.

Using the actual closed-region detector with the Standard preset, these examples compare a closed outline, a 2 px gap in the detection raster, and an 8 px gap. Results vary with stroke width and render resolution, so review the preview for your SVG.

Fully closed

No gap · Standard

Fully closed SVG outline before white fill
BEFORE
SVG with a white backing path inside the closed outline
AFTER

Result: 1 region. A white path is inserted behind the original line art.

Small gap

2 px in detection raster · Standard

SVG outline with a small gap before white fill
BEFORE
SVG white-filled after bridging a small gap
AFTER

Result: 1 region. Standard can fill a break that falls within its closing range.

Large gap

8 px in detection raster · Standard

SVG outline with a large gap before white fill
BEFORE
SVG whose large gap was not detected as a closed region
AFTER

Result: 0 regions. Add a guide line in Manual SVG White Fill.

MATOPURI WHITE FILL

Add white without touching the lines.

The drawing elements of the original SVG are left as they are; detected fills are added as a dedicated group.

Areas with large gaps in their outline cannot be detected as closed.

FAQ

Common questions

Are my files uploaded?+

No. Rendering the SVG, detecting closed areas and adding white paths all happen inside your browser.

Is my original line art changed?+

No. The white fill is added as its own group behind the line art. Processing an SVG that already has a white fill replaces the previous fill.

Some areas are not filled+

Areas whose outline has a gap are not detected as closed. Standard and Precise bridge small gaps; for larger gaps, draw guide lines in Manual SVG White Fill.

What is the difference between Strict, Standard and Precise?+

Strict fills only fully closed areas. Standard and Precise render at a higher resolution and bridge small breaks while detecting.

Example

One practical use.

Example: add white backing paths to closed SVG regions so artwork below does not show through.