Skip to content
Find a tool

JPG to DXF Converter

Clean up a JPG with brightness and contrast, trace it, and download a DXF sized in millimetres.

Free · runs in your browser · nothing is uploaded

Open on Outlinecut

This embed was switched off for this website. Open on Outlinecut

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

To convert a JPG to DXF, the picture is brightened or darkened, reduced to black and white and traced into closed polylines in millimetres. JPG is harder to trace than PNG, because compression leaves noise and halos around edges, so this page puts Brightness and Contrast sliders ahead of the automatic Otsu threshold and a speck filter after it. You type the real width, choose DXF R12 or R2000 and download the file. Logos, silhouettes, line art, text and scanned drawings give the cleanest results. Photos come out as two-tone silhouettes. The sections below cover the steps in order, why a JPG trace can fill with tiny shapes, and how to get a clean one.
Jpg to dxf example

How to convert a JPG to DXF

  1. Choose your JPG, drop one on the tool or paste one from the clipboard. Try a sample loads a test picture if you only want to see the tool work.
  2. Set Width (5 to 600 mm, default 100). The height follows the picture. Width is the width of the whole picture, empty margin included; the shapes keep their place inside it, so a logo with a white border comes out narrower than this figure (crop the picture tight if the shapes must be exactly this wide).
  3. Move Contrast and Brightness (both -100 to 100, default 0) until the shapes stand out clearly from the background.
  4. Leave Black and white threshold on automatic (0), which uses Otsu’s method, or drag it between 1 and 255 to set the cut-off yourself.
  5. Tick Invert if the shape you want is light on a dark background.
  6. Raise Remove specks up to (0 to 40, default 8) to clear leftover noise.
  7. Set Smallest feature (0 to 5 mm, default 0.5) to drop shapes too small to be useful.
  8. Choose a DXF version: R12 (the default) or R2000.
  9. Check the Overlay view against the original, then click Download DXF. Download SVG and Download PDF are also offered.

Change one control at a time. The trace re-runs after every move, so the preview always matches the file you would download. The line under the preview shows the size in millimetres, the paths, the nodes and the file size, and the Original view lets you compare the result with the starting picture.

How do I convert a JPG to DXF?

The converter makes the JPG black and white, cleans the edges and writes each shape as a closed polyline in millimetres. A DXF holds only vector geometry, so every step exists to give the tracer clean shapes to follow. The stages run in this order:

  1. Invert, Brightness and Contrast are applied to the picture first.
  2. The threshold splits it into dark and light. At 0 it is chosen automatically with Otsu’s method.
  3. The speck filter removes small leftover dots.
  4. Smallest feature drops any shape smaller than the size in millimetres you chose.
  5. The remaining shapes are written as polylines in R12 or R2000.

Why is my JPG DXF full of tiny shapes?

JPEG compression leaves noise and halos around edges, and the tracer reads each speck as a separate shape. Raise Remove specks up to first, then Smallest feature, then Contrast. The table links each symptom to the control that fixes it.

What you seeControl to change
Hundreds of small dotsRaise Remove specks up to
Thin slivers along edgesRaise Smallest feature
Halos merging into the shapeRaise Contrast
A solid block where detail should beLower the threshold, or raise Brightness
Detail missingRaise the threshold, or lower Brightness

If the picture is heavily compressed, start from a cleaner export of the same artwork when you have one.

How much resolution does the JPG need?

Enough that your smallest detail is several pixels wide at the traced size. The tool traces at most 1,600 pixels on the long side, so a larger JPG gains nothing beyond that. At 300 mm wide, one traced pixel is 0.1875 mm, so the default Smallest feature of 0.5 mm is about 2.7 pixels. A small JPG blown up to a large width gives wide pixels and a coarse outline.

Can I convert a photo to DXF?

Yes, but the result is a silhouette, not a drawing. A photo has no outlines to follow, so the threshold turns it into dark and light areas and the DXF holds the outline of the dark ones. A portrait against a plain backdrop works best: adjust Brightness and the threshold until the subject becomes one clean dark shape, then raise Remove specks up to to tidy the rest.

Answers to common questions

Which DXF version should I pick?

R12 (AC1009) is the default and the oldest widely read version; it writes POLYLINE entities. R2000 (AC1015) writes LWPOLYLINE entities. Use R12 unless your software asks for R2000.

Is the DXF scaled in mm?

Yes. The header sets $INSUNITS to millimetres, so the Width you type is the real width in your CAD or cutting program. Layers are named after the fill colour.

Do I need AutoCAD?

No. The tool runs in your browser and needs no CAD program. The DXF is for whatever you open it in next, such as a CAD package or laser software.

Why is my DXF empty or one big block?

The threshold is on the wrong side of your picture. If everything is filled, lower Black and white threshold or raise Brightness. If nothing is traced, raise the threshold or tick Invert.

Which JPGs work best?

Sharp, high-contrast artwork traces best, such as logos, silhouettes, sketches and simple diagrams. Soft gradients do not separate into clean cut paths.

Does JPG compression change the result?

Yes. Strong compression leaves halos and speckle along edges, and some of it can turn into tiny extra shapes. Use Remove specks up to and Smallest feature to clear them.

Can the DXF have several colour layers?

A black and white trace has one layer, named from its fill colour. If you need several colour layers, use the cut file page, where the DXF has one layer per colour.