SVG stroke and colour changer

Paste an SVG icon or choose a file, then change its stroke weight, colour or gradient, size and line ends. Copy the result as SVG, React, Vue or a CSS mask, or download it as SVG or PNG. It all happens in your browser: your SVG is not uploaded.

or try an example:
16
20
24
32
Stroke weight 1.75
Colour
Size
Line ends
Tile
px

How it works

  1. Paste the SVG code of an icon, or choose an .svg file. You can also try one of the examples above.
  2. Set the stroke weight, colour or gradient, size and line ends with the controls. Add a rounded or circular background tile if you want one.
  3. Copy the result as SVG, React, Vue or a CSS mask, or download an SVG or a PNG with a transparent background.

What it changes

  • Stroke weight from 1.25 to 2.5, as it looks at 24 px. Icons on other grids are scaled to match.
  • Colour: one colour, a two-colour gradient, or the text colour (currentColor) so the icon follows your CSS.
  • Size of the copied icon, and line ends: round or square.
  • Tile: a coloured rounded square or circle behind the icon.

What works best

The tool is built for stroke icons, the outline style used by most UI icon sets: shapes drawn with lines. For those, every setting applies. Icons made of filled shapes keep their shapes and take the colour, gradient, size and tile, but have no stroke to change. Parts that cannot be restyled, such as clip paths, masks, text and embedded images, are left out, and the tool tells you when that happens.

Questions

Is my SVG uploaded anywhere?

No. The file is read and restyled in your browser and is never sent to us. We only count, without any content, that the tool was used.

Can I use the result in a commercial project?

The tool is free. Whether you may edit and use a particular icon depends on its licence, so check the licence of the icon you paste. The icons on SVGPitch are free for personal and commercial use under the MIT licence.

Why does the stroke look different from the original?

The tool replaces the stroke weight, colour and line ends in your file with the ones you choose. That is the point, but it means the result will not match the original exactly.

Can I restyle a whole set at once?

For SVGPitch icons, yes: the Style bar on All icons restyles every icon on the page and carries your style to each icon page.