Skip to content
Toolwright

SVG Recolor

SVG Recolor lists all the colors in an SVG and lets you swap any of them or change them all at once: invert, grayscale, lighten, darken, one color for everything or currentColor for icons. It works on attributes, style and style blocks, and runs in your browser.

Tool 112 · Color & design
Outside requests …How to checkRuns on this deviceWorks offline once opened

How to use SVG Recolor

  1. Drop an SVG or paste its code.
  2. Pick a new colour for any colour in the list, or use a button to change them all.
  3. Undo if you need to, then copy or download the result.

Frequently asked questions

Is my SVG uploaded?

No. The colours are found and changed in your browser.

Where does it look for colours?

In fill, stroke, stop-color, flood-color, lighting-color and color, whether they are written as attributes, inside style attributes or in a style block. Colour names, three-digit and six-digit codes, rgb() and hsl() all count as the same colour.

What does Use currentColor do?

It makes fills and strokes follow the text colour, so an icon inline in a page can be recoloured with CSS. Shapes with no fill or stroke, colour fades and none are left alone.

Why does a colour I changed look the same?

Some SVGs colour shapes through a style block with classes, or through a colour fade. Those are changed too, but a shape that has no colour set draws in black by default and there is nothing to replace.

Next step

Next, shrink the recolored file with the SVG Optimizer. Open SVG Optimizer.

  1. 109

    SVG Editor

  2. 110

    SVG Optimizer

  3. 008

    Color Converter & Picker

  4. 116

    SVG to React