- Home
- Converters
- DXF to glTF
Convert DXF to glTF
Convert a DXF file to glTF in your browser. Free, no upload, no sign-up.
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
- 1Drop 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.
- 2Set the extrusion depth
Enter how thick the 3D shape should be in millimeters before dropping the file, or change it and reconvert.
- 3Check 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.
- 4Download 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
| DXF | glTF | |
|---|---|---|
| Full name | Drawing Exchange Format | GL Transmission Format |
| Encoding | Text | Text |
| Geometry type | Exact (B-rep / curves) | Triangle mesh |
| Colors | No | Yes |
| Textures | No | Yes |
| Materials | No | Yes |
| Stores units | Yes | Yes |
| Multiple objects | Yes | Yes |
| Typical use | AutoCAD, LibreCAD, QCAD | web developers, Babylon.js / three.js, Blender |
