Vector Path Lab

JPG to SVG converter that cleans up JPEG noise

Compression blocks, halos and off-white backgrounds are removed before tracing, so a JPG logo comes out as a few clean paths. Nothing is uploaded.

No image yet

Drop an image here

JPG or JPEG (PNG, WebP and GIF work too). Or paste one with Ctrl+V / ⌘V.

Flat colors. Cleans compression blocks and off-white backgrounds first.

Colors
    Clean up noise
    Open an image to see paths, nodes and file size.
    Try:

    What the JPEG preset does before tracing

    1. Step 1
      Smooths the blocks

      An edge-preserving blur averages each pixel with the neighbors that are close to it in color. Flat areas become flat; edges between real colors stay where they are.

    2. Step 2
      Finds the real colors

      Shades are grouped by how similar they look, and the in-between colors along edges are assigned to one side or the other instead of becoming a color of their own.

    3. Step 3
      Votes away the fringe

      A neighborhood vote removes one-pixel slivers left along edges, and islands smaller than the speck size join the color around them.

    Measured on two JPEGs

    Both are our own test images: a two-color badge saved at JPEG quality 32 on an off-white gradient, and a signature on scanned paper with grain and dust. For each we also kept the drawing before the JPEG damage, and compare the SVG with it.

    ImageTracerPathsNodesSVG size
    Badge, 16 KB JPEGThis converter, JPEG logo preset2541.5 KB
    VTracer, default settings7415,200193 KB
    imagetracerjs, default settings4,12920,794700 KB
    Signature, 211 KB JPEGThis converter, Line art preset11533.4 KB
    VTracer, default settings3,90244,3991498 KB
    imagetracerjs, default settings85,388296,29712882 KB

    Against the undamaged drawings, the badge SVG differs by 0.3% of the color range on average and its shapes overlap the originals by 98.4%; the signature by 1.0% and 85.0% (thin strokes lose the most to any outline error). Both results are on the examples page to download.

    Which preset for which JPG

    A logo or icon saved as JPG
    JPEG logo. If small details disappear, set Clean up noise to Light and lower Ignore specks.
    A scan, sketch, stamp or signature
    Line art. Move Threshold until thin lines are complete but paper texture is gone.
    A photo or a painting
    Photo, with 8 to 16 colors. Higher counts look closer but every color adds a layer of paths.
    Text in a screenshot
    Logo, with Detail raised. Small text needs the image at 2× or larger to keep letter shapes.

    Starting from a PNG instead? The PNG to SVG converter is the same tool with the logo presets first.

    JPG to SVG questions

    Why do other converters turn my JPG into thousands of shapes?
    JPEG compression adds noise: blocky patches near edges, faint colored halos and backgrounds made of dozens of near-whites. A tracer that takes every shade at face value draws a shape around each patch. Run with default settings on our quality-32 test badge, VTracer produces hundreds of paths and imagetracerjs thousands. The JPEG preset smooths the noise and picks the real colors first, so the same file comes out as two paths.
    Should I convert the JPG to PNG first?
    No. Saving a JPEG as PNG keeps every compression artifact, it just stores them losslessly. Open the JPG directly and use the JPEG logo preset, or Line art for scans.
    Can a JPG get a transparent background?
    Yes. JPEG has no transparency, but Remove the background drops the color that fills the border of the image, including off-white and slightly uneven backgrounds. If the background has a strong gradient or a photo, untick it and delete the background shape in your editor instead.
    How low can the JPEG quality be?
    Our test badge is saved at quality 32 and still traces to two clean shapes. At very low quality, thin lines and small text merge with their surroundings before tracing, so start from the largest copy of the image you have.
    What about JPEG photos?
    Photo mode posterizes them into a set number of color bands, 4 to 32. That gives a flat, graphic look. A photo can't become a small, editable SVG that still looks like a photo.