Quick answer

To convert a logo to DXF: load the PNG or JPG, click the Logo preset, check that the black-and-white preview shows every part of the logo solid, type the real width, and download. Outer edges go on layer OUTER and holes on layer HOLES, as closed loops ready for laser, plasma or router CAM. The image never leaves your computer.

Source: Runs entirely in the browser. Reviewed . Use the calculator below for any other size.

Image to DXF Converter: Logos, Photos & Sketches

Turn a logo, scan, photo or sketch into clean CAD outlines. Shapes come out as closed polylines with their holes, pen lines as single centrelines, and you set the real size before you download a DXF or SVG. Everything runs in your browser.

Click, drop or paste an image PNG, JPG, BMP, WEBP. Paste with Ctrl+V.
See a logo converted to DXF in one click.
Start from a preset
A preset sets the options below; you can still change any of them.

1. Black and white

128
Darker than the threshold counts as ink. Auto picks the best split for you.

2. Trace

Outline follows the edges of filled shapes and makes closed loops, with holes.
1.0 px
How far a simplified line may stray from the pixels. Higher = fewer points.

3. Real size

mm
mm
No points picked yet.
Scale: -
Drawing: -
Tip: For a logo, use the original PNG or SVG export rather than a screenshot, and the Logo preset. A flat scan with even light gives the cleanest drawing. For a phone photo, use the Photo preset and set the size with two measured points.

CAD Vector Preview

Drop an image here, paste one, or use the upload box.
Working...
Shapes: 0
Holes: 0
Lines: 0
Vertices: 0
Arcs/circles: 0
No Image Loaded

How the Image to DXF Converter Works

The converter turns a logo, scan, photo or sketch (PNG, JPG, BMP or WEBP) into vector geometry you can open in CAD. It makes the image black and white, traces the shapes, tidies the traced lines, scales them to real units and writes a DXF or SVG file.

Everything happens in your browser. The image never leaves your computer. Very large images are reduced to 2500 pixels on the long side so tracing stays quick; the page tells you when that happens and the DPI scaling allows for it.

How to Convert a Logo to DXF

  1. Load the logo. Click, drop or paste the image into the upload box. The original PNG or a large JPG works much better than a small screenshot. To see how it works first, click Try a sample logo.
  2. Click the Logo preset. It turns on Colour logo, so anything that differs from the background colour counts as ink, and picks Outline tracing with Fit arcs and a 0.8 px simplify tolerance.
  3. Check the B&W view. Every part of the logo should be solid black on white. If a pale colour drops out, untick Auto and move the threshold; use Crop to leave out text or a border you don't want.
  4. Set the real size. In section 3, type the overall width (or height) the logo should be cut at.
  5. Download the DXF. Outer edges go on layer OUTER and holes (the inside of an O, A or a bore) on layer HOLES, all as closed loops, so the file is ready for a laser, plasma, router or CAM profile.

Thin lines, small text and gradients come out rougher than bold shapes, because each traced edge follows the pixels. If your logo already exists as an SVG or PDF from the designer, open that in CAD instead: it is the exact original geometry.

The Method

1. Black and white
Brightness = 0.299 × R + 0.587 × G + 0.114 × B
A pixel darker than the threshold counts as ink. Auto (Otsu) looks at the brightness histogram and picks the level that best separates ink from paper. Photo mode blurs the image slightly and compares each pixel with the average of its surroundings instead, so shadows and uneven light matter much less. It suits line drawings best; large solid areas can come out as hollow outlines. Invert is for light lines on a dark background. Colour logo uses how far each pixel's colour is from the background colour (the median colour round the image border) instead of its brightness, so a yellow logo on white, or a white logo on a dark background, traces without fiddling.
2. Trace: Outline
The tracer walks along the edges between ink and paper pixels, so every outline is a closed loop that sits exactly on the pixel edges. A 10 pixel square traces as a 10 pixel square. Each hole gets its own loop, so a washer gives an outer circle and an inner one. Shapes touching the edge of the image are closed along the edge.
3. Trace: Centreline
For pen or pencil drawings. Each stroke is thinned to a one pixel wide skeleton (Zhang-Suen thinning) and traced down its middle. Lines split where they meet. At a crossing the straightest branches are joined, so a plus sign gives two lines and a T gives a bar and a stem. Short stubs left by the thinning are trimmed off.
4. Simplify
Traced lines are simplified with the Ramer-Douglas-Peucker method. It keeps a point only if leaving it out would move the line further than the Simplify tolerance (in pixels). Closed loops are split at two far-apart points first, so the start of a loop is not treated as special. The speck filter drops outlines with a smaller area, or centrelines shorter than the set number of pixels.
5. Fit arcs (beta)
bulge = tan(sweep ÷ 4)
With Fit arcs on, runs of points that lie on a circle are replaced by true arcs. Each run is fitted by least squares and kept only if every point and pixel edge stays within the tolerance (at least 0.75 px), the arc has 8 or more points and sweeps at least 20°. A loop that is a whole circle is written as a CIRCLE. Arcs meet straight edges where the line touches the circle.
6. Size and export
mm per pixel = 25.4 ÷ DPI
scale = real length ÷ length in pixels
Set the size from the scan DPI, the overall width or height, or two points you pick on a known feature. Y is flipped because images count down and CAD counts up. The origin goes at the bottom-left corner or the centre. The DXF is R12 format: closed or open POLYLINEs with arc bulges, CIRCLEs, and layers OUTER, HOLES and LINES.

