Open DWG file
Home › Convert DWG, DXF and DWF › PNG to DWG: how to turn an image into a CAD drawing

PNG to DWG: how to turn an image into a CAD drawing

A PNG to DWG conversion means tracing pixels into lines, because a PNG holds no geometry and a DWG holds nothing else. This viewer does not vectorize images or write DWG files, so this page explains the two real options, automatic tracing and a traced underlay in CAD, with the free Inkscape route step by step.

What image to DWG conversion really is

A PNG is a grid of colored pixels. A DWG is a list of lines, arcs, polylines, and text with coordinates. No program can "convert" one into the other the way it converts DWG to PDF; it has to detect edges or centerlines in the pixels and draw vectors along them. That step is called raster to vector conversion, vectorization, or tracing, and its quality depends almost entirely on the image.

Good candidates: clean black-on-white drawings, logos, floor plans exported as images, scanned sketches with firm lines. Bad candidates: photos, screenshots with anti-aliased thin lines, gray or colored backgrounds, anything below 150 dpi. Clean the image before converting and you save more time than any tool choice.

Check the file in the viewerDrop a DWG or DXF here to open it. Nothing is uploaded.DWG R14–2018+, DXF ASCII or binary, up to 60 MB. Private: the file stays in this browser tab.

Which method for which case

CaseMethodTool
Logo, icon, simple outline for cutting or engravingAutomatic traceInkscape Trace Bitmap (free)
Scanned drawing with lines, you want single centerlinesCenterline traceScan2CAD, WinTopo, AutoCAD Raster Design
You will redraw it properly in CAD anywayAttach as underlay and trace by handAutoCAD IMAGEATTACH, BricsCAD, LibreCAD
Photo of a site, elevation, or sketch for referenceUnderlay only, no conversionAny CAD
One-off, nothing confidentialOnline image to DWG converterUploads the image; results are rough

Online "image to CAD converter" sites run an automatic trace on a server. The quality is what Inkscape gives you locally, minus control over the settings, so the free offline route below is usually better.

How to convert PNG to DWG with Inkscape (free)

  1. Prepare the PNG: crop to the drawing, raise contrast so lines are black and background white, and remove noise. A 300 dpi scan is ideal; upscale a small image before tracing, not after.
  2. Open Inkscape, File > Import the PNG, choose Embed.
  3. Select the image and open Path > Trace Bitmap (Shift+Alt+B). For line drawings choose Single scan, Brightness cutoff, threshold around 0.45; tick "Remove background". For colored artwork use Multiple scans, Colors.
  4. Click Update to preview, then Apply. Delete the original bitmap underneath.
  5. Optional cleanup: Path > Simplify (Ctrl+L) reduces node count; Edit > Select Same > Fill and Stroke helps delete leftover speckles.
  6. Set units in Document Properties, then File > Save As, type "Desktop Cutting Plotter (AutoCAD DXF R14)", tick LWPOLYLINE output.
  7. Convert the DXF to DWG with ODA File Converter or by opening it in AutoCAD and saving as DWG, as described on DXF to DWG. Then scale by reference in CAD.

Inkscape traces outlines: every line in the image becomes a thin closed shape with two edges. For engraving and cutting outlines that is right; for a plan you want single centerlines, which is the next method.

Centerline tracing and the underlay route in AutoCAD

Scan2CAD, WinTopo, and AutoCAD Raster Design (part of the toolsets included with an AutoCAD subscription) offer centerline vectorization: a 2-pixel-wide scanned wall becomes one line, dashes can be recognized as line types, and some tools OCR text into text objects. Results still need manual cleanup, and they output DWG or DXF directly, so no extra conversion is needed.

The underlay route skips vectorization entirely. In AutoCAD, type IMAGEATTACH, pick the PNG, insert at 0,0 with scale 1, then SCALE with the Reference option using a known dimension so the picture is true to size. Draw over it with lines and polylines on new layers, using ortho and object snaps, then detach or hide the image. For a plan with a few dozen walls this takes twenty minutes and produces a clean drawing; automatic tracing of the same image produces thousands of stray segments you would spend longer deleting. The same workflow exists in BricsCAD and LibreCAD.

What to check after conversion

  • Scale. Traced output is in pixels or Inkscape units; measure a known distance and scale everything.
  • Double lines. Outline tracing produces two edges per line; use centerline tracing or redraw if you need single lines.
  • Entity count. A simple logo should be a few dozen polylines, not ten thousand. If it is, raise the simplify threshold or clean the image.
  • Closed paths. For laser or CNC, shapes must be closed; zoom into corners.
  • Text. Traced text is geometry, not editable text; retype anything you will change later.

Open the finished DWG on dwgviewer.app: the measure tool confirms the scale, the entity count in the status bar exposes a messy trace, and nothing is uploaded. If you only need a DXF, for a laser cutter for example, stop earlier at PNG to DXF. JPEG sources have their own pitfalls, covered on JPG to DWG.

Frequently asked questions

How do I convert PNG to DWG for free?

Trace the PNG in Inkscape with Path > Trace Bitmap, save as AutoCAD DXF R14, then convert the DXF to DWG with the free ODA File Converter.

Can I convert an image to DWG in AutoCAD?

AutoCAD itself only attaches images as underlays (IMAGEATTACH) for tracing by hand. Automatic vectorization needs the Raster Design toolset or a third-party tracer.

Is image to DWG conversion accurate?

Only as accurate as the image. Clean, high-contrast, 300 dpi drawings trace well; photos and low-resolution screenshots produce noisy geometry that needs redrawing.

How do I convert an image to DWG lines instead of outlines?

Use a centerline vectorizer such as Scan2CAD, WinTopo, or AutoCAD Raster Design. Inkscape traces outlines, which gives two edges per line.

Is an online image to CAD converter safe?

For a non-confidential image it works, but the file is uploaded and the trace settings are fixed. Inkscape gives the same result locally with full control.

What resolution does the PNG need?

300 dpi or more for scanned drawings. Below 150 dpi lines break into fragments; upscale and sharpen the image before tracing if that is all you have.