Free colour changer

Change SVG colour online

See every colour an SVG uses and swap any of them in one click. Gradients, strokes and CSS styles are all picked up, and the file never leaves your browser.

Drop an SVG file to recolour

or

Runs in your browser · Nothing is uploaded · No account

How it works

  1. Drop or paste your SVG.
  2. Each distinct colour is listed with how many times it appears.
  3. Pick a replacement with the colour picker. Transparency on the original colour is preserved.
  4. Download the SVG, copy the code, or open it in the editor for finer changes.

Recolouring single shapes

This tool changes a colour everywhere it appears. To recolour one shape, or to turn a flat fill into a gradient, open the file in the free SVG editor, click the shape and use the fill and stroke controls. To export a coloured PNG afterwards, use SVG to PNG.

Questions

How do I change the colour of an SVG?

Drop the SVG above. Every colour in the file is listed with a swatch; pick a new colour next to any of them and the preview updates. Download the recoloured SVG when you're done.

Which colours does it find?

Hex (#fff, #ffffff, #ffffff80), rgb()/rgba(), hsl()/hsla() and named colours used in fill, stroke, stop-color, flood-color and color, including inside style attributes and <style> blocks. Colours are grouped, so #FFF and white count as one.

Why is my icon black with no colours listed?

Shapes without a fill attribute render black by default, so there is nothing to replace. Open the file in the SVG editor and set a fill, or add fill="#yourcolour" to the <svg> element.

Can I make an SVG use the current text colour?

Yes: set fill="currentColor" in the SVG editor or code editor. The icon then inherits the CSS color of its parent element when used inline in HTML.