PNG & JPG to DXF Converter

Trace PNG, JPG, and WebP logos, stencils, and part silhouettes into clean R12 DXF and SVG vectors locally.

Browser Local Zero File Upload
Contours0
Vertices0
Output Size0 x 0 mm
DXF Size0 KB
Live Contour Trace Preview (Cyan = Exported CAD Vectors) 100% browser-local image tracing
Open Full 2D CAD Editor

Trace PNG and JPG Images into Clean DXF Cut Paths

This PNG to DXF converter (also supporting JPG / JPEG and WebP images) traces black-and-white logos, part silhouettes, stencils, and scanned templates into clean ASCII DXF (R12) and SVG vector outlines right inside your browser. It is engineered for CNC plasma tables, laser cutters, vinyl plotters, and CAD workflows where you only have a raster image and need usable 2D CAD geometry fast.

Everything runs 100% locally in your browser using HTML5 Canvas pixel analysis, Marching Squares contour extraction, and Ramer–Douglas–Peucker (RDP) path smoothing. Your images and proprietary templates are never uploaded to external servers.

How to Get Clean, Smooth CAD Vectors from PNG or JPG Files

Raster images are made of square pixels, whereas CNC and laser cutters need smooth continuous polylines with minimal jitter. Adjust these four live controls above until the cyan traced outline matches your shape cleanly:

  • Threshold Cutoff (15–240): Controls the brightness split between solid shape and background. Raise the threshold to capture lighter gray artwork; lower it to ignore faint paper shadows on scanned sketches.
  • Path Smoothing (RDP Tolerance): Eliminates pixel staircases by simplifying redundant collinear vertices. A setting between 1.0 and 2.0 works well for most logos and mechanical silhouettes; lower values (0.4–0.8) retain sharper fine detail.
  • Min Noise Filter: Automatically discards tiny isolated dust speckles or JPEG compression artifacts shorter than the chosen vertex threshold.
  • Output Width (mm): Scales the traced DXF and SVG directly to your desired real-world physical width in millimeters so you can import straight into LightBurn, VCarve, Fusion, or our Online CAD Editor.

Best Input Images for PNG / JPG to DXF Tracing

Input Type Trace Quality Preparation Tip
High-contrast black logo on white/transparent PNG Best results Ready immediately—adjust smoothing (1.0–1.6) for crisp curves.
Scanned hand sketch or blueprint photo (JPG) Good with tuning Crop tightly around the part and adjust Threshold Cutoff to drop paper grain.
Light artwork on dark background Great with Invert Check Invert Light / Dark Shapes to trace bright elements instead of dark ones.
Full-color photographs with gradients Limited Convert to high-contrast silhouette first; vector tracing works on contour boundaries, not photographic shading.

Edit or Inspect Your Traced DXF Immediately

After clicking Download Traced DXF (R12):

  • Open it in our Online CAD Editor to add exact circular bolt holes, trim stray contours, or place millimeter dimensions.
  • Inspect the overall bounding box and entity count in our DXF Viewer Online.
  • Plot a scaled printable template sheet with our DXF to PDF Converter.
  • If you already have a clean vector .svg file rather than a raster image, use our SVG to DXF Converter for exact curve fidelity without pixel tracing.

Frequently Asked Questions

Can this converter trace both PNG and JPG images to DXF?

Yes. Drop any PNG, JPG, JPEG, or WebP image into the upload box to trace its contours into clean R12 ASCII DXF and SVG files directly in your browser.

How do I reduce jagged lines when converting PNG or JPG to DXF?

Increase the Path Smoothing (RDP) slider to merge tiny stair-step segments into smooth straight lines, and raise Min Noise Filter slightly to remove JPEG speckles.

How do I set the exact real-world size of the exported DXF?

Type your desired real-world millimeter width in Output Width (mm) before downloading. The exported DXF sets $INSUNITS = 4 (millimeters) and scales both width and height proportionally.

Does the PNG to DXF tracer support transparent PNG backgrounds?

Yes. Transparent pixels in PNG files are automatically composited over a white background before thresholding, so dark logos with transparent backgrounds trace cleanly right away.

Are my uploaded PNG or JPG images sent to a server?

No. All pixel analysis, contour tracing, and DXF/SVG generation happen locally inside your browser tab, keeping client logos and mechanical templates completely private.