DXF to STL Converter

Extrude the closed outlines in a DXF into a watertight STL at real size, in your browser.

Matúš Koleják

Built and maintained by Matúš Koleják, Co-Founder, TechDraw AI

Updated

Drop a file here. It never leaves your browser.

DXFtoSTL

DXF (ASCII or binary), DWG (R14 to 2018+), SVG · any size · free · STL first, DWG, SVG, PDF one click away

Have a different file? DWG to STL Converter · SVG to STL Converter

How to convert a DXF to STL

1

Add your DXF

Drop a DXF onto the tool, or click to choose one. It is read in your browser and never uploaded.

2

Check the preview

Zoom the preview, switch off any layers you do not want, set the thickness and the size.

3

Download STL

Click Download STL. DWG, SVG, PDF are one click away from the same file.

What happens to your file

The DXF is read as geometry, every closed outline is found, holes are sorted from outlines, and the result is extruded to the thickness you set and written as a watertight binary STL at the drawing's real size. Open paths cannot bound a solid and are left out; the page tells you how many.

Whatever cannot be converted is listed under the preview by type and count, so a drawing with 3D solids or an external reference tells you so instead of coming out quietly incomplete. Need a photo or scan turned into a drawing instead? That is the image to DXF converter and the AI drawing generator.

About formats

DXF (Drawing Exchange Format) is a CAD data file format developed by Autodesk, first released in December 1982 with AutoCAD 1.0 to enable interoperability between AutoCAD and other programs. The format exists in two variants: ASCII DXF, a human readable text file organised into sections (HEADER, TABLES, BLOCKS, ENTITIES, OBJECTS), and binary DXF for faster parsing. Each geometric entity, including lines, arcs, circles, polylines, splines, text, dimensions and 3D solids, is described by group codes paired with values that specify coordinates and properties. DXF versions evolve alongside AutoCAD releases, adding support for new features with each edition. One major advantage is universal CAD compatibility, since DXF is supported by virtually every CAD, CAM and engineering application across all platforms, which makes it the most widely accepted exchange format for technical drawings. The ASCII variant is another strength, because drawings can be inspected, debugged and generated programmatically with text tools or scripts. DXF serves as a critical bridge that lets architects, engineers and manufacturers share precise drawings regardless of which software each party uses, and it remains the standard for cross platform CAD data exchange.

Developer:
Autodesk
Initial release:
December 1982

Frequently asked questions

Is DXF to STL conversion free?

Yes, with no watermark and no file limit. Everything runs in your browser, so the file never leaves your computer; a free account is needed only to download a converted file. Viewing needs no account at all.

Is my DXF uploaded anywhere?

No. The file is opened by JavaScript running in your browser tab and never sent to a server. You can disconnect from the internet after the page loads and the tool keeps working. That is the main reason to prefer this over an upload-and-email converter for a drawing you are not allowed to share.

Which DXF files open?

ASCII and binary DXF from R12 to 2018 and later. R12 files with old-style POLYLINE entities are handled, and closed polylines are kept closed, which matters for cutting and for STL.

Why does it say some paths were left out?

An STL is a closed solid, and only a closed outline can bound one. Dimension lines, centre lines, leader lines and any outline whose ends do not meet are open paths and have no inside to fill, so they are skipped and counted. If a shape you wanted is missing, close it in your CAD program (PEDIT, Close in AutoCAD; Path, Close in Inkscape) and drop the file again.

How are holes handled?

By nesting. A closed outline inside another closed outline is a hole; an outline inside a hole is solid again, so the counter of a letter O and the island inside it both come out right. The mesh is built so every edge is shared by exactly two triangles, which is what a slicer needs to tell inside from outside.

What size will the STL be?

The drawing's real size by default, taken from the DXF's own units, so a 100 mm plate prints at 100 mm. You can instead set the longest side, which scales the whole model. Thickness is the extrusion height. An STL carries no units, and every slicer assumes millimetres, so that is what is written.

What is not converted?

3D solids, surfaces, meshes and regions (ACIS data), raster images, PDF underlays, OLE objects, external references, and paper-space layouts. Tables, multileaders and tolerances are read but not drawn. Whatever was skipped is listed under the preview after the file opens, by entity type and count, so nothing disappears silently.

I have a DWG or SVG instead. Can I still use this?

Yes. The converter on every one of these pages accepts DXF, DWG and SVG, whichever page you started from, and offers every output it can produce from that file.

Is there an API for DXF to STL?

Not for this tool yet. The converter runs entirely client-side. The REST API, command line tool and MCP server currently cover image to DXF, DWG and STL; if you need vector conversion in a pipeline, say so at the contact page and it moves up the list.

All CAD file tools

Starting from an image?