OmniFeed Search

JPG to SVG converter

Trace a JPG logo, drawing, or scan into an SVG made of filled shapes that stay sharp at any size. A JPG has no transparent areas, so its white background is traced into shapes too, unless you turn on Leave out the white background under More options. It runs in your browser; nothing you enter is uploaded.

For the reverse, use the SVG to JPG converter.

You can also drop images on this box. Your images never leave your browser: the site doesn't store them, and the tracing happens on your device.

More options

How a JPG becomes shapes

The converter sorts the JPG's pixels into the number of colors you pick, from black and white up to 64, and draws the outline of each area of one color as a shape filled with that color. Each color is the average of the pixels sorted into it, so a logo's exact color may come out a few shades off and need setting again in an editor such as Inkscape or Illustrator. A JPG larger than 1,200 pixels on its longest side is scaled down to that size before tracing, and the SVG still opens at the JPG's own width and height.

Getting a clean trace from a JPG

JPG compression leaves faint blotches and off-color pixels around sharp edges, most of all in logos and text saved at low quality. The tracer takes them for detail and outlines them, so they turn into specks and ragged edges, and a simple logo can come out with thousands of shapes. Each result shows its shape count, and three settings bring it down:

A phone photo of a drawing usually has shadows and paper that isn't evenly white, and both trace as gray patches. A flatbed scan or a photo taken in even daylight traces cleaner, and raising the contrast in a photo editor first helps too.

Removing the white background

Leave out the white background removes every shape whose color is white or within about 6% of it, wherever the shape is. White inside the design, such as the middle of a letter O, becomes a hole as well, which is what a cut file needs but not what a printed sticker needs.

Paper that came out light gray in the JPG stays, because it isn't close enough to white. Choose Black and white first and that paper turns pure white and drops out, leaving only the black shapes: the one-color design that Cricut Design Space or laser software such as LightBurn cuts or engraves along its outlines.

Tracing a photo

A traced photo looks like a poster, since every area is one flat color, and skin, sky, and shadows turn into bands. Using 32 or 64 colors with the Detailed setting keeps more of the picture, but it makes thousands of shapes, and the SVG can end up larger than the JPG. A photo that has to keep its shading is better left as a JPG.

Some converters turn a photo into an SVG by putting the JPG's pixels inside an SVG file. The file ends in .svg but blurs when enlarged, just like the JPG. Open it in a text editor to check: a long run of letters after data:image/jpeg;base64, is the JPG, embedded unchanged.

Other ways to trace a JPG

Inkscape, which is free, and Adobe Illustrator trace images too, with Trace Bitmap and Image Trace. Both let you set the cutoff between black and white yourself and fix stray shapes by hand in the same window. Inkscape's Trace Bitmap also has a centerline mode, which turns a drawn line into a single path down its middle, as a pen plotter needs, where this tool draws a thin shape with an edge on each side.

Questions

Can I convert a JPG to SVG without losing quality?

For a logo or line drawing, mostly: the shapes are sharp at any size, though compression blotches and soft edges get simplified. For a photo, no, because its shading turns into flat bands of color.

Is JPEG to SVG the same as JPG to SVG?

Yes. JPG and JPEG are two file extensions for the same format, and the converter opens both, along with PNG, WebP, HEIC, and other image files.

More in image converters

Other tools