SVG Tools

SVG Color Changer

See every color used in an SVG's fills and strokes, pick new colors and download the recolored file — without opening a full editor.

Drop an SVG file here

Processed in your browser. Files are never uploaded.

This tool edits the SVG code directly in your browser. Nothing is uploaded. Open VectorCraft

How to Change SVG Colors

  1. 1

    Open an SVG, paste code or try the sample.

  2. 2

    Pick a new color for any color in the list and compare before and after.

  3. 3

    Download the recolored SVG.

Example

An icon set uses #333333 for strokes but your app's brand color is violet. Load each icon, map #333333 to your brand color and download.

Understand which colors are being replaced

The SVG color changer lists supported literal colors from fill, stroke and gradient stops. Replacing a listed color changes matching uses of that color; it is not an object-selection tool. If the same blue appears in a logo and its background, both may change. Use the SVG code editor when you need to modify just one element, or separate its color before applying a replacement.

A fill colors the interior of a shape. A stroke colors its outline. An icon can use either or both, so check the before and after previews rather than assuming that changing fill will recolor every visible line. Gradients can contain several stop colors; change the stops individually when you want to preserve the transition instead of turning it into a single flat color.

Check the result in light and dark contexts

A brand color that looks clear on white can disappear against a dark background. Test the recolored file where it will be used, including hover and disabled states if it is an interface icon. This tool changes the artwork colors; it does not assess every surrounding page or automatically select accessible color combinations. Keep the original file as a reference.

CSS variables, external stylesheets and pixels inside embedded images are outside the supported replacements. A currentColor value also depends on the environment that displays the SVG rather than a fixed palette entry. If a visible color does not appear in the list, inspect the source in the SVG editor. Download a new copy after checking the preview; the source file on your device is not overwritten.

Recolor a two-tone icon without losing its structure

Start with an icon containing a dark outline and a lighter filled shape. Open it in the SVG color changer and compare the listed colors with the preview. Replace the outline color first, then check that the fill remains unchanged. Next, adjust the fill to your second brand color. If several unrelated shapes change together, they share a matching literal color. Use the SVG editor to give one element a separate value before continuing.

A palette can look complete while a visible region remains unchanged. That region might be a bitmap, use currentColor, or receive its color through an external stylesheet or CSS variable. Inspect those definitions in the code rather than repeatedly choosing new palette values. For a gradient, check each supported stop color and preserve the difference between the stops when you want a gradual transition. A fill set to none represents no fill and is not a painted color to replace.

After changing SVG colors, download a separate copy and place it against the backgrounds your project actually uses. Check fine outlines, overlapping shapes and transparent gaps at the final icon size. The tool does not change path geometry or guarantee that a brand palette has sufficient contrast in every context. Keep the original, and convert the recolored SVG to PNG only when the destination requires a raster image.

What It Does and Current Limits

  • Changes plain fill, stroke and gradient stop colors in attributes, inline styles and embedded CSS classes.
  • CSS variables, external stylesheets and colors within embedded images are not changed.
  • The original file is not modified; you download a new copy.

SVG Color Changer FAQ

Does it change gradients?

It changes the colors of gradient stops written as attributes or inline styles.

Is my SVG uploaded?

No. Everything happens in your browser.