DXF to STL converter
Give a 2D drawing a thickness. Plates, brackets, gaskets, spacers, templates and laser-cut parts drawn in AutoCAD, Fusion, LibreCAD, Inkscape or QCAD become solid, printable parts — outer outlines filled, holes kept as holes, loose lines and arcs joined into closed shapes automatically.
Drop a DXF file here
or
Your file is processed on this device and never uploaded.
How to convert a DXF to STL
- Open the DXF. Any ASCII DXF will do — the format written by essentially every 2D and 3D CAD program, laser cutter and CNC tool.
- Check the size. The info panel shows the drawing units it found and the size of the result in millimetres. If it is 25.4 times too small, the drawing was in inches but did not say so — set Drawing units to Inches.
- Set the thickness and download STL or 3MF.
What a DXF contains, and what becomes solid
A DXF is a list of drawing entities: lines, arcs, circles, polylines, splines, text, dimensions and more. None of them has a thickness or an inside. To make a solid, the converter has to find closed outlines — chains of geometry that return to where they started — and decide which areas they enclose.
| Entity | How it is used |
|---|---|
| CIRCLE, closed ELLIPSE | A closed outline on its own |
| LWPOLYLINE, POLYLINE | Closed if flagged closed; arcs from bulge values are followed exactly |
| LINE, ARC, open polylines | Joined end to end into closed outlines where their ends meet |
| SPLINE | Evaluated as a B-spline, or through its fit points |
| INSERT (blocks) | The block's geometry, moved, scaled and rotated into place |
| TEXT, MTEXT, HATCH, DIMENSION | Ignored, and listed in the notes |
Joining lines and arcs
Many drawings do not use closed polylines at all. A plate drawn in a hurry is four separate lines; a slot is two lines and two arcs. The converter walks from each loose end to the nearest matching end, reversing pieces where needed, until the chain comes back to its start.
"Matching" means the ends are within the joining tolerance of each other. The default of 0.01 drawing units closes gaps caused by rounding without accidentally merging outlines that are genuinely separate. If an outline that is obviously closed on screen is reported as open, the drawing probably has a small gap — raise the tolerance a step at a time until it closes, or fix the gap at the source.
Holes, islands and nested parts
Once outlines are closed, their relationship decides what is solid. The rule is simple and matches how a laser cutter sees the same file: an outline with nothing around it is a part; an outline inside a part is a hole; an outline inside that hole is solid again. A gasket with bolt holes, a nameplate with a cut-out logo, or a sheet of several nested parts all come out correctly without choosing anything.
This does rely on outlines not crossing each other. Two outlines that intersect cannot be sorted into inside and outside, and will produce odd results; tidy them up in CAD with a trim or boolean operation first.
Units and scale
Well-formed DXF files record their units in the header variable $INSUNITS. With Drawing units on Auto, that value is used and the model comes out at its true physical size in millimetres. Plenty of files leave it unset — Inkscape and many older tools do — and those are treated as millimetres; the info panel says when that has happened. The Scale box applies on top of the unit conversion, for example to print a template at 50%.
Arc smoothness
Arcs, circles and splines are exact in the DXF but must be divided into straight segments for a 3D mesh. The setting is the number of segments in a full circle. The default of 96 keeps even a 50 mm hole visually round and dimensionally accurate to a few hundredths of a millimetre. Small holes that must accept a screw or pin are more sensitive to your printer's calibration than to this number — see our guide to tolerance and fit for how much clearance to allow.
Nothing is uploaded
Most online converters send your file to a server, process it there and hand back the result — which means your drawing or photo sits on someone else's disk for however long their retention policy says. This page does all of the work in your browser tab. The file is read with the browser's FileReader, converted by JavaScript on your own processor and saved straight to your downloads folder. You can confirm it: open your browser's developer tools, switch to the network tab and watch that no request carrying your file is ever made.
Frequently asked questions
Why is part of my DXF missing in the 3D model?
Only closed outlines can be extruded, because only they enclose an area. If a shape is drawn as lines whose ends do not quite meet, it stays open and is skipped — the notes under the preview say how many. Raise the joining tolerance slightly, or close the gap in your CAD program with a join or PEDIT command.
Does it handle holes?
Yes. Outlines are sorted by which one lies inside which: the outermost is solid, one inside it is a hole, one inside that hole is solid again, and so on. Bolt holes, cut-outs and slots come out as holes without any extra work.
What units does the model use?
Millimetres. If the DXF declares its units in the header ($INSUNITS), they are converted automatically — an inch drawing comes out at the right physical size. Many DXF files do not declare units at all; they are then treated as millimetres, and you can override that with the Drawing units setting.
Which DXF versions are supported?
ASCII DXF from R12 onwards, which is what AutoCAD, Fusion 360, LibreCAD, QCAD, Inkscape, FreeCAD and nearly all laser and CNC software write. Binary DXF is rare and is not supported — re-save as ASCII DXF.
What about text, hatches and dimensions?
They are ignored and listed in the notes. Dimensions and hatches are annotation, not geometry. Text in a DXF depends on fonts the file does not contain; explode it to polylines in your CAD program, or add lettering with the Text to STL converter.
Can I convert a DXF with several separate parts?
Yes. Every closed outline that is not inside another becomes its own solid, so a sheet of nested laser-cut parts converts in one go. They are exported together in one file and can be separated in your slicer.