Color Image to SVG Converter: Keep Up to 64 Colors as Vector Layers

Trace a color image into stacked vector layers, and choose how many colors to keep.

Color Image to SVG Converter tool

1Add your image

Drop your color image here, or click to browse You can also paste with Ctrl+V. Nothing is uploaded.
No file?

2Adjust the result

Start from

Style

More options

3Preview and download

Live preview
Loading…
Original · Color Image Vector · SVG
Drag the handle to compare · scroll to zoom
100%
Drop image to convertPNG, JPG, WebP, GIF
SVG file size
–
 
PNG
SVG
Colors
–
Time
–ms
 
More detailsColor layers, size history, SVG code
Shapes
–
closed outlines
Nodes
–
path points
Decode–
Quantize–
Trace–
Simplify–
Render–

Color layers

Hover to isolate · click to hide

Live size trace

SVG size per adjustment
SVG sizeOriginal PNG

SVG source

–

              

Under the hood

How Color Image to SVG Converter works

A color image to SVG converter keeps up to 64 colors as stacked vector layers. You decide how faithful or stylised the result is by choosing the number of colors.

  1. Read every color

    The image is decoded and each pixel’s color is collected into a sample for palette building.

    Canvas · RGBA
  2. Build the palette

    A median-cut palette is refined with k-means, and colors that are almost identical are merged so every layer earns its place.

    Median cut · k-means · color merge
  3. Trace each layer in order

    Layers are stacked from largest to smallest area, and each is outlined at sub-pixel accuracy.

    Stacked marching squares
  4. Fit and render

    Smooth Béziers and straight lines are written as one filled path per color.

    Bézier fit
The four stages of the Color Image to SVG Converter, from your input to the finished file.

What is special about color vectors

Up to 64 layers
Choose more colors for subtle shading or fewer for a bold graphic.
Isolate or hide colors
Hover a color in the layer list to isolate it, or click it to hide it before downloading.
Near-duplicates merged
Almost identical shades collapse into one layer, which keeps files small.

Step by step

Color Image to SVG Converter process

Four steps convert a color image to SVG. The color count is the main control.

  1. Add your color image

    Drop an image with clear color regions such as an illustration or poster.

    Tip: Flat colors trace best.

    Drop Color Image
  2. Choose the number of colors

    Start with 20 and watch the palette panel. Remove colors that only add noise.

    Tip: More colors mean more layers and a larger file.

    ColorsDetailSmoothness
  3. Set smoothness

    Around 40% rounds pixel stair-steps while keeping shapes recognisable.

    Tip: Raise it for organic shapes.

  4. Download the SVG

    Save the file and edit layers in your vector editor.

    Tip: Hide layers you do not want first.

    Download SVGcolor-image-to-svg.svg

Use the Color Image to SVG Converter

Reference

Color Image to SVG Converter settings / conversion chart

The table lists color counts by image type. The chart shows how well each type becomes a vector.

Vector fit by color complexity

Vector fit by color complexityFlat graphic: 5/5; Illustration: 4/5; Smooth gradient: 3/5; Photograph: 2/5.Flat graphic5/5Illustration4/5Smooth gradient3/5Photograph2/5
Guide, 1 to 5: fewer, flatter colors convert best.

At a glance

  • Converts best: Flat graphic.
  • Needs the most care: Photograph.

Guide, 1 to 5: fewer, flatter colors convert best.

Color Image to SVG Converter settings by image type
Image typeColorsDetailSmoothnessResult
Flat graphic6–1270%35%Crisp layers
Illustration16–2475%40%Rich, clean layers
Smooth gradient28–4065%55%Fine bands
Photograph40–6455%60%Detailed poster look

Answers

Color Image to SVG Converter FAQ

Questions people ask about the Color Image to SVG Converter, answered for this specific use case.

How many colors can I keep?

Up to 64. The slider runs from 2 to 64, and the palette panel lists every layer.

Can I choose the colors myself?

Colors are picked automatically from the image. You can hide any layer and recolor the rest in a vector editor.

Can I hide a color layer?

Yes. Click the color in the layer list to hide it, and it is removed from the download too.

Why do I see color bands instead of smooth gradients?

Vector layers are flat. Increase Colors to make the bands finer.

Why is my file large?

Each extra color adds shapes. Reduce Colors or raise Remove specks to shrink it.

Ready to try it?

Your result is one drop away.

Open the Color Image to SVG Converter

All converters

Every free converter and SVG tool

43 free tools that run in your browser. Pick a converter below, or search by format or task.