← All articles 8 min read

How to Vectorize an Image (4 Free Methods)

Vectorizing an image means converting it from a grid of pixels (raster) to mathematical paths and shapes (vector). The result is an SVG, EPS, or AI file that scales to any size without losing quality — from a 16px favicon to a 10-foot banner, every edge stays sharp.

The catch: vectorization is a tracing process, not a format conversion. Software analyzes the pixel data and draws paths that approximate the shapes it finds. The output is a reconstruction, not a copy. It works brilliantly on logos, icons, line art, and simple illustrations. It produces unusable results on photographs.

This guide covers four free methods, explains what vectorizes well (and what doesn't), and helps you pick the right tool for your source image.

What Is Image Vectorization?

Raster images (JPG, PNG, BMP) store color values for each pixel in a grid. Scale them up and you see the grid — blurry edges, visible pixels. Vector images (SVG, EPS, AI) store mathematical descriptions of shapes — Bézier curves, lines, fills. Scale them up and the math recalculates — edges stay sharp at any size.

Property Raster (JPG, PNG) Vector (SVG, EPS)
Data model Pixel grid Mathematical paths
Scaling Degrades past native resolution Infinite — always sharp
File size Proportional to pixel count Proportional to path complexity
Best for Photos, complex gradients Logos, icons, illustrations, text
Editability Pixel-level (Photoshop) Path-level (Illustrator, Inkscape)
Web use <img> tag, CSS background Inline SVG, CSS/JS styling, animation

Vectorization converts the left column into the right column through automated tracing. The quality depends entirely on the source image.

For detailed format comparisons, see SVG vs PNG: When to Use Each Format.

What Vectorizes Well (and What Doesn't)

Before choosing a method, assess your source image. This saves you time and frustration.

Good Candidates for Vectorization

Poor Candidates

Rule of thumb: If you can describe the image as "shapes on a background," it will vectorize well. If you'd describe it as "a photograph," keep it raster.

Method 1 — Inkscape Trace Bitmap (Desktop, GPL-2.0)

Inkscape 1.4 is the most powerful free vectorization tool. Its Trace Bitmap feature offers multiple tracing algorithms with fine-grained control over sensitivity, smoothing, and output complexity. Licensed under GPL-2.0. Runs on Windows, macOS, and Linux.

Steps

  1. Open Inkscape 1.4 and go to File → Open. Select your raster image.
  2. Click on the imported image to select it.
  3. Go to Path → Trace Bitmap (or Shift+Alt+B).
  4. Choose a tracing mode:
    • Brightness Cutoff: Best for black-and-white logos. Set the threshold to control what counts as "black."
    • Edge Detection: Best for line art. Traces edges regardless of fill color.
    • Color Quantization: Best for multi-color graphics. Set the number of colors to trace.
    • Multiple Scans → Colors: Produces layered output with one path per color band. Best for complex illustrations.
  5. Adjust the threshold/detail slider and click Update to preview.
  6. Click Apply when satisfied.
  7. Delete the original raster image (it sits underneath the traced paths).
  8. Go to File → Save As and choose Plain SVG or Inkscape SVG.

Tips for Better Results

For JPG-specific tracing steps, see How to Convert JPG to SVG. For PNG-specific steps with transparency handling, see How to Convert PNG to SVG.

Method 2 — Potrace CLI (GPL-2.0)

Potrace 1.16 is a command-line tracing program that converts bitmap images to SVG, EPS, or PDF vector output. It's the engine behind Inkscape's Trace Bitmap feature. Licensed under GPL-2.0.

Potrace works only with monochrome (black-and-white) input. For color images, you need to pre-process with ImageMagick or GIMP to extract individual color layers.

Install

Basic Usage

Potrace takes BMP input. Convert other formats first with ImageMagick 7.1 (Apache 2.0):

# Convert JPG/PNG to BMP, then trace
magick input.jpg -threshold 50% input.bmp
potrace input.bmp -s -o output.svg

The -threshold 50% flag converts to pure black-and-white. Adjust the percentage to control how much detail gets captured (lower = more white, higher = more black).

Control Tracing Quality

potrace input.bmp -s -o output.svg --turdsize 5 --alphamax 1.0 --opttolerance 0.2

Batch Vectorize

for f in *.png; do
  magick "$f" -threshold 50% "/tmp/${f%.png}.bmp"
  potrace "/tmp/${f%.png}.bmp" -s -o "${f%.png}.svg"
done

Best for: Automated pipelines, CI/CD icon generation, and users who prefer command-line tools. Produces extremely clean SVG output for monochrome images.

Method 3 — Pixotter Online Vectorizer

Pixotter's converter handles raster-to-SVG conversion in the browser using WebAssembly. Drop your image, select SVG output, and download the traced vector.

Steps

  1. Open Pixotter's Convert tool.
  2. Drop your raster image (JPG, PNG, BMP) onto the page.
  3. Select SVG as the output format.
  4. Click Convert and download the SVG file.

Processing happens locally — your image never leaves your browser. No file size limits, no account required.

Best for: Quick vectorization without installing software. Works on any OS with a modern browser.

Method 4 — Adobe Illustrator Image Trace (Proprietary)

Adobe Illustrator's Image Trace feature is the industry standard for vectorization. It's not free — Illustrator requires a Creative Cloud subscription ($22.99/month for the single-app plan as of 2026).

Steps

  1. Open your image in Illustrator.
  2. Select the image on the artboard.
  3. Go to Object → Image Trace → Make.
  4. Open the Image Trace panel (Window → Image Trace) to adjust:
    • Preset: Choose from High Fidelity Photo, Low Fidelity Photo, Black and White Logo, Sketched Art, etc.
    • Colors: Limit the number of colors in the trace.
    • Paths/Corners/Noise: Fine-tune path smoothing and detail.
  5. When satisfied with the preview, go to Object → Image Trace → Expand to convert the trace to editable paths.
  6. Export as SVG: File → Export → Export As → SVG.

Best for: Professional designers who already have a Creative Cloud subscription and need the most control over tracing parameters.

Raster vs Vector — Detailed Comparison

Aspect Raster Vector
Common formats JPG, PNG, WebP, AVIF, GIF, TIFF, BMP SVG, EPS, AI, PDF
Created by Cameras, scanners, screenshots, renders Design software, tracing tools, code
Scale behavior Pixelates past native resolution Infinite scaling without quality loss
Color handling Per-pixel, millions of colors natural Per-path fills, gradients possible but complex
File size for simple graphics Large (full pixel grid stored) Tiny (only paths stored)
File size for photos Efficient (compression algorithms) Enormous (thousands of paths)
Web rendering Decoded by browser, fixed resolution Rendered by browser's SVG engine, any resolution
Animation Frame-based (GIF, APNG) Path-based (CSS, SMIL, JS)
Editing Destructive (pixel modification) Non-destructive (path manipulation)

After Vectorizing: Next Steps

Once you have your SVG, you may need to:

FAQ

Can I vectorize a photograph? Technically yes, but the result won't resemble the original in a useful way. Tracing a photograph produces thousands of overlapping colored paths that look like a posterized abstraction. Photographs should remain in raster formats (JPG, PNG, WebP). Vectorization is for graphics, logos, and illustrations.

What resolution should my source image be? As high as possible. Tracing algorithms work with the pixel edges they can detect — more pixels means more accurate edge detection. A 500×500 logo gives rougher results than a 2000×2000 version of the same logo. If you have access to a higher-resolution version, use it.

Which vectorization method produces the smallest SVG? Potrace, because it traces monochrome outlines and produces minimal path data. Inkscape and Illustrator produce larger files when tracing multi-color images because they create separate paths for each color region. Run any SVG through SVGO 3.3 (MIT license) afterward to reduce file size further.

Can I vectorize text in an image? Tracing can recover letterforms as vector paths, but the result isn't editable text — it's a group of shapes that look like letters. For editable text, identify the font (use a tool like WhatTheFont) and re-type it. You'll get cleaner results than tracing.

What's the difference between tracing and auto-tracing? They're the same thing. "Auto-trace" refers to the automated bitmap-to-vector conversion that tools like Inkscape and Illustrator perform. "Trace" is the general term. Manual tracing means drawing vector paths by hand over a raster reference — more precise but much slower.

Is SVG the only vector format? No. EPS (Encapsulated PostScript), AI (Adobe Illustrator), and PDF can all store vector data. SVG is the standard for web use because browsers render it natively. EPS and AI are common in print workflows. PDF is hybrid — it can contain both vector and raster elements.

How do I vectorize a logo with multiple colors? Use Inkscape's Color Quantization or Multiple Scans mode. Set the number of colors to match your logo (usually 2-5). The tracer creates separate paths for each color region. Review and clean up the result — automated multi-color tracing sometimes produces overlapping or misaligned paths at color boundaries.

Also try: Compress Images