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
Recent
Your last 10 settings, saved only in this browser. Nothing is uploaded.

How to convert a JPG to DXF
- 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.
- 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).
- Move Contrast and Brightness (both -100 to 100, default 0) until the shapes stand out clearly from the background.
- 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.
- Tick Invert if the shape you want is light on a dark background.
- Raise Remove specks up to (0 to 40, default 8) to clear leftover noise.
- Set Smallest feature (0 to 5 mm, default 0.5) to drop shapes too small to be useful.
- Choose a DXF version: R12 (the default) or R2000.
- 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:
- Invert, Brightness and Contrast are applied to the picture first.
- The threshold splits it into dark and light. At 0 it is chosen automatically with Otsu’s method.
- The speck filter removes small leftover dots.
- Smallest feature drops any shape smaller than the size in millimetres you chose.
- 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 see | Control to change |
|---|---|
| Hundreds of small dots | Raise Remove specks up to |
| Thin slivers along edges | Raise Smallest feature |
| Halos merging into the shape | Raise Contrast |
| A solid block where detail should be | Lower the threshold, or raise Brightness |
| Detail missing | Raise 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.
Related tools
- PNG to DXF Converter: use it when your source is a PNG, including one with a transparent background.
- Image to DXF Converter: use it when the source is a photo, scan or another picture type, with a Smoothing control.
- SVG to EPS Converter: use it when you already have vector artwork and need EPS.
- DXF and EPS Converters: use it to see every DXF and EPS tool on this site.
- Convert Image to Cut File: use it when the cut needs several colour layers.
- Photo to Stencil: use it when you want a stencil with bridges instead of a plain outline.
- Photo to Outline: use it to get the outline of the subject only.
- Silhouette Maker: use it when you want one solid shape from a photo.