All articlesWorkflows

Image to AutoCAD: Convert a Photo to DWG/DXF (2026)

Matúš KolejákBy Matúš Koleják11 min read
A photo of a machined aluminium mounting bracket on the left and the same part as a dimensioned AutoCAD technical drawing (front, top, side and isometric views with counterbore callouts) on the right

People who search “image to AutoCAD” usually know exactly where the file has to end up: open and editable inside AutoCAD, with real dimensions you can pull off it. Here is the catch. AutoCAD stores lines, arcs and dimensions as math, while a JPG or a photo stores coloured pixels and nothing else. None of it is geometry yet. So this was never really a file conversion. You are rebuilding the picture as linework, then giving that linework the one thing a photo never had, a real size. Do both and you get a drawing you can dimension and detail. Skip either one and you get a fuzzy outline sitting at the wrong scale.

The short answer

There are two ways to do this that actually work, and which one you need comes down to what your image really is. If it is already a drawing, meaning a scanned blueprint, a logo, a clean line graphic or a screenshot from a design tool, you vectorize it into lines and arcs, export DXF, and open that in AutoCAD. Close to mechanical. If it is a photo of a real object, tracing only hands you the outer silhouette, at whatever size and angle the camera caught. To get something you can build or quote from, you rebuild it with real dimensions and scale it to a known measurement. Either way, pixels do not turn into geometry on their own. A tracer, a person, or an AI has to draw the lines.

A photo of a steel spur gear on the left and its reconstructed technical drawing on the right, with a dimensioned front view, section A-A, a reference isometric and a gear-data table
A real before and after: a photo of a spur gear, and the drawing TechDraw AI rebuilt from it. Section view, bore and keyway dimensions, even a gear-data table, all editable in AutoCAD. Every drawing on this page is a genuine tool output, not a mock-up.

