Image to SVG Tracer
Convert a PNG or JPG logo or drawing to SVG vector paths in your browser. Presets, color count and speck filter, safe preview and download, no upload.
Larger is more precise but slower.
- SVG size
- –
- Paths
- –
- Colors
- –
- Time
- –
SVG code
How to convert an image to SVG
- Drop a PNG, JPG, WebP or GIF image on the drop zone, or click it to choose one. The original appears on the left.
- Pick a Preset: - Logo (flat colors, clean shapes) for logos, icons, stamps and flat illustrations; - Detailed (more colors and paths) for drawings with shading or many colors; - Posterized (4 smoothed colors) for a stylized, poster-like result from a photo.
- Adjust Number of colors (2 to 64) and Ignore specks smaller than (px) if needed. The preset fills in sensible values for both.
- Choose a Working size (longest side). The image is traced at that size; the SVG itself keeps the original dimensions.
- Click Trace to SVG. The result appears on the right with its file size, number of paths and colors, and how long the tracing took.
- Click Download SVG, or Copy SVG code to paste the markup into your HTML or design tool.
How tracing works
This tool uses imagetracerjs, an open-source tracer, in three steps:
- Color quantization: the image is reduced to the number of colors you chose. Each pixel is assigned to the closest palette color, and the palette is refined over several passes.
- Edge detection: for each color, the outlines of every area of that color are followed, including holes (such as the inside of an “O”).
- Path fitting: the outlines are simplified into straight lines and quadratic curves, which become
<path>elements in the SVG.
Areas smaller than the Ignore specks smaller than (px) threshold are dropped, which removes noise and JPG artifacts. A value of 0 keeps everything; 8 to 20 is good for logos; larger values give a cleaner but simpler drawing. Fully transparent areas are removed, so a logo on a transparent background stays transparent.
What gives good results
Tracing works best on simple logos and drawings: few flat colors, clear edges, no gradients. A scanned sketch, a black-and-white signature or a pixel-art icon traces very well with 2 to 8 colors.
Photos are a different story. A photo contains thousands of subtle tones, so a faithful vector version needs many colors and tens of thousands of paths, and the SVG ends up much heavier than the JPG. Use Posterized (4 smoothed colors) for an artistic effect instead, and don’t expect a photographic result. If the SVG becomes very large, the tool warns you.
Tips for a cleaner logo:
- start from the largest, sharpest version of the image you have;
- set Number of colors to the real number of colors in the logo (including the background);
- raise the speck threshold if you see small dots around edges.
Privacy and preview safety
The image is traced in your browser and never uploaded. The SVG preview is shown as a plain image from a private blob address, never inserted into the page, so even an unusual file can’t run code.
Frequently asked questions
Can I convert a JPG to SVG for a cutting machine?
Yes. For Cricut or Silhouette cuts, use the Logo preset with 2 colors: you get clean black shapes on a white background. Delete the background shape in your cutting software if needed.
Why is my SVG file larger than the original PNG?
Every color area becomes a path with many points. Reduce Number of colors, raise Ignore specks smaller than (px) or choose a smaller Working size (longest side) to get a lighter file.
Will the SVG be infinitely sharp?
Yes: the paths scale to any size without blur. The shapes, however, can only be as precise as the image that was traced, so small or blurry sources give rounder, less accurate edges.
Why does tracing take a few seconds?
Tracing is computed on your device. Large working sizes and many colors multiply the work. 800 px is a good balance; try 400 px for a quick preview.
Is this the same as embedding the image in an SVG?
No. Some converters simply wrap the PNG inside an SVG file, which doesn’t make it scalable. This tool builds real vector paths.
Related tools
- SVG to PNG Convert SVG to PNG, JPG or WebP in your browser at any width, height, scale or DPI, with a transparent or colored background. Batch and ZIP, no upload.
- Image Format Converter Convert images between PNG, JPG, WebP, BMP and ICO in your browser. Batch conversion, favicon sizes and transparency options, with no upload.
- Favicon Generator Create favicon.ico, PNG icons, the apple-touch-icon and site.webmanifest from one image or an emoji, with ready-to-paste HTML tags. ZIP download, no upload.
- Image Resizer Resize JPG, PNG and WebP images by pixels or percentage, keep the aspect ratio and process several photos at once, right in your browser.