SVG TOOLS · BFOTKIT

SVG Stroke to Fill Converter | BFOTKit

Paste SVG artwork that uses strokes and get back a version where every stroked shape is replaced by an equivalent filled outline path.

Curves are flattened and outlined with butt caps; group transforms are applied per element. Complex self-crossing strokes may show small artifacts.

SVG code

All geometry is generated locally in this browser tab. Nothing is sent to a server.

GUIDE

Why convert strokes to fills

Fills render more consistently

Some SVG consumers — older renderers, some cutter software, certain icon pipelines — handle fills reliably but mishandle stroke-width scaling. A filled path looks identical everywhere, at any size.

How the conversion works

Each stroked shape is flattened into a point chain, the chain is offset by half the stroke width on both sides, and the two offsets are joined into one closed polygon written as a filled path. Original fill-only shapes pass through untouched.

Know the limits

Butt caps are used at open ends, joins follow the path bisector, and group transforms are preserved where possible. Hairline strokes convert cleanly; very wide strokes with tight curves may self-overlap — acceptable for most icon work, and the result is still valid SVG.

HELP / FAQ

Stroke-to-fill questions

Will the converted SVG look identical?

For typical icon strokes, visually yes — the outline covers the same area the stroke painted. Extremely wide strokes around tight corners can deviate slightly where the outline self-intersects.

What happens to dashed strokes?

Dashes are not preserved; the converted path is a continuous filled outline of the whole stroke. Re-apply dashing as needed on the output if your pipeline supports it.

Does it work with text elements?

No — text is left as-is, because converting text to outlines requires font data. Convert text to paths in a vector editor first if your target needs outlines.

Is my artwork uploaded anywhere?

No. Parsing, geometry, and serialization all run in this browser tab.

EXPLORE BY CATEGORY · BFOTKIT

More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

Browse all tools