DXF to STL Converter
Drop a DXF file here
ASCII DXF from any CAD program. Lines, arcs, circles, polylines, ellipses, splines and blocks are read.
100 % = true size from the drawing.
Runs in your browser — your files are never uploaded.
- Nothing uploaded
- Units read from the file
- Holes kept
- STL + 3MF
A flat CAD profile to a printable part
The DXF is read as geometry — coordinates, arcs and units — never rasterised, so a 6 mm hole stays a 6 mm hole.
- 8entity types read: LINE, ARC, CIRCLE, LWPOLYLINE, POLYLINE, ELLIPSE, SPLINE, INSERT
- 0files uploaded — parsing and extrusion run on your device
- 0.4–50 mmextrusion thickness, at true size or scaled
How to convert DXF to STL
Three steps from a CAD drawing to a part your slicer opens at the right size.
Add the DXF
Drop an ASCII .dxf from AutoCAD, LibreCAD, QCAD, Fusion, SolidWorks, Inkscape or a laser-cutting library — or open the flange or bracket sample.
Check units and thickness
The tool reads $INSUNITS from the file. If the drawing has no unit, pick mm, cm or inch, then set the plate thickness and, if needed, a scale.
Download STL or 3MF
Look at the size, outline and hole counts, switch layers on or off, then save. The file is in millimetres, so Bambu Studio, PrusaSlicer, Cura and Orca open it at true size.
How a DXF becomes an STL
A CAD drawing is usually a pile of separate lines and arcs. Before anything can be extruded, they have to form closed loops.
Entities become polylines
Lines stay straight; arcs, bulges, circles, ellipses and splines are sampled into short segments in drawing units.
Touching ends are chained
An end that lands within the join gap of another end is joined to it until the loop closes. Ends that never meet are drawn red and reported.
Nesting finds the holes
Loops are sorted by size; a loop inside another is a hole, a loop inside a hole is a new solid — like a washer in a washer.
The profile is extruded
Every outline with its holes is triangulated and pushed straight up by the thickness, giving a closed, outward-facing solid in mm.
What a DXF keeps — and loses — on the way to STL
DXF stores drawing entities; STL stores a closed surface of triangles. This is how each part of a DXF file is treated when you convert DXF to STL here.
| DXF content | In the STL | Notes |
|---|---|---|
| LINE, ARC, open LWPOLYLINE | Joined into outlines | Pieces whose ends meet within the join gap (0.01–1 mm) are chained into one closed loop. |
| CIRCLE, closed polylines, closed splines | Outlines or holes | Any loop inside another becomes a hole; a loop inside a hole becomes a new solid island. |
| Polyline bulges (arc segments) | Kept as arcs | Bulge values are turned back into arcs, sampled at 96 segments per full circle. |
| ELLIPSE, SPLINE | Approximated | Ellipses are sampled; splines are evaluated from control points and knots (rational weights included) or follow their fit points. |
| INSERT (block references) | Expanded | Position, scale, rotation and array rows / columns are applied, nested up to 8 levels. |
| $INSUNITS (mm, cm, m, inch, feet) | Converted to mm | Unitless drawings fall back to mm, or inch when $MEASUREMENT says imperial. |
| TEXT, MTEXT, DIMENSION, HATCH | Skipped | Notes and dimensions are not geometry. Explode text to polylines in your CAD program if you want it cut. |
| Layers | Selectable | Switch layers off to leave out centre lines, title blocks or construction geometry. |
| 3D solids, meshes, binary DXF, DWG | Not read | Save as an ASCII DXF profile. DWG must be exported to DXF first. |
An STL is a mesh, not a CAD model: you get a solid plate with straight walls you can print, but no editable sketch, no constraints and no fillets on the edges. For a feature-based CAD file, extrude the DXF in your CAD program instead.
What parts from a 2D profile look like
Brackets, flanges, gaskets and plates are the classic DXF jobs. These photos by other makers show the kind of part a flat profile turns into, cut or printed.
Reference exampleLaser-cut acrylic parts from 2D outlinesvia commons.wikimedia.org
Reference exampleA batch of printed brackets on the raftvia flickr.com
Reference exampleFlat aluminium ribs cut from 2D profilesvia images.nasa.gov
Reference example3D-printed bracket with screw holesvia flickr.com
Reference examples from other sites, shown to illustrate flat profile parts. They were not made with this tool.
Made with this DXF to STL converter
Real outputs from the tool on this page — screenshots of the 3D preview before download.

Six-bolt flange, 6 mm plate
A Ø120 mm flange: one LWPOLYLINE with bulges, a keyed bore built from an arc and three lines, and six Ø11 holes.

L-bracket with slots
Lines and fillet arcs joined into one outline, two slots, an ellipse cut-out and two holes inserted as a block.

Same bracket, slots layer off
Turning off the SLOTS layer leaves only the outline and bolt holes — handy for drawings full of construction geometry.
Why use this DXF to STL converter
Built for the flat parts people actually draw in 2D: brackets, flanges, gaskets, spacers, signs and jigs.

Lines and arcs joined for you
Most CAD drawings are loose lines and arcs, not closed polylines. They are chained end to end automatically, with an adjustable join gap for sloppy endpoints.

Real units, real size
Units come from the DXF header, so an inch drawing prints at 25.4 mm per inch. Override with mm, cm or inch when a file has no unit.

Holes found automatically
Inner loops become through-holes — bolt circles, keyways, slots and cut-outs — with islands inside holes kept as separate solids.

Layers on and off
Leave out centre lines, borders, title blocks or a whole set of features by switching their layers off before you extrude.

STL or 3MF out
Save a binary STL for any slicer or a 3MF with the unit set to millimetres. The weight readout estimates PLA at 100 % infill.
Private by design
The DXF is parsed in this browser tab. Nothing is sent to a server and no account is needed, so client drawings stay on your machine.
DXF to STL — questions
Straight answers about converting DXF files to STL.
More ways to work with your 3D files
View, convert, or make a model from scratch.
STL to SVG
Slice or project an STL into a clean SVG outline for laser and CNC.
Heightmap Generator
Generate terrain heightmaps and export PNG or a printable STL.
SVG to STL
Extrude an SVG logo or drawing into a 3D STL.
STEP to STL
Convert STEP / STP CAD files to STL for printing.
STL to 3MF
Pack STL files into a 3MF for your slicer.
Text to STL
Type text, pick a font, download 3D letters.
Need a shaped 3D object, not a flat plate?
Kairo3D’s AI turns a picture or a sketch into a full 3D model with depth on every side.
