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.
Convert a JPG, PNG or any raster image to SVG by color quantization, right in the browser. Fewer colors mean smaller files with clean flat shapes — ideal for logos and icons; more colors preserve photo detail.
Adjacent same-color pixels merge into rectangles, which keeps the SVG lightweight and editable in any vector tool.
Drag and drop one or more JPG, PNG or image files, or
Upload many images and convert them all at once. Uses color quantization to reduce each 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
- Upload one or more JPG, PNG or raster images.
- Adjust the color count to balance quality and file size.
- Convert them all at once and download each SVG or all as a .zip.
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.
Related tools
Related guides
Development · 20 Aug 2026
SVG vs JPG: when to use which (and how to convert)
Vector or raster? A practical breakdown of SVG vs JPG and how to convert between them without losing your sanity.
Short lessons · 28 Aug 2026
Free AI images using an AI coding tool + SVG
You can get genuinely free AI images: ask a coding assistant to write SVG, then convert it to JPG. Here's the workflow and its honest limits.
JPG to SVG converter runs entirely in your browser — nothing you enter is sent to a server.