What the SVG Stroke Adjuster does
The SVG Stroke Adjuster changes the line thickness in outline icons and drawings. Set every stroke to the same width or scale existing strokes up or down, choose round, flat or square line ends and round, sharp or bevelled corners, and optionally keep strokes the same thickness at any size. A before and after preview shows the change.
How to use it
- Paste SVG code or open an .svg file.
- Choose Set every stroke to and pick a width, or Scale strokes by and pick a percentage.
- Choose line ends and corners, or keep them as they are.
- Compare before and after, then copy or download the SVG.
Example
You are mixing icons from two sets: one uses 2-pixel lines and the other 1.5. Paste each icon from the heavier set, set every stroke to 1.5 and choose round ends and corners. Now both sets look the same weight side by side in your menu.
Keep the same stroke at any size
Normally, when an SVG is drawn larger, its lines get thicker too. Ticking “Keep the same stroke at any size” adds vector-effect="non-scaling-stroke", so lines stay the chosen thickness in screen pixels however big the icon is. That is useful for diagrams and maps, but icons usually look better without it.
The tool changes stroke-width attributes and inline styles. If an icon has no strokes set, setting a width adds one to the whole icon.
Questions people ask
Is my file uploaded?
No. Files are read and processed in your browser and never uploaded.
Why do filled icons not change?
Filled shapes have no stroke. This tool only changes outlines.
What line weight should icons use?
Around 2 for 16 to 24 pixel icons, 1.5 for larger ones.
Can I undo changes?
Your original code stays in the input box; edit or reset the settings at any time.