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.
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.
What the JPEG preset does before tracing
- Step 1Smooths 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.
- Step 2Finds 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.
- Step 3Votes 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.
| Image | Tracer | Paths | Nodes | SVG size |
|---|---|---|---|---|
| Badge, 16 KB JPEG | This converter, JPEG logo preset | 2 | 54 | 1.5 KB |
| VTracer, default settings | 741 | 5,200 | 193 KB | |
| imagetracerjs, default settings | 4,129 | 20,794 | 700 KB | |
| Signature, 211 KB JPEG | This converter, Line art preset | 1 | 153 | 3.4 KB |
| VTracer, default settings | 3,902 | 44,399 | 1498 KB | |
| imagetracerjs, default settings | 85,388 | 296,297 | 12882 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.