Skip to content
Open SVG Editor

How to convert SVG strokes to filled shapes

A stroke describes the visible area around a path's centerline. Removing stroke attributes deletes that area; it does not turn it into a solid icon. Path Studio can outline supported strokes into closed, filled paths instead.

Stroked centerlines
Before: stroked centerlines
Filled outline
After: filled outline

Conversion steps

  1. Import an SVG or paste its markup into SVG markup, then choose Apply changes.
  2. Check the preview and confirm that the paths you want to convert have fill set to none and a visible stroke.
  3. Choose Stroke to shape in the Source header. The preview and exports update to use filled geometry.
  4. Inspect the result at its intended size. Use Inspect for a closer view, then Compress path if you want to shorten the new path data.
  5. Copy or download the result. Undo restores the original centerlines and stroke styling.

What is preserved?

The conversion uses the stroke's numeric width, caps, joins, miter limit, and supported dash pattern to construct an outline. Stroke color becomes the fill color and stroke opacity becomes fill opacity. Existing path and parent-group transforms remain part of the SVG document. Inherited presentation attributes are considered before conversion.

When conversion is useful

Filled geometry is useful for icon pipelines that do not support strokes, for preparing consistent shape-only assets, and for removing stroke attributes without losing open-line icons. A plus icon is a simple example: two centerlines become one closed outline with the same arm thickness and rounded tips.

When the original is kept

Paths with both a visible fill and a stroke, gradient strokes, unsupported widths, or an invalid dash pattern are kept unchanged with an explanation. Stroked basic shapes should be converted to paths with the optimizer first. Inspect the output because complex curves and numeric rounding can produce small differences.

Conversion and compression solve different problems

Outlining makes the stroke's area explicit and often adds coordinates. Compression then rewrites those coordinates more compactly. It may not recover all the added bytes, and a smaller representation is not a promise of an identical raster image at every scale. Keep the original if you need editable stroke widths later.

How to use