Kairo3D
NewPixal3D is live
Free 2D CAD to 3D tool

DXF to STL Converter

Drop a DXF drawing and this DXF to STL converter joins its lines, arcs, circles and splines into closed outlines, keeps every hole, reads the drawing units and extrudes the profile to the thickness you choose. Download a binary STL or a 3MF in millimetres — all in your browser.

Drop a DXF file here

ASCII DXF from any CAD program. Lines, arcs, circles, polylines, ellipses, splines and blocks are read.

No file? Open a sample:
Drawing units
5.0mm
100%

100 % = true size from the drawing.

Join gap

Ends closer than this are joined into one outline.

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.

  1. 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.

  2. 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.

  3. 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.

From drawing to solid

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.

1 · DXF entitiesLINEARCCIRCLE2 · Closed profileHoleExtrude3 · STLThicknessUnits are read from the DXF header ($INSUNITS) and converted to millimetres.
Left: separate DXF entities. Middle: the joined outline with its hole. Right: the extruded plate.
  1. Entities become polylines

    Lines stay straight; arcs, bulges, circles, ellipses and splines are sampled into short segments in drawing units.

  2. 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.

  3. 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.

  4. 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 the converter reads

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 contentIn the STLNotes
LINE, ARC, open LWPOLYLINEJoined into outlinesPieces whose ends meet within the join gap (0.01–1 mm) are chained into one closed loop.
CIRCLE, closed polylines, closed splinesOutlines or holesAny loop inside another becomes a hole; a loop inside a hole becomes a new solid island.
Polyline bulges (arc segments)Kept as arcsBulge values are turned back into arcs, sampled at 96 segments per full circle.
ELLIPSE, SPLINEApproximatedEllipses are sampled; splines are evaluated from control points and knots (rational weights included) or follow their fit points.
INSERT (block references)ExpandedPosition, scale, rotation and array rows / columns are applied, nested up to 8 levels.
$INSUNITS (mm, cm, m, inch, feet)Converted to mmUnitless drawings fall back to mm, or inch when $MEASUREMENT says imperial.
TEXT, MTEXT, DIMENSION, HATCHSkippedNotes and dimensions are not geometry. Explode text to polylines in your CAD program if you want it cut.
LayersSelectableSwitch layers off to leave out centre lines, title blocks or construction geometry.
3D solids, meshes, binary DXF, DWGNot readSave 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.

References:Autodesk DXF Reference$INSUNITS header variable

Flat parts in the real world

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.

  • Clear laser-cut acrylic parts with rounded corners and holes lying on a workbenchReference example
    Laser-cut acrylic parts from 2D outlinesvia commons.wikimedia.org
  • Eight white 3D-printed brackets with screw holes still on their print raftReference example
    A batch of printed brackets on the raftvia flickr.com
  • A technician drilling a row of flat aluminium ribs fixed along a long sparReference example
    Flat aluminium ribs cut from 2D profilesvia images.nasa.gov
  • Hand holding a small white 3D-printed L bracket with two screw holesReference example
    3D-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 with a keyed centre bore extruded from a DXF file

    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-shaped mounting bracket with two slots and round holes extruded from DXF

    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.

  • Bracket extruded with the slots layer switched off, only bolt holes left

    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.

  • Closed bracket profile joined from separate DXF lines and arcs, holes shown in white

    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.

  • Unit picker reading mm from the DXF file, with thickness and scale sliders

    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.

  • Close view of an extruded flange with six bolt holes and a keyed bore cut through

    Holes found automatically

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

  • Layer buttons in the tool with one DXF layer switched off

    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.

  • Thick extruded flange part ready to download as STL or 3MF

    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.

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.

Try image to 3D