Convert DXF to glTF

DXF fileDXFglTF file

Convert a DXF file to glTF in your browser. Free, no upload, no sign-up.

Loading converter…

Convert DXF files to glTF directly in your browser. The converter extrudes every filled shape in the DXF to the thickness you choose and writes the resulting solid as glTF. Nothing is uploaded, there is no file size limit beyond your computer's memory, and the result downloads instantly. glTF gives you a readable JSON scene that is easy to inspect, diff or post-process in a build pipeline.

How to convert DXF to glTF

  1. 1
    Drop your DXF file

    Drag a .dxf file onto the box above or click to choose one. Closed outlines (polylines, circles, ellipses and splines) are extruded to the depth you choose; open lines, hatches, dimensions and text are skipped. Files that already contain 3D faces are read as a mesh instead. Drawing units are taken from the file header, so an inch drawing arrives at the right size.

  2. 2
    Set the extrusion depth

    Enter how thick the 3D shape should be in millimeters before dropping the file, or change it and reconvert.

  3. 3
    Check the preview

    The model renders in 3D so you can confirm it loaded correctly. Dimensions, volume and triangle count are shown next to it; open edges are flagged if the mesh is not watertight.

  4. 4
    Download the glTF

    Adjust the export options if needed and click download. Buffers are embedded in the JSON as base64, so the output is a single file.

What is a DXF file?

DXF is the open interchange format Autodesk published for AutoCAD in 1982. Most DXF files are 2D drawings: lines, arcs, polylines and text on layers. Some also carry 3D geometry as 3DFACE entities. It is what 2D CAD, laser cutters and CNC routers exchange.

Commonly used by: AutoCAD, LibreCAD, QCAD, Laser cutters, CNC routers, Fusion 360 sketches

Closed outlines (polylines, circles, ellipses and splines) are extruded to the depth you choose; open lines, hatches, dimensions and text are skipped. Files that already contain 3D faces are read as a mesh instead. Drawing units are taken from the file header, so an inch drawing arrives at the right size.

What is a glTF file?

glTF is the JSON form of the same Khronos standard as GLB. The .gltf file describes the scene as readable JSON; binary buffers and textures may be embedded as base64 or kept as separate files. It is convenient when you want to inspect or edit the scene description by hand.

Commonly used by: web developers, Babylon.js / three.js, Blender, Unity and Unreal importers

glTF gives you a readable JSON scene that is easy to inspect, diff or post-process in a build pipeline.

DXF vs glTF

DXFglTF
Full nameDrawing Exchange FormatGL Transmission Format
EncodingTextText
Geometry typeExact (B-rep / curves)Triangle mesh
ColorsNoYes
TexturesNoYes
MaterialsNoYes
Stores unitsYesYes
Multiple objectsYesYes
Typical useAutoCAD, LibreCAD, QCADweb developers, Babylon.js / three.js, Blender

Frequently asked questions

Related converters