Skip to content
ChromaBrew

JPG to SVG converter

Convert JPG, PNG or any raster image to SVG using color quantization. Adjust the color count for quality vs file size. Free, no sign-up, runs in your browser.

Drag and drop a JPG, PNG or any image, or

16
Smaller fileBetter quality

Uses color quantization to reduce the image to N colors, then outputs an SVG with optimized run-length rectangles. Best for logos, icons and illustrations — photos will produce large files.

Want the full design system from a color? Open the color palette generator to create accessible palettes, semantic tokens, light and dark themes, and production-ready CSS — all from a single color.

How to use this tool

  1. Upload a JPG, PNG or any raster image.
  2. Adjust the color count to balance quality and file size.
  3. Download the resulting SVG.

Frequently asked questions

How does JPG to SVG conversion work?
The image is read pixel-by-pixel on a canvas, then quantized to reduce the color palette. Adjacent pixels of the same color are merged into run-length rectangles, producing an optimized SVG.
Why would I convert a JPG to SVG?
SVGs scale infinitely without losing quality, load faster for simple graphics, and can be edited in design tools. Logos and icons benefit most — photos produce large files.
How many colors should I use?
Fewer colors (4–16) produce smaller files with visible banding — great for logos. More colors (32–128) preserve detail but create larger SVGs. Start with 16 and adjust.