Potrace Image Vectorizer

100% Client-Side Private Potrace SVG Vectorizer. Convert raster images to infinitely scalable vector paths.

100% Client-Side Private Engine: Vector tracing runs locally in browser RAM using WebAssembly & Canvas algorithms. Your artwork and images are never uploaded to any server.
BG:
Optimal Cut
Paths: 0 | Nodes: 0
MIRROR ACTIVE (HTV Mode)
Click Canvas to Erase Color
100%
Upload an image to start
Live Vector SVG Inspector

The Physics of Vector Cuts: Why Raster Pixels Fail on CNC & Drag-Knife Cutters

Cutting machines such as the Cricut Maker 3, Cricut Explore Air 2, Silhouette Cameo 4, and Glowforge Laser Cutters do not operate on raster pixel grids. Unlike inkjet printers that spray microscopic color droplets in horizontal scanline passes at 300 DPI, vinyl cutting plotters interpret continuous 2D mathematical coordinate streams—specifically M (Move To), L (Line To), C (Cubic Bezier Spline), and Z (Close Path) commands.

When an unoptimized PNG is imported into Cricut Design Space without proper geometric contour tracing, the cutter treats every microscopic stair-stepped pixel edge as an individual cut stroke. Because drag knives feature a physical blade offset (typically 0.25mm of caster lag between the blade tip and pivot axis), cutting jagged stair-steps forces the blade to rapidly oscillate. This causes extreme machine chatter, blade chipping, chewed vinyl, ruined Heat Transfer Vinyl (HTV), and thousands of redundant anchor points that freeze Design Space.

The Mathematical Formulation of Cubic Bezier Splines

Our client-side Potrace engine fits smooth parametric cubic Bezier curves to polygonal contours using the polynomial formula:

B(t) = (1-t)³P₀ + 3(1-t)²t P₁ + 3(1-t)t² P₂ + t³ P₃,   for t ∈ [0, 1]

By dynamically adjusting curve tolerance parameters, the engine condenses hundreds of raster pixel steps into just two control points (\(P_1, P_2\)), eliminating 90%+ of redundant nodes while preserving mathematical curvature.

100%
Client-Side Private Processing
< 800
Optimal Cricut Node Threshold
0.01 ms
Sub-Pixel Bezier Fit Latency
16 Layers
Max Layer Color Separation

Interactive Pre-Filtering & Mathematical Auto-Otsu Binarization

High-quality vector tracing begins before a single vector path is calculated. Raster bitmaps frequently suffer from compression artifacts, blurred edges, uneven lighting, and off-white background fringes that distort contour extraction.

🪄 Magic Wand Euclidean Color Eraser

Clicking anywhere on the preview canvas samples the target pixel's RGB color. The engine computes the Euclidean color distance:
ΔE = √((R₁-R₂)² + (G₁-G₂)² + (B₁-B₂)²)
Pixels within your tolerance slider are converted directly to transparent alpha in browser RAM, stripping halos and gradients without manual photo editing.

⚡ Auto-Otsu Threshold Calculation

Otsu's algorithm builds a 256-bin grayscale histogram and maximizes between-class variance:
σ_B²(t) = ω₀(t)ω₁(t)[μ₀(t) - μ₁(t)]²
The resulting threshold mathematically isolates the foreground silhouette from the background with zero manual trial-and-error.

Physical Mat Scale Calibration & Multi-Format CAD Exports

One of the most persistent issues crafters face in Cricut Design Space and Silhouette Studio is coordinate scale discrepancy. Design Space operates on a 72 DPI coordinate grid for raw SVGs, while standard graphics editors export at 96 DPI or 300 DPI. A 5-inch decal created in Illustrator often imports into Design Space shrunken to 3.75 inches.

Our studio injects explicit physical attributes into the root SVG XML:
<svg width="5.0in" height="5.0in" viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg">
When imported, Design Space locks onto the physical inch/millimeter attributes and renders the graphic at exact 1:1 scale on your cutting mat.

Export Format Target Hardware / Software Internal Structure Best Use Case
Cricut Ready SVG Cricut Design Space, Silhouette Studio, Web Grouped <g id="cricut-layer-..."> + Units Multi-layer vinyl, HTV iron-ons, cardstock papercraft
AutoCAD DXF (.dxf) AutoCAD, Fusion 360, Laser & CNC Routers 2D POLYLINE / VERTEX entities CO2 laser cutting, CNC acrylic milling, sheet metal plasma
G-Code Stream (.gcode) 3D Printer Pen Plotters, GRBL CNC, Marlin Standard G00 (rapid) / G01 (cut) commands Direct plotting with pen attachments or DIY engravers
PostScript EPS (.eps) Adobe Illustrator, CorelDRAW, Print Shops PostScript Level 3 vector routines Commercial screen printing, CMYK separations, signage