What AutoCAD can (and can't) do alone

This is where a lot of people lose an afternoon, so it is worth saying plainly. Out of the box, AutoCAD does not have a button that turns a JPG into editable geometry. What it does have is a way to bring a raster image in as a background underlay, the ATTACH or IMAGEATTACH command, which you then trace over by hand with the normal drawing tools. The image is just a tracing template. The linework is yours to draw.

Automatic raster-to-vector, if you stay inside the Autodesk world, means one of two things. Either you add the AutoCAD Raster Design toolset, which vectorizes and cleans up scanned drawings, or you run a dedicated third-party converter and import the result. Both trace the visible shape well. Neither can invent the two things a picture never recorded: the real size and the dimensions. Worth keeping in mind, because no tool, Autodesk's own included, reads a size off pixels that never had one.

A vectorizer is loyal to the pixels, not to the part. It will happily trace a JPG's compression halo, a photo's perspective tilt or a scanner's skew, then hand it all back to you as “geometry.” Clean input, clean linework.

Drawing or photo? The fork

Before you touch a command, work out which kind of image you are holding. That one call decides whether the next hour is a quick trace or a full rebuild, and most bad results trace back to getting it wrong.

Three kinds of image, three different jobs in AutoCAD

What the image isWhat tracing gives youWhat you still need
A scanned drawing or logoClean vector linework, faithful to the artworkSet the real scale; close any open paths
A flat, straight-on photo of a partAccurate outer silhouette onlyDimensions, inner features, a reference measurement
An angled or lifestyle photoA distorted outline you can't build fromA re-shoot, or a rebuilt drawing, not a trace

A scanned drawing or a logo is the easy case. The artwork already is the geometry, so the trace is faithful and the only real work is scale. A photo of a real part is the hard case, for a physical reason: a camera flattens a three-dimensional object onto a grid of pixels, so perspective, lens distortion and tilt all bend the outline, and there is no depth, no hidden edge and no dimension anywhere in the file. For the same decision across any CAD format rather than AutoCAD specifically, the pillar guide is image to CAD: turn a JPG into a drawing you can manufacture.

Three routes from image to AutoCAD

Depending on your image and how much editing you are willing to do, one of these three routes fits. They run from most manual to most automatic.

1. Attach and trace inside AutoCAD

Bring the image in with ATTACH, scale it to a known dimension, and trace over it on a fresh layer with LINE, PLINE and ARC. It is slow, but every line is yours and the result is genuinely clean. Best for simple parts, or any time you want full control over how the geometry gets built. Step by step below.

2. Vectorize to DXF, then open it

Run the image through a raster-to-vector tool, either Inkscape's Trace Bitmap for free or a dedicated converter, export DXF, and open that in AutoCAD. Quick for logos and clean line art. The catch is that the DXF shows up at a pixel-based scale, so you still rescale it once it is in. If the trace comes out rough, with doubled lines, jagged arcs or broken corners, that is an input problem, and why a traced image looks jagged and how to fix it walks through the cleanup. A side-by-side of the dedicated converters is in the best JPG to DXF converters.

3. Reconstruct a dimensioned drawing with AI

For a photo of a real part, neither tracing route gives you a drawing you can use, because both stop at the silhouette. An AI tool that rebuilds the part as a dimensioned technical drawing, from a single reference measurement, gives you DWG or DXF with real lengths, closed profiles and proper views. Which is what you were after in the first place. More on where it fits under tools.

A photo of a steel round flange plate on the left and its reconstructed technical drawing on the right, with a dimensioned top view, front section, side view and isometric
A photo of a real part carries no dimensions. Route 3 rebuilds it into a measured drawing. Here a steel flange becomes a dimensioned DWG with the bore, bolt-circle and hole sizes AutoCAD can edit.

Attaching and tracing a raster

Going the manual route? This is the order that works. Miss the scaling step and everything after it comes out wrong, so do it first.

  1. Attach the image. Type ATTACH (or IMAGEATTACH), choose your JPG, PNG or TIFF, and place it in the drawing. Uncheck “Specify on-screen” scale if you want to fix the size properly in the next step.
  2. Scale it to a known dimension. Run SCALE, select the image, pick a base point, type R for Reference, click the two ends of a feature whose true length you know, and enter that real length. The image now sits at 1:1 with the world.
  3. Lock the image on its own layer. Put it on a dedicated layer, fade it back with IMAGEADJUST, and lock the layer so you don't select it by accident while drawing.
  4. Trace on a new layer. Draw the geometry with LINE, PLINE, ARC and CIRCLE, snapping to the visible edges. Use object snaps to keep corners crisp and profiles closed.
  5. Detach or freeze the image. Once the linework is done, freeze the image layer or DETACH the raster. Add dimensions, and you have a real AutoCAD drawing.
Trace with a graphics tablet or careful snapping, not a shaky freehand mouse. AutoCAD only knows what you click, so a sloppy trace makes sloppy geometry no matter how clean the underlay was.

The scale trap in AutoCAD

This is where more image-to-AutoCAD jobs fall apart than anywhere else, and it is baked right into the formats. A raster image is measured in pixels. An AutoCAD drawing is measured in real units, millimetres or inches. Nothing in a JPG or PNG says how many millimetres a pixel is worth, so whatever brings it in has to guess, and the guess is almost never your part's real size. It looks right on screen and comes out wrong at the machine.

The fix never changes, and it is not optional. Find one dimension you know for certain, printed on the drawing or measured off the real part with calipers, and scale the whole thing so that feature matches the known number. Get one length right and every other length follows, because the proportions were already correct. That exact failure, and how to catch it before it becomes scrap, is in fixing a drawing that imports at the wrong size, and the reference-measurement idea in depth is in how to get dimensions from a photo.

A photo of a machined stepped drive shaft on the left and its reconstructed technical drawing on the right, with stepped diameters, a keyway, chamfers and surface-finish callouts
One known length anchors the rest. Feed a photo of this stepped shaft plus a single reference measurement, and the diameters, keyway and chamfers all scale from it. That is the difference between a drawing you can machine and a nice picture.

Working the other way round, from a real part in your hand to a drawing, is the same problem in reverse, and how to reverse-engineer a part from a photo walks through it. Once the geometry is scaled, dimensioning it cleanly is its own skill, covered in how to dimension a technical drawing.

DWG or DXF for AutoCAD?

When a tool exports the file for you, you usually get to pick the format, and for AutoCAD the choice is easy. DWG is AutoCAD's native format, Autodesk's own binary drawing format, so it opens with no translation and keeps the most fidelity when a tool can write it. DXF is the neutral exchange formatalmost every other program can produce, and AutoCAD opens it just as cleanly and turns it into DWG the moment you save. In practice, take DWG when it is offered, take DXF when it is not, and don't lose sleep over the difference for 2D linework.

The full comparison, including when a supplier specifically asks for one or the other, is in DWG vs DXF, and the wider map of which format each machine and shop actually wants is in CAD file formats for manufacturing. If the file is headed to a laser or CNC shop instead of back into AutoCAD, image to DXF covers the cutter side.

Tools that get an image into AutoCAD

Image to AutoCAD, by tool

ToolBest forAdds real dimensionsCost
AutoCAD (ATTACH + trace)Full control, simple partsOnly what you draw and dimension by handIncluded
AutoCAD Raster DesignBatches of scanned drawingsNo, it vectorizes the shape onlyAdd-on
Scan2CADScanned line drawings and logosOnly what OCR reads off the pagePaid
Inkscape to DXFLogos and clean line art, on a budgetNo, outline onlyFree
TechDraw AIA photo of a real part, into a dimensioned drawingYes, from your reference measurementFree tier

For a scanned drawing or a logo, the tracers are genuinely enough. There is no accuracy to buy by paying, only convenience, and even free Inkscape exports a DXF AutoCAD opens directly. Where all of them stop is the photo-of-a-real-part case, because none can supply the one thing a picture lacks: a real size and the dimensions that come with it.

A photo of a bent sheet-metal angle bracket on the left and its reconstructed technical drawing on the right, with top, front, side and isometric views, slotted and round holes and a bend radius
A galvanised sheet-metal bracket and the drawing rebuilt from its photo. Slotted holes, round holes, bend radius and flange lengths all dimensioned, ready to edit in AutoCAD.

That gap is what TechDraw AI is built for. You upload the image, type in one real measurement, and it rebuilds a dimensioned technical drawing: orthographic views, closed profiles, every length tied to your reference instead of to pixels. Then it exports a clean DWG, DXF, SVG or PDF you open straight in AutoCAD. It stays honest about the ceiling too. You get a measurable 2D drawing you can edit and quote, not a 3D solid conjured out of one photo. Starting from a rough sketch instead of a photo? The sketch to CNC-ready DXF workflow covers that, PDF to DXF covers the case where the image arrived wrapped in a PDF, and, for the folded parts above, turning a photo into sheet-metal drawings goes deeper on bends, flats and flange lengths.

Pre-flight checklist

  • Did you pick trace or rebuild on purpose? A drawing gets traced; a photo of a real part gets rebuilt. Guess wrong here and every step after it is wasted.
  • Did you start from the cleanest image you have? A PNG, a native export or a high-resolution scan beats a compressed JPG.
  • Did you scale to one known dimension? Verified against a print or a measured feature with SCALE and its Reference option, not assumed. This is the single most common way the job turns into scrap.
  • Is the linework actually clean? Closed profiles, and no duplicate or stray lines left over from the trace.
  • Did you save the right format? DWG for AutoCAD, DXF (often R12) if the file is moving on to a shop or a cutter.

Clear that list and you have a real, editable AutoCAD drawing instead of a picture pinned behind glass. If the part is headed for a quote rather than your own screen, what a shop needs beyond the linework is in from photo to a manufacturing drawing.

Frequently asked questions

Can AutoCAD convert an image to a drawing automatically?

Not on its own. Stock AutoCAD can attach a raster image as an underlay for you to trace over by hand, but it has no built-in button that turns a JPG into editable linework. Automatic raster-to-vector needs Autodesk's Raster Design add-on or a third-party tool like Scan2CAD, and even then it only traces the visible shape. It never recovers the real-world scale or the dimensions, because a picture never contained them.

How do I insert an image into AutoCAD to trace it?

Use the ATTACH command (or IMAGEATTACH) and pick your JPG, PNG or TIFF. Place it, then scale it to a known dimension with the SCALE command's Reference option so one feature matches its true size. Put your new geometry on a separate layer, trace the edges with LINE, PLINE and ARC, then detach or freeze the image layer when you are done.

Can I convert a JPG to AutoCAD?

Yes, but a JPG is the hardest input to work with. Compression halos around every edge get traced as fake geometry, so the linework comes out fuzzy. Convert a high-quality version, or a PNG or native export if you can get one. Free tools like Inkscape vectorize the JPG and export DXF, which AutoCAD opens directly, though you still have to set the real scale afterwards.

Can I convert a photo of a real part into an AutoCAD drawing?

You can, but tracing a photo only gives you a silhouette at whatever angle and size the photo was taken. There are no inner features, no dimensions, and any perspective tilt bakes into the shape. For a part you actually need to make, rebuild it as a dimensioned drawing from a reference measurement, then open that DWG or DXF in AutoCAD instead of tracing the pixels.

Is DWG or DXF better for opening in AutoCAD?

DWG is AutoCAD's own native format, so it is the cleanest choice when a tool can write it. DXF is the neutral exchange format almost every other program can export; AutoCAD opens it just as well and converts it to DWG on save. If you are handing the file to a shop instead, DXF (often the older R12 version) is the safer bet for compatibility.

How do I scale an inserted image to the right size in AutoCAD?

Run SCALE, select the image, pick a base point, then type R for Reference. Click the two ends of a feature whose real length you know, and type that true length. AutoCAD resizes the whole image so that one dimension is correct, and because the proportions were already right, every other measurement follows.

Sources

  1. Autodesk: Attach and work with raster images in AutoCAD (IMAGEATTACH)
  2. Autodesk: AutoCAD Raster Design toolset overview
  3. Scan2CAD: Converting Raster to Vector, an Introduction
  4. Autodesk: About the DWG file format