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.
1. Black and white
2. Trace
3. Real size
CAD Vector Preview
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
- 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.
- 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.
- 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.
- Set the real size. In section 3, type the overall width (or height) the logo should be cut at.
- 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
Worked Example
- 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
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).