NASJI

Free forever · No sign-up · No watermark

JPG to DXF Converter

Turn a .jpg scan, photo or export into a DXF of editable polylines for CAD, laser cutting and CNC. Free, no watermark, no account.

output

Drop images here, or click to choose

Conversion starts immediately. Up to 100 MB per file.

pngjpgjpegwebpgifbmptifftifavifsvgico

How to convert JPG to DXF

1

Upload your JPG file

Drop your .jpg on the converter, click to browse, or paste a screenshot with Ctrl+V.

2

We trace the lines

Otsu thresholding removes JPEG ringing before tracing, so the cut path follows the drawn line instead of the halo around it.

3

Download a real DXF

You get an R2000 ASCII DXF with editable LWPOLYLINE geometry — the open CAD exchange format — editable geometry, ready to draft on, not a picture to trace again.

What you get: lines, not pictures

A floor plan with solid walls, furniture and text — and the CAD geometry this converter produces from it. Walls keep both faces, every thin line is a single editable polyline, and labels become real editable text.

Example JPG floor plan before conversion
Input: raster image (solid walls, thin furniture lines, text)
Editable DXF vector drawing produced by the converter
Output: editable DXF polylines (walls outlined, lines centerlined)

About JPG to DXF conversion

JPG to DXF is the request that reveals the most about why naive tracers disappoint. The typical input is a photographed or scanned drawing and the typical destination is a machine — so every compression artifact that survives cleanup becomes a real cut in real material. JPEG's block transform surrounds every high-contrast edge with ringing and grey halos, and a tracer that treats grey as ink will happily produce a fuzzy double path around each line, doubling your cut time and ruining the part.

The threshold pass is what prevents that. The cut point is computed from each image's own histogram, so halo tones and paper colour fall to white and only the ink is measured. The remaining honest limitation is upstream: heavy compression physically removes thin lines inside the JPEG before you upload it, and no amount of processing invents them back. Scan at 300 DPI and quality 90 or better. Output is R2000 ASCII DXF, which LightBurn, VCarve, plasma controllers and vinyl cutters all read without an import step.

Frequently asked questions

Will JPEG artifacts turn into extra cut paths?

Not after thresholding. Ringing and mosquito noise are grey, and the binarization step puts them on the white side of the cut before any geometry is measured — so the tracer follows the drawn line, not the halo around it.

What resolution should I scan at for cutting?

300 DPI minimum, higher for small detail, at JPEG quality 90 or above. Compression damage happens inside the file at capture time; a beautiful trace of a badly compressed scan is still a trace of missing lines.

Which software opens the DXF?

LibreCAD, QCAD, FreeCAD and SolidWorks on the CAD side; LightBurn, VCarve, plasma table controllers and vinyl cutter software on the fabrication side. It is R2000 ASCII DXF — the most broadly compatible variant.

Are filled shapes and thin lines traced differently?

Yes, and it matters for cutting. Thin lines become one centerline polyline each. Solid regions are traced along both real edges, so you can choose to cut the outline or pocket the interior — rather than being handed a single ambiguous line down the middle.

Can I convert a photo of a part to DXF?

You can convert a photo of a drawing of a part. A photo of the physical object is a different problem: shadows, perspective and rounded edges have no crisp boundary to threshold. Lay the part on white paper, trace round it, and photograph the outline for a much better result.

Convert from a script or an AI agent

The same conversion is one HTTP call — no key, no account, no rate limit. The full machine-readable spec lives at /llms.txt.

curl -X POST https://nasji.com/api/convert \
  -F "[email protected]" \
  -F "target=dxf" \
  -o drawing.dxf