跳到主要内容

JPG to SVG

Trace a JPG into SVG. Defaults denoise more aggressively, to calm JPEG blocks and speckle. Best for logos and flat graphics, not photos.

For both directions, use the SVG converter. To keep transparency, use PNG to SVG. Then edit the SVG, or use the image converter for other bitmaps.

No image? Try a sample

Preset

Color

Color count: 8

Detail

Drops the color that touches the outer edge. A transparent PNG stays transparent.

One image at a time, up to 8 MB. The long edge is scaled to 1024 pixels or less before tracing, and transparency is kept. This version has no photo preset. Text becomes paths.

What JPG to SVG is for

JPEG squeezes smooth color into blocks. On a logo or a flat graphic those blocks turn into a ring of tiny paths. This page uses the same tracer as PNG to SVG, but it opens with stronger denoising: fewer colors and a higher speckle filter. It is meant for logos and icons with clear color areas. Photo gradients are outside this version.

Tracing stays in the browser. The image is not uploaded.

Which files

.jpg and .jpeg come first. PNG and WebP can be traced too. One image at a time, up to 8 MB. A long edge above 1024 pixels is scaled down before tracing so the path file stays smaller.

JPEG has no alpha channel. For a transparent logo, use PNG to SVG. The lossy compression is defined in ITU-T T.81, hosted by the W3C.

How the result is shown

The preview loads the cleaned SVG from a blob URL in an image element. MDN's img element reference describes that mode: scripts inside an SVG used as an image do not run. Lettering becomes paths, so the font cannot be changed afterward.

To reshape the result, use the SVG editor. Tracing uses VTracer. If that tracer does not start, a compatibility tracer runs instead and the paths are rougher.

How it works

The pipeline matches PNG to SVG, with a tighter start for JPEG blocks.

  1. Color quantization. The opening preset uses fewer colors than the PNG page's logo preset, so a JPEG block edge is less likely to become its own fill.
  2. Region tracing. A higher speckle filter drops the ring of tiny regions around a flat color.
  3. Curve fitting. VTracer fits the remaining regions. If it does not start, imagetracerjs is the fallback and the curves are coarser.

The long edge is scaled to 1024 pixels or less before tracing. Input is capped at 8 MB. A later bitmap export, on SVG to PNG or SVG to PDF, caps the long edge at 4096 pixels.

Privacy

Files never leave your browser. The JPG is decoded, quantized, and traced on this device. The download is built here. There is no upload and no account.

Tips and limits

  • One image at a time, up to 8 MB. A long edge above 1024 pixels is scaled down before tracing.
  • Photos and smooth gradients still split into many paths. This page is for logos and flat color.
  • Bitmap export on the sibling pages caps the long edge at 4096 pixels. That scale is pixels, not print DPI.

References