Worked Example

A small plate with a round hole, scanned at 254 DPI
  • The image is 100 × 60 pixels. A black plate covers pixels 10 to 89 across and 10 to 49 down (80 × 40 pixels). It has a round hole 20 pixels across, centred 20 pixels in from the plate's left and top edges.
  • Scale: 25.4 ÷ 254 = 0.1 mm per pixel. Outline mode, Simplify tolerance 1.0 px, origin at the bottom-left.
  • Outline: one closed polyline on layer OUTER with 4 vertices, at (0, 0), (8, 0), (8, 4) and (0, 4) mm. The plate is exactly 8.0 × 4.0 mm, because the outline follows the pixel edges.
  • Hole: a closed polyline on layer HOLES. The traced edge has 44 pixel corners; simplifying leaves 12 vertices.
  • With Fit arcs on, the hole becomes a CIRCLE centred at (2.0, 2.0) mm with a radius of 1.004 mm. The drawn hole was 1.0 mm, so the fit is off by only about 0.04 pixels.

Without arc fitting the hole is a 12-sided shape that stays within 1 pixel (0.1 mm) of the traced edge. Lower the tolerance for more points and a closer fit, or turn on Fit arcs to get a true circle.

Tips for Using the Results

  • Scan rather than photograph. A flatbed scan has no perspective and a known DPI, so the size is right straight away. The converter does not correct a photo taken at an angle.
  • Pick the right mode. Use Outline for logos, filled shapes, silhouettes, gaskets and templates. Use Centreline for drawings made with a pen, where you want one line per stroke. The Logo, Line drawing and Photo presets set sensible starting values for each.
  • Check the B&W view first. Shapes should be solid and the background clean. If not, try Photo mode, raise the speck filter or crop to the part you need.
  • Measure a known feature. For photos, choose "Measuring two points", tap both ends of something you know the length of, and type that length.
  • Check before you cut. Compare a known dimension in CAD before machining. Once you have a toolpath, the G-Code Simulator lets you check it.

Frequently Asked Questions

No. The image is read and traced by your browser on your own device, and the DXF and SVG files are made there too. Nothing is sent to Machinist Central.

Use one of three methods. For a scan, enter the scan DPI. If you know how big the whole drawing is, enter its overall width or height. Otherwise pick two points on a feature you know and type the real distance between them. The size box always shows the scale and the finished width and height.

Use Outline for filled shapes such as a part silhouette, a logo or a gasket. You get closed loops with holes, ready for pocketing or profiling. Use Centreline for line drawings made with a pen. Each stroke becomes one line down its middle instead of a thin loop around it.

Arcs are only used when Fit arcs is on and the points really lie on a circle within the tolerance. Curves that are not circular, such as ellipses and splines, are made of several arcs or of straight lines. A lower Simplify tolerance keeps more points and follows the curve more closely. Fit arcs is still marked beta, so check the result in CAD.

The file uses the widely supported R12 DXF format with polylines and circles, so it opens in AutoCAD, Fusion 360, SolidWorks, LibreCAD, QCAD, Inkscape and most CAM programs. Outer edges are on layer OUTER, holes on HOLES and centrelines on LINES, each in its own colour.

Turn on Photo mode, which copes with shadows and uneven light. Raise the speck filter to drop small dots, and use Crop to trace only the part you need. Better still, take the photo square on in even light, or scan the drawing.

Load the logo image, click the Logo preset, check that the B&W view shows every part of the logo solid, type the overall width you want in section 3 and click Download DXF. The logo comes out as closed outlines on layer OUTER with its holes on layer HOLES, ready for laser, plasma, router or CAM work. Click Try a sample logo to see the whole process first.

Yes. PNG, JPG, BMP and WEBP images all work, and a transparent PNG background is treated as white. The image is traced into polylines (and circles and arcs if Fit arcs is on), scaled to millimetres or inches, and saved as an R12 DXF or an SVG.

Yes. Turn on Colour logo (the Logo preset does this). Each pixel is then judged by how far its colour is from the background colour rather than by its brightness, so a yellow logo on white or a white logo on a dark blue background both trace cleanly without Invert. Logos with very pale colours may need the threshold set by hand.

Traced geometry is an approximation of the image. Check critical dimensions against the original drawing before machining from the DXF.

Open-source credits. The tracing engine is written in Rust and runs as WebAssembly, built with wasm-bindgen (MIT or Apache-2.0); browsers that can't run it use the same engine in JavaScript. The page uses Bootstrap (MIT).