PerfectVector
By Irene Kim11 min read

How to Convert an Image to an SVG for CNC (Clean Paths Your CAM Will Cut)

A CNC follows vector paths, not pixels, so your design has to become a clean SVG or DXF first. Here's how to convert an image into CAM-ready, closed-path vectors.

On this page

To convert an image to an SVG for CNC, you trace the design into vector paths, clean those paths down to closed, low-node shapes, and export them as SVG or DXF for your CAM software (VCarve, Carbide Create, Easel, Fusion 360, or SheetCAM), where the paths become toolpaths that drive the bit. The conversion takes seconds. Whether the result cuts depends on two things you control: starting from flat, high-contrast art, and getting paths clean enough that your CAM doesn't reject them.

This guide walks the whole route, from picking the image to assigning toolpaths, for routers and plasma tables alike. If vector files are new to you, what image vectorization actually does is a quick primer first.

Short on time? The whole workflow
  1. Check the design suits cutting. Flat, high-contrast art (logos, line art, lettering) cuts and carves; photos and gradients don't.
  2. Start from your sharpest image, with strong contrast and a clean background.
  3. Convert it to closed vector paths with an AI vectorizer, and keep your colors separate for cut versus engrave.
  4. Check the paths: closed shapes, a sane node count, no stray background rectangle, no doubled lines.
  5. Export SVG or DXF, import to your CAM, scale to the workpiece, and assign profile, pocket, or V-carve toolpaths.

Why a CNC needs a vector, not an image

A PNG or JPG is a grid of colored dots. A CNC has no way to follow dots; it drives the bit along a path, a continuous line with real coordinates from start to finish. That line is what a vector path is, and your CAM software turns it into a toolpath: the route the cutter actually takes. An SVG or DXF stores those paths, which is why every CNC job eventually asks you for one.

That also explains why path quality matters so much here. An auto-tracer that transcribes every pixel edge leaves you with open, broken paths and hundreds of stray nodes, and that is exactly what CAM software rejects: "no closed profiles," jagged curves, a sketch that crawls. On a sheet of aluminum or a nice slab of walnut, a path that breaks at the first corner costs real material. What fixes that is a cleaner file, not a better machine.

Paths vs pixels
Diagram comparing a raster image made of pixels with a vector path made of closed outlines, showing a CNC bit able to follow the vector path but not the pixel grid
A CNC bit follows a continuous path. Pixels give it nothing to follow.

Which images cut and carve well, and which don't

What makes a good image for CNC? Flat, high-contrast artwork with clear edges: logos, monograms, lettering, silhouettes, line art, ornaments. These trace into clean closed shapes your CAM can profile, pocket, or V-carve. Photographs, gradient-heavy art, and anything with soft shading do not, because there are no clean edges to trace; you get blobby outlines that mean nothing as a toolpath. The converter tools that advertise "photo to CNC" gloss over this, but the result is the same on every machine.

Your imageCut or carve it, or notWhy
Logo, monogram, letteringYesClear edges trace into closed shapes for profile or V-carve
Silhouette or bold line artYesSingle clean outline, ideal for signs and metal art
Flat multi-color designYes, separate the colorsEach color becomes its own cut or engrave operation
Photo or portraitNoNo clean edges; trace produces blobs, not a toolpath
Gradient or shaded artFlatten first, or noSoft transitions can't become a defined path
3D relief lookNot from a vectorA relief carve needs a grayscale depth map, not a flat outline

If your design lands in a "no" row, the last section covers what to reach for instead. For everything else, on to the conversion.

SVG or DXF? What your CAM software wants

Both formats store the same vector paths; the question is which your software prefers. DXF is the long-standing CAD and CAM exchange format and tends to be the safe choice for plasma and Fusion-style pipelines. SVG is just as workable in many hobby CAM tools and keeps your colors, which makes assigning operations easier.

CAM softwareUsually happiest with
Carbide Create, Easel, VCarve / AspireSVG (keeps colors for layer assignment)
Fusion 360, plasma CAM, SheetCAMDXF

If your tool accepts both, start with whichever keeps your work simplest. There's a fuller breakdown of the trade-offs in SVG versus DXF for cutting; the short version is that a clean path matters more than the container it ships in.

The workflow: from image to CAM-ready vector

1. Start from the right source image

The trace can only be as clean as what you feed it. Use the largest, sharpest version of the image you have, with strong contrast between the design and its background. A clean or transparent background keeps the converter from tracing a rectangle around your art, which would otherwise import as an extra profile your CAM tries to cut. Avoid heavily compressed JPGs where you can; their softened edges become wobble that the bit physically follows. More on protecting edge detail in converting without losing quality.

2. Convert it to clean closed paths

Upload the image to an AI vectorizer and let it trace. You can convert your image to CNC-ready vectors directly and export them as SVG or DXF; the first conversions are free, no credit card required. What you want from this step is specific: closed paths the bit can follow all the way around, real curves instead of faceted segments, and a low node count rather than hundreds of speckled fragments. That cleanliness is what decides whether the next steps go smoothly, which is why it gets its own check in step 4.

3. Separate your colors into operations

Each color in a vectorized design can become a separate operation: an outline to profile out, an interior to pocket, lettering to V-carve. Think in operations, then keep those colors apart rather than flattened into one shape. The old manual route for this was painful: reduce colors by hand in a pixel editor, split the design into black-and-white sub-images, trace each one separately, then stack them on layers. A converter that keeps your colors separate on the way out skips that entire grind. The thinking is the same as building a layered file for a cutting machine, just with cut and carve operations instead of vinyl colors.

4. Check the paths before you load CAM

Open the vector (your CAM's preview is fine) and look for four things:

  1. Closed shapes. An open path has no inside for the software to profile or pocket. This is the most common reason CAM throws "no closed profiles."
  2. Node count. Hundreds of needless anchor points make the toolpath stutter and the sketch crawl, and they leave faceted curves the bit traces as tiny flats. A clean trace uses far fewer; why traces end up over-noded shows what a sane path looks like.
  3. No stray background box. If a rectangle got traced around the art, delete it before you generate toolpaths, or the machine will cut it.
  4. Single lines, not doubled ones. If the trace outlined both sides of a thin stroke, you get two paths a hair apart and the bit cuts the line twice. That double-line problem is worth fixing at the trace, not in CAM.

5. Import to CAM and assign toolpaths

Bring the vector into your software and set up the cut. The menus differ, but the moves are the same:

  • Carbide Create, Easel, VCarve / Aspire. Import the SVG, set the real-world size against your stock, and assign operations per shape: profile to cut a shape out, pocket to clear an area, V-carve for sign lettering and fine detail.
  • Fusion 360. Insert the DXF onto a sketch plane, then drive your 2D toolpaths from the profiles.
  • Plasma (SheetCAM and similar). Import the DXF, set lead-ins and kerf, and generate the cut paths.

Whichever you use, the color separation from step 3 is what makes assigning cut versus engrave a quick job instead of a fight. Generate the G-code, then run it.

What this looks like with PerfectVector

PerfectVector was built for the part of this workflow that goes wrong: the trace. It rebuilds your image as smooth, closed, low-node paths with real curves instead of pixel-chasing jitter, keeps your colors separate so you control cut versus engrave, and exports straight to DXF or SVG. That replaces the reduce-colors, split-into-sub-images, trace-each, clean-up-by-hand marathon with a single upload.

Before
A logo PNG zoomed in to show soft pixel edges and compression noise before vectorization
The raster source: soft edges and noise.
After
The same logo converted by PerfectVector into closed, low-node vector paths shown with visible anchor points
Closed, low-node paths a CAM tool turns into clean toolpaths.

One honest boundary: PerfectVector gives you the clean vector, not the toolpath. It exports DXF or SVG (and PNG, JPG, or PDF if you need them); your CAM software is what assigns operations and generates G-code. A clean closed path is simply what makes that step reliable. Convert an image and export it as DXF or SVG, or start from the general image to vector converter if your project isn't CNC-specific.

When converting isn't the right move

Honesty saves material:

  • Photos and portraits never become good cut or carve files. There are no clean edges to trace, so you get blobs. No converter changes this, whatever the marketing says.
  • Relief and 3D carving can't come from a flat vector at all. A relief toolpath reads a grayscale depth map, not an outline, so that's a different workflow entirely.
  • Detail finer than your bit won't cut. A 6mm end mill can't follow a 1mm gap, and a V-bit has its own limits. Simplify the design or size the piece up.
  • Halftones and stippling are thousands of dots; as paths they're thousands of plunges. Leave those to engraving or rethink the art.

The quick filter: if you could draw the design as flat shapes with a marker, it'll trace and cut. If it only reads with shading and depth, reach for a different process.

FAQ

What image format converts best for CNC? Start from a high-resolution PNG with strong contrast and a clean background. Flat, graphic art like logos, lettering, and line art traces into clean closed paths. Avoid heavily compressed JPGs, whose soft edges add wobble, and avoid photos and gradients, which have no clean edges to trace.

Should I use SVG or DXF for CNC? Both store the same paths. DXF is the safe pick for Fusion 360 and most plasma and SheetCAM pipelines, while SVG works well in Carbide Create, Easel, and VCarve and keeps your colors for assigning operations. If your CAM accepts both, use whichever keeps your setup simplest.

Why does my CAM software say "no closed profiles"? The traced paths are open, so there's no enclosed shape to profile or pocket. This usually comes from an auto-tracer that left gaps or doubled the lines. Re-convert for closed, low-node paths, and delete any stray rectangle traced around the design before you generate toolpaths.

Can I CNC a photo by converting it to a vector? Not usefully. A photo's soft gradients have no clean contours, so vectorizing one gives blobby paths rather than a real cut line. For a photographic look in material, a grayscale relief or laser engraving fits better than a vector cut.

Does converting an image give me a toolpath or G-code? No. Converting gives you clean vector paths as an SVG or DXF. Your CAM software is what turns those paths into toolpaths and G-code, where you set the bit, depths, and feeds. The cleaner the vector, the smoother that step goes.


Got a design waiting to become a cut? Convert it to CNC-ready vectors, run the path check, and import the SVG or DXF into your CAM to assign toolpaths. A clean closed path is what makes the cut the easy part.

More from the blog

Ready to create
perfect vectors?