Traveling Salesman Cut Path Optimization (TSP) & Time Prediction

Raster-to-vector converters naturally output SVG paths in scanline order (from top-left to bottom-right). If a cutting plotter follows this unorganized sequence, the blade carriage constantly lifts and travels diagonally across the entire 12x12 mat between cut loops.

Euclidean Nearest-Neighbor Sequencing Algorithm

When 'Optimize Blade Cut Travel' is enabled, the studio models your cut job as a Traveling Salesman Problem (TSP). Starting at the home origin \((0,0)\), the algorithm selects the nearest unvisited path start point, executes the cut stroke, and immediately searches for the next closest contour endpoint in Euclidean space:

d(P_curr, P_next) = √((x₂ - x₁)² + (y₂ - y₁)²)

This continuous nearest-neighbor path sorting eliminates up to 50% of wasted non-cutting travel distance, prolongs blade carriage motor lifespan, and prevents delicate vinyl edges from catching on rapid traversals.

Automated Sticker Offsets, Weeding Borders & HTV Mirroring

Professional vinyl decal production requires specialized border geometries that typically take hours to build in desktop vector software:

  • Die-Cut Sticker Offset Bleed: Dilates all external path contours by a customizable pixel thickness (2px–30px) with rounded caps and joins. This forms a continuous outer peel margin required for waterproof vinyl stickers and print-then-cut decals.
  • Auto Weeding Box Border: Injects a rectangular boundary surrounding the artwork with custom padding. Weeding intricate lettering from a large vinyl sheet without a weeding box often rips fine serifs; a weeding box cleanly isolates the scrap vinyl for effortless peeling.
  • Mirror Horizontal (Iron-On HTV Mode): Inverts the vector stage horizontally. Because Heat Transfer Vinyl is cut from the back adhesive side through the clear carrier sheet, mirroring is essential to ensure text and asymmetrical graphics press right-side-up onto apparel.

Cricut & Silhouette Machine Cut Matrix

Calibrate your blade depth, speed, and cut pressure according to vector density and material thickness:

Material Type Blade Tool Cut Pressure (g) Multi-Pass Weeding & Mat Setting
Permanent Vinyl (Oracal 651) Fine-Point (45°) 115g - 125g 1x Standard Grip (Green) | Easy Weed
Everyday Iron-On (HTV) Fine-Point (45°) 130g - 145g 1x (Mirror ON) Standard Grip | Shiny Side Down
Glitter / Flocked HTV Fine-Point / Deep 175g - 195g 1x (Mirror ON) Strong Grip (Purple) | Moderate
Removable Vinyl (Oracal 631) Fine-Point (45°) 100g - 110g 1x Light Grip (Blue) | Delicate
Heavy Cardstock (80lb - 110lb) Fine-Point / Deep 275g - 310g 2x Light Grip | Clean Punchout
Mylar Stencil Film (4 mil) Fine-Point (45°) 220g - 250g 2x Standard Grip | Reusable Stencil
Basswood / Balsa (1/16") Knife Blade Maker Adaptive 8x - 14x Strong Grip + Painter's Tape
Cast Acrylic (3mm - Laser) CO2 Laser Cut Speed 160 / 100% Pwr 1x Honeycomb Bed | Flame Polished

Troubleshooting Vectorization & Machine Cut Errors

Resolve common vector conversion pitfalls before sending jobs to your cutter:

Issue: Cricut Design Space Freezes or Imports at 0x0 Size

Cause: Node count exceeds 3,000+ due to microscopic speckles or unrounded noise.
Fix: Increase 'Path Smoothing' to 1.5–2.2 and 'Speckle Dust Filter' to 10px–16px. Ensure the Node Health badge displays green ('Optimal Cut' < 800 nodes).

Issue: Blade Cuts a Double Line on Every Letter

Cause: Stroke outline tracing on thin lines instead of solid silhouette binarization.
Fix: Use 'Monochrome Silhouette' mode with 'Remove White / BG Fill' checked. This creates a solid filled shape that cuts only around the outer perimeter.

Issue: Jagged Halos Around Letters from Low-Res Artwork

Cause: Anti-aliased semi-transparent gray pixels along the edges of small PNGs.
Fix: Open the 'Pre-Filter' tab, use the 🪄 Magic Wand to sample the background, set 'Sharpening: 2', and click 'Calculate Optimal Auto-Otsu'.

Technical Vectorization Glossary

Bezier Curve

A parametric curve defined by mathematical control points that scale infinitely without pixelation.

Compound Path

A vector structure where interior negative spaces (e.g. holes in letters like O, P, B) are cut through outer solids.

Blade Offset

The physical distance (usually 0.25mm) between the center of the blade holder and the knife's cutting tip.

Weeding

The process of manually peeling away excess negative vinyl material after cutting, leaving only the graphic.

DXF (AutoCAD)

Drawing Exchange Format standard for exchanging 2D vector CAD entities across CNC and laser machinery.

G-Code

Numerical control programming language instructing motor step coordinates and feed rates on CNC routers.

Frequently Asked Questions

Frequently Asked Questions

How do I convert a PNG to an SVG for Cricut Design Space for free?
Simply drag and drop your PNG, JPG, or WEBP image into the studio drop zone. Select 'Monochrome Silhouette' for single-color vinyl cuts or 'Layered Multi-Color' for vinyl stacking. Adjust the Smoothing, Speckle, and Threshold sliders to preview your vector paths in real-time, then click 'Download Cricut Ready SVG'. Import the SVG directly into Cricut Design Space, click 'Ungroup', and attach your cut lines to begin cutting on your Explore Air 2, Maker 3, or Joy.
Why do real-world physical dimensions (inches / mm) in the SVG header prevent Cricut scaling bugs?
Cricut Design Space and Silhouette Studio default to 72 DPI coordinate interpretations for uncalibrated SVG files, whereas standard modern design software uses 96 DPI. Without embedded physical measurement attributes, a 5-inch graphic exported at 96 DPI will import into Design Space shrunken to 3.75 inches. Our studio embeds explicit 'width="5.0in" height="5.0in" viewBox="0 0 W H"' XML headers into the SVG so both Design Space and Silhouette Studio automatically import your artwork at 100% exact real-world scale without manual dimension adjustments.
How does the Traveling Salesman (TSP) path optimizer reduce blade wear and cut time?
When vector paths are generated from raster pixels, they are naturally ordered by scanline row index. If cut in that raw order, your cutter head jumps back and forth across the entire 12x12 mat hundreds of times. Our Traveling Salesman Problem (TSP) nearest-neighbor optimizer mathematically sorts every vector cut loop based on Euclidean distance from the preceding path endpoint. This keeps the blade cutting adjacent shapes in a continuous, logical sequence, reducing rapid head travel distance by up to 50%, preventing thin vinyl lifting, and slashing overall job cut duration.
What is the difference between SVG, DXF, G-Code, and EPS exports?
SVG (Scalable Vector Graphics) is the standard XML vector format for Cricut Design Space, Silhouette Studio, and web browsers. DXF (Drawing Exchange Format) is a 2D polyline format required by AutoCAD, commercial CNC routers, and CO2 laser cutters like xTool, OMTech, and K40. G-Code (.gcode) is numerical control machine code containing G00 (rapid travel), G01 (linear cut stroke), and Z-axis blade/spindle commands for 3D printer pen plotters and GRBL CNC plotters. EPS (Encapsulated PostScript) is a professional PostScript Level 3 vector format used by commercial screen printers and Adobe Illustrator.
How does the Magic Wand eyedropper tool eliminate anti-aliased halos?
Low-resolution raster images often have blurry, semi-transparent grey or off-white pixels along their edges (anti-aliasing). When binarized, these fringes become jagged cut bumps. The Magic Wand tool lets you click directly on any canvas color to calculate its Euclidean color distance: sqrt((R1-R2)^2 + (G1-G2)^2 + (B1-B2)^2). Pixels within your selected tolerance are cleanly converted to pure transparent alpha in browser memory before vectorization begins, producing razor-sharp, smooth outer vector contours.
How does mathematical Auto-Otsu binarization calculate the cut threshold?
Otsu's thresholding algorithm calculates a 256-bin histogram of grayscale pixel luminance across your image and iteratively computes the between-class variance across all possible thresholds. The threshold that maximizes between-class variance (sigma_B^2) represents the exact mathematical separation boundary between foreground artwork and background canvas noise. This eliminates tedious manual slider guessing and delivers instant, optimal black-and-white vector separation.
How does the Die-Cut Sticker Offset outline feature work for sticker makers?
The Sticker Offset generator dilates the outer boundary contours of your vector paths by a customizable pixel thickness (e.g., 6px to 30px) with rounded joins and caps. This creates a solid, continuous border silhouette behind your artwork, perfect for creating peel-and-stick die-cut vinyl stickers, kiss-cut sheets, or contrast borders for dark apparel.
Why are Auto-Weeding Boxes essential for intricate vinyl crafting?
Weeding intricate vinyl decals (especially small text or mandalas) is prone to accidentally peeling away delicate letters with the background waste. The Auto-Weeding Box generator injects a bounding rectangle with customizable padding around your graphic. When you cut this outer perimeter on your machine, it isolates the design so waste vinyl can be peeled in clean, manageable sections without stressing fine lines.
Why must Heat Transfer Vinyl (HTV) iron-on designs be mirrored horizontally?
Heat transfer vinyl (iron-on) is manufactured with the colored vinyl layer adhered to a clear, heat-resistant plastic carrier sheet. You must place the shiny carrier sheet face-down on the cutting mat and cut from the back adhesive side. If the design is not mirrored horizontally before cutting, text and asymmetrical graphics will appear backward when heat-pressed onto garments. Our studio provides a one-click 'Mirror Horizontal' toggle with a safety HUD warning badge.
Why is my SVG crashing or freezing Cricut Design Space?
Cricut Design Space operates on an internal WebGL renderer that severely degrades when an SVG contains over 2,500 anchor nodes or unjoined path fragments. This usually happens when an uncompressed PNG is converted with high speckle noise. In our studio, increase the 'Path Smoothing' slider to 1.5–2.5 and set the 'Speckle Dust Filter' to 10–16px. Keep the Live Node Health badge in the green ('Optimal Cut' < 800 nodes) for instantaneous loading in Design Space.
What is the technical difference between a PNG and an SVG for vinyl cutting?
A PNG is a grid of static pixels (raster bitmap). When a cutting machine tries to read a PNG, it has no mathematical concept of shapes, only color coordinates. An SVG is an XML document composed of geometric vector commands (M, L, C, Z) that tell the cutting blade's stepper motors precisely where to move in 2D Cartesian space (X, Y). SVGs can be scaled to billboard size without loss of resolution and cut smoothly without stairstep stutter.
Is it safe to upload proprietary commercial designs or Etsy artwork to this tool?
Yes, 100% safe. This studio runs entirely on client-side WebAssembly, Canvas, and JavaScript inside your computer's RAM. Unlike traditional cloud converter websites that transmit your artwork to remote servers, our tool performs zero server uploads, zero caching, and zero analytics tracking. Your proprietary copyright and Etsy vector designs never leave your local machine.
How do I create a multi-layer colored SVG for Cricut from a photograph?
Switch the Tracing Mode to 'Layered Multi-Color (Vinyl Stacking)' and select between 2 and 16 palette colors. The engine runs color quantization to cluster similar pixels into separate tonal groups. Each group is extracted as an independent SVG layer () that can be individually cut on different colored vinyl sheets in Cricut Design Space.
What is the Potrace algorithm and how does contour tracing work?
Potrace (Polygon Tracer) is the gold-standard vectorization algorithm created by Peter Selinger. It functions in four distinct mathematical phases: (1) extracting closed polygonal bitmap contours, (2) calculating the optimal straight-line polygonal approximation using dynamic programming, (3) fitting smooth cubic Bezier splines to curved vertices, and (4) performing curve optimization to eliminate inflection errors.
What blade depth and cut pressure settings should I use for Oracal 651 vinyl?
For Oracal 651 permanent adhesive vinyl, use a standard 45° Fine-Point blade with 115g to 125g cut pressure (the default 'Premium Vinyl' setting in Design Space) and 1 pass. For Siser EasyWeed HTV, use 130g to 145g pressure with Mirror ON. For heavy glitter vinyl, increase pressure to 175g–190g or use a Deep-Point blade.
Can I use the generated SVGs on laser cutters like Glowforge and xTool?
Yes. Glowforge, xTool D1, OMTech, and LightBurn fully support our generated SVGs and DXFs. To engrave, import the SVG with solid color fills. To vector cut outer profiles, use our DXF export or set the SVG stroke to 0.001in (hairline) in your laser software.
What is a Compound Path, and why does Cricut require it?
A compound path combines multiple vector paths (such as the outer contour of the letter 'O' and its inner donut hole) into a single mathematical object with a nonzero or evenodd fill rule. Without compound paths, Cricut Design Space would treat the inner hole as a separate solid shape and cut over it as a solid disc. Our vector studio automatically computes compound paths for all hollow geometries.
How do I convert low-contrast sketches or pencil drawings?
Switch to the 'Pre-Filter' tab. Boost the 'Contrast' slider to +40% or +60%, apply 'Sharpening: 2', and click 'Calculate Optimal Auto-Otsu'. This amplifies pencil strokes while washing out faint paper texture, enabling clean line art extraction.
Does this tool work completely offline without an internet connection?
Yes. Once the page is loaded in your browser, all vectorization, CAD formatting (DXF, G-Code, EPS), and image processing code reside in local browser memory. You can disconnect your Wi-Fi or work in airplane mode, and the studio will continue to convert unlimited high-resolution files at full speed.
Can I use the SVGs generated here for commercial print-on-demand businesses?
Yes. There are zero licensing restrictions, watermarks, or usage fees. All vector SVG, DXF, EPS, and G-Code files generated by this tool are 100% royalty-free and unrestricted for both personal crafting and commercial print-on-demand or laser fabrication.

Rate Potrace Image Vectorizer

Help us improve by rating this tool.

4.7/5
1,033 reviews