Convert DXF to STL — For 3D DXF Files Only
Upload a DXF and get an STL in one of two ways: 3D faces and polyface meshes are converted directly, and a 2D drawing with closed outlines is extruded into a plate one drawing unit thick, with inner loops cut out as holes. AutoCAD ACIS solids (3DSOLID) cannot be read.
Download Started!
How would you rate your experience with MiConvert?
Why Convert DXF to STL, and What the Converter Does
DXF is AutoCAD's exchange format, and most DXF files are 2D: laser and CNC cutting profiles, sign lettering, floor plans, parts drawn in LibreCAD or Inkscape. A smaller share carry 3D surfaces as 3DFACE, MESH or polyface entities, exported from SketchUp, Revit, Rhino or AutoCAD. Either way, a slicer cannot print lines, so something has to turn the drawing into closed triangle surfaces first.
The converter reads the file with ezdxf, a Python DXF library, on our server and looks for real 3D surfaces first, including those inside blocks. 3DFACE, MESH, polyface and polygon-mesh entities are triangulated and written to the STL as they are. If there are none, the file is treated as a 2D drawing: lines, arcs, circles, ellipses, splines and polylines, also those inside blocks, are chained into closed loops, a loop inside another becomes a hole, and every region is extruded 1 drawing unit high.
Real drawings have small gaps where segments should meet, so open ends are joined when they lie within 0.001% of the drawing's diagonal, and the tolerance steps up to 0.1% if the outline still does not close. Arcs and splines are flattened into straight segments that stay within 0.05 drawing units of the true curve. Text and dimensions are never extruded, and lines on layers named like dim, text, title, border, center or hidden, or drawn with dashed linetypes, are set aside whenever the part closes without them.
The thickness is fixed and the DXF unit setting is not applied. A drawing in millimeters becomes a 1 mm plate; an inch drawing comes out 1 unit thick at inch numbers, which the slicer reads as millimeters. Scale the Z axis in your slicer to set the real thickness. If the only closed shape is a small fragment of a larger open drawing, such as a dimension arrowhead or a bolt hole inside an outline with a gap, the converter refuses instead of handing you the wrong part.
Typical users drew a profile for a cutter and now want a printed version, are turning a logo, stencil or gasket into a printable plate, or have a 3D DXF from SketchUp or AutoCAD that their slicer will not open.
How to Convert DXF to STL
- Check that the part boundary is closed. In AutoCAD or LibreCAD, join it into a closed polyline with PEDIT or JOIN; in Inkscape, close the paths before saving as DXF.
- Keep the drawing at true scale. Dimensions, text and title blocks can stay in the file; they are not extruded.
- Drop the .dxf file on this page, where STL is preset, and click Convert.
- Open the STL in your slicer and set the Z size to the thickness you need; X and Y follow your drawing.
- For a part with varying thickness or real 3D shape, model it in CAD and export STL or STEP instead.
Key Conversion Features
- Two paths: 3D faces and polyface meshes converted directly, closed 2D outlines extruded
- Holes, slots and cut-outs kept, since loops inside loops are subtracted
- Gap closing that tolerates exporter errors up to 0.1% of the drawing size
- Dimension, text and dashed construction linework kept out of the solid
- Blocks (INSERT and MINSERT arrays) expanded, and profiles drawn in a side plane laid flat
- Falls back to paperspace layouts when modelspace is empty
Video Tutorial
Detailed guide on how to convert DXF files to STL quickly, for free, and without losing original quality. Perfect if you need to process file formats, reduce size, or upload files to systems that only
Frequently Asked Questions
Can a flat 2D DXF really be converted to STL?
Yes, if its outline is closed. Closed shapes are filled and extruded 1 drawing unit thick, with shapes inside them cut out as holes. A drawing of only open lines or text has no area to extrude and is rejected.
Why does my DXF fail with "No valid 3D geometry found"?
It is the most common failure for DXF to STL. The outline is not closed (a gap larger than the tolerance or a missing segment), the file holds only text and dimensions, or the only closed shape is a tiny piece of the drawing. Join the outline into a closed polyline and upload again.
Why did my AutoCAD 3D solid fail?
AutoCAD stores 3DSOLID, REGION and BODY entities as ACIS data inside the DXF, and the converter cannot decode ACIS. Export the solid from AutoCAD with the STLOUT command instead, which skips the DXF entirely.
How do I set the thickness (padding) of the STL?
The extrusion is always 1 drawing unit. In Cura, PrusaSlicer or Bambu Studio, turn off uniform scaling and type the Z size you want; the outline stays exactly as drawn.
Are the units right?
Coordinates pass through as plain numbers. A millimeter drawing comes out at the right size. For an inch drawing, scale the model by 25.4 in the slicer and then set the Z size.
Are layers and colors kept?
No. STL holds geometry only. All closed regions from the drawing go into one STL, positioned as they are in the DXF.
Can I convert several DXF files at once?
Yes. Plus allows 25 files per batch and Pro 50; without a paid plan the limit is 10. Each file produces its own STL. Without an account each file may be up to 50 MB.
Is my drawing stored?
It is converted on our servers and removed as soon as the job ends; the STL is cleaned up automatically after about four hours.