Free · no signup · your file stays on this device
SVG / DXF Tools

How to Create a DXF File: Trace, Convert, or Redraw

To create a DXF file, match your source to one of three branches: trace a raster image, convert an existing vector, or redraw from known dimensions. The branch you choose decides whether the result can be verified against real measurements.

TraceDXFPublished Updated

TraceDXF is a free, anonymous, browser-only tool that traces a single local monochrome PNG or JPG/JPEG boundary into DXF. It does not upload files, requires no account or payment, and does not use AI. The raster output is monochrome only. For raster input you can choose a source-pixel canvas or an explicit physical mm size; physical size is not required for a pixel-space SVG. It is not an arbitrary editor and it does not handle multicolor, centerline, or mixed-color artwork. Existing strict SVG-to-DXF accepts supported geometry in colored SVG but discards color information. It also does not check self-intersecting geometry. Choose a different path if your source contains live text or curves you want to keep editable.

Pick the right branch before you start

A 60x40mm engineering fixture makes the difference concrete. The original vector source contains two closed contours: an outer pentagon and a rectangular hole. Converting it to DXF produces AC1015, INSUNITS4, and 2 closed LWPOLYLINE with 5 and 4 vertices. Rasterizing the same shape and then tracing it produces 2 closed contours with 82 and 4 vertices at 60x40mm. Tracing preserves the drawing footprint but adds vertices, so it is a boundary reconstruction, not a dimension restoration.

Pick the right branch before you start
Your sourceBranchWhat you can verify
Monochrome PNG/JPG/JPEG boundary imageRaster tracingPixel-to-boundary vertex count and chosen physical mm scale
Existing clean vector (SVG, known shapes)Vector conversionPreserved contour vertices and source bounds
Known coordinates or measured dimensionsManual redrawExact coordinates you enter; image-only sizes stay unknown
Raster source engineering fixture of the 60x40mm pentagon-with-hole shape used to generate the traced boundary; this is a source image, not a software screenshot or comparison

Exact coordinates from the source SVG

The 60x40mm source SVG uses a viewBox of 0 0 60 40, so its user units map 1:1 to mm and are not pixel coordinates. The outer contour is (0,0), (50,0), (60,10), (60,40), (0,40), Close. The rectangular hole is (12,16), (24,16), (24,24), (12,24), Close.

For a CAD y-up example, apply file transform yCAD = 40 - ySVG. The outer contour becomes (0,40), (50,40), (60,30), (60,0), (0,0), Close. The hole becomes (12,24), (24,24), (24,16), (12,16), Close. This is a generated sample transform, not a native redraw, and it separates drawing/page size from actual object bounds.

Convert an existing vector safely

For an existing SVG, keep an editable master and export a copy. Inkscape supports node editing, live text, document units, Save a Copy, Plain SVG, and DXF R12/R14 export. Illustrator supports Direct Selection anchors, live type, ruler units, and DXF/DWG export with unit scale, text outline, and appearance/editability choices.

Neither editor automatically makes any arbitrary SVG pass TraceDXF's strict subset. A separate editor-check file with an 80x50mm outer rectangle, a rectangular hole, editable live text L, and two fill colors shows the boundary: the strict SVG parser flags and omits live text. A prepared counterpart that manually substitutes a polygon L exports 3 closed LWPOLYLINE at 80x50mm. DXF layer 0 has no color metadata, so keep the SVG master for color and editable text; outlining text removes normal text editability.

Redraw from known dimensions

If you have known coordinates or true measurements, use a CAD editor such as AutoCAD 2025. The PLINE command creates a connected 2D polyline of line or arc segments, and Close connects the first and last segment. SAVEAS can choose DXF format, version, and decimal precision; choose ASCII not binary for a strict checker. This is a documentation-based procedure, not a new native AutoCAD test.

An image-only source cannot recover unknown true size. If you only have a scan, tracing gives a boundary in source-pixel coordinates or a user-chosen physical mm canvas, but it does not infer DPI or the original physical size. Raster detail discarded by JPEG compression is not restored by re-tracing.

Verify what you export

Download the independent source, output, and measurement manifest below, then compare vertex counts and bounds. The manifest and measurements are engineering fixtures, not native software exports.

Next steps