Open FlatCad 3D

DXF to STL converter

Turn a 2D DXF into a 3D-printable STL. Drop a laser-cut or CNC part, a gasket, a plate or a logo: closed outlines become solid with their holes cut out, at the exact size in the drawing. Set the thickness, see it in 3D, and download an STL or 3MF.

Convert a DXF to STL

Loading…

How to convert a DXF to STL

  1. Drop the DXF in the box above. It is shown in 3D at the size in the file.

  2. Set the thickness in mm: how thick the part prints.

  3. Check the layers. Untick dimension, text or border layers under the 3D view.

  4. Download the STL or 3MF and slice it. It lies flat on the bed, ready to print.

Good uses

What the settings do

How the DXF is read

The reader takes the units from $INSUNITS: inches, feet, millimetres, centimetres and metres are recognised. A file without that header is read as millimetres and the status line says No units in the file: read as millimetres. If a part drawn in inches comes in at 4 mm wide instead of 101.6 mm, set DXF units to inches. Any part under 3 mm or over 1500 mm gets a hint that the size looks wrong.

Arcs, circles, bulges in polylines, ellipses and splines are turned into short straight segments that stay within 0.02 mm of the true curve, which is far below what a 0.4 mm nozzle can show. Blocks are expanded with their position, scale, rotation and array rows and columns, nested up to eight levels deep, and mirrored entities (the ones some CAD programs store with a flipped extrusion direction) are mirrored back.

Separate LINE and ARC entities are chained into one outline when their ends meet within 0.001 mm on the same layer. That is strict on purpose: it keeps neighbouring parts from being welded together, but it means a contour with a visible gap stays open. An open contour does not become solid; in Filled as drawn it is printed as a wall of the line width instead, and the status line says how many lines were made walls. That message is the quickest sign that an outline is not closed.

A worked example: the bracket

The example bracket is an 80 × 40 mm plate with rounded corners and a round-ended tab that brings it to 70 mm tall, drawn in millimetres as separate lines and arcs, with two 6.5 mm holes for M6 bolts, an 8.5 mm hole in the tab and a 28 × 12 mm slot. At 3 mm thick with no base it prints as one flat piece with every hole open. The status line also estimates the weight in PLA, from the volume at 1.24 g/cm³: useful to compare a 3 mm and a 5 mm version before you slice.

Holes in a printed part usually come out 0.1–0.3 mm small, because the plastic squeezes inward on curves. If a bolt must fit, either enlarge the hole in the DXF or drill it out after printing.

When to use something else

This tool extrudes a flat drawing straight up. If the part needs countersinks, chamfers, a step in height or fillets on its edges, open it with Open in FlatCad 3D and add them there, or start in FlatCad 3D. If you only need to check a DXF's layers and size, the DXF viewer is quicker, and if your file is a DWG, convert it to DXF first: it is AutoCAD's closed format and is not read here. Files up to 60 MB are accepted.

Want to check or edit the drawing first? The DXF viewer shows its layers and size, and FlatCad edits it. Have an SVG? SVG to STL. For full 3D parts with holes, fillets and more, use FlatCad 3D.

Open FlatCad 3D, free, no signup

Questions

Does it keep the size of my drawing?

Yes. Size starts at As drawn, using the units saved in the DXF ($INSUNITS). If the file has no units it is read as millimetres; change DXF units if the part comes out 25.4 times too small or too big.

Which DXF entities work?

Lines, polylines and lightweight polylines (with bulges), arcs, circles, ellipses, splines and blocks. Lines that meet end to end are joined into closed outlines. Text and dimensions are left out.

My part comes out as thin walls, not solid.

Its outline isn't closed: two ends don't quite meet. Close the gap in your CAD program, or open the DXF in FlatCad and join it. Open lines print as walls of the Line width you set.

How do I leave out dimensions or a border?

Put them on their own layer: every layer gets a checkbox under the 3D view, so untick the ones you don't want printed.

Can I make it a sign or keychain?

Choose a base (an outline around it or a rounded plate) and the drawing is raised on it; tick Hanging hole for a keychain or tag.

Can I convert a DWG?

Not directly: DWG is AutoCAD's closed format. Save it as DXF from AutoCAD, DraftSight or LibreCAD (or the free ODA File Converter), then drop the DXF here.

Is my file uploaded?

No. The DXF is read and the STL is made in your browser.