DXF to GLB Converter Online: Extrudes 2D Shapes | MiConvert

DXF to GLB Converter: Turn Drawing Outlines into a 3D Mesh

Closed shapes in your DXF become solid slabs one drawing unit thick, with inner loops cut out as holes, packed into a single GLB file. The drawing's numbers are written as they are and the model is not rotated, so plan to fix scale and orientation in your viewer or scene.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
DXF → GLB

DXF drawings in Google Drive?

Drive cannot preview DXF files. Open one from Drive with MiConvert to see the drawing as pages, or convert it and save the result next to the original. MiConvert for Google Drive →

What happens when a DXF becomes a GLB

DXF is the exchange format Autodesk created so other CAD and CAM programs could read AutoCAD drawings, and most DXF files are flat: floor plans, laser and plasma cutting profiles, panel layouts. GLB is the single-file binary form of glTF, the format that web 3D libraries such as three.js and Babylon.js and tools like Google's model-viewer load directly. Those viewers cannot display lines with no thickness, so the drawing has to be turned into surfaces first.

The converter reads your file on our servers with the ezdxf library and switches to a recovery mode for slightly damaged files. If the drawing already contains 3D faces (3DFACE, MESH, polyface or polygon-mesh entities, including ones inside blocks), those are used directly. Otherwise it collects lines, arcs, circles, ellipses, splines and polylines, expands block inserts, flattens curves with a tolerance of 0.05 drawing units, joins ends that almost touch, and fills every closed region. Each region is then extruded straight up by exactly one drawing unit.

Nested shapes are filled even-odd: a circle inside a rectangle becomes a hole, and an island inside that hole becomes solid again. Layers whose names point to dimensions, text, title blocks, borders, hatching, center or hidden lines, along with dashed linetypes, are left out whenever the rest of the drawing closes without them. Hatch and solid fills are used only when no outline closes. Colors, layer names and text do not reach the GLB, which holds one untextured mesh.

Two things are not converted. The DXF's unit setting ($INSUNITS) is ignored, so a profile drawn 60 units wide is written 60 units wide, and glTF readers treat those numbers as metres: a millimetre drawing opens a thousand times too big. The coordinates also keep CAD's Z-up layout inside a Y-up format, so the slab appears standing upright instead of lying flat.

This suits anyone who wants a quick 3D look at a cutting profile, a plan outline or a logo traced in CAD, inside a web page or an AR preview, without installing CAD software. It cannot rebuild a real 3D model from a 2D drawing: every shape gets the same flat thickness.

How to convert DXF to GLB

  1. Check that every shape you want solid is closed. In AutoCAD, JOIN or PEDIT with the Join option merges loose lines and arcs into closed polylines.
  2. Delete or move aside anything you do not want extruded, such as a frame drawn on an ordinary layer. Only clearly named annotation layers are skipped automatically.
  3. Upload the .dxf file. ASCII and binary DXF are both read.
  4. Download the GLB once the server has built the mesh.
  5. In your viewer or scene, scale the model by 0.001 if the drawing was in millimetres, and rotate it minus 90 degrees around the X axis to lay it flat.

What this DXF to GLB conversion does

  • Uses real 3D faces when the DXF has them: 3DFACE, MESH, polyface and polygon-mesh entities, including copies placed through blocks.
  • Extrudes closed 2D outlines made of lines, arcs, circles, ellipses, splines and polylines into slabs exactly one drawing unit thick.
  • Keeps holes and islands by filling nested loops even-odd.
  • Expands block inserts and arrayed inserts up to eight levels deep, so repeated parts appear where they were placed.
  • Closes tiny gaps by joining end points that sit very close together relative to the drawing size, lays drawings made in another plane flat, and reads paper space layouts when model space is empty.
  • Stops instead of shipping scraps: if the closed shapes cover under 2 % of the drawing, the job is refused.

Video Tutorial

Learn how to change DXF to GLB online incredibly simply and quickly. This tool maintains 100% of your original file's quality. 🔗 Access MiConvert tool here: https://miconvert.com/en/dxf-to-glb?utm_s

DXF to GLB questions

Is there a DXF to GLB converter online that needs no installation?

This page is one. The file is uploaded and converted on our servers, so nothing runs on your computer except the upload and download. Without an account each file can be up to 50 MB, with 10 files per batch; a free account allows 100 MB, Plus 200 MB and Pro 1 GB.

Why does my file fail with "No valid 3D geometry found"?

That generic message, despite its mention of textures, covers several DXF problems: an outline that is not closed (fix it with JOIN or PEDIT Join), a drawing with only text, dimensions or open lines, closed shapes that are tiny compared with the whole drawing, or 3D content stored as ACIS solids (3DSOLID, REGION, BODY, SURFACE), which this reader refuses. For ACIS solids, export STEP or STL from your CAD program instead.

Can I choose how thick the model is?

No. Every extruded region is one drawing unit deep and there is no setting for it. Because all shapes share that thickness, you can stretch the mesh along its height in a 3D editor afterwards; in the unrotated file that is the Z axis.

Why does the GLB open huge, or standing on edge?

Neither units nor axes are converted. glTF reads numbers as metres, so a millimetre drawing comes in 1000 times too large, and the Z height lands where a Y-up viewer expects depth. Scale by 0.001 and rotate minus 90 degrees around X; in three.js or Babylon.js that is two lines of code.

Should I pick GLB or glTF?

Pick GLB. The .gltf output from DXF currently arrives without the .bin buffer file it points to, so viewers cannot load it. GLB holds everything in one file; if you need the separate-file layout, convert the GLB to .gltf with a glTF tool afterwards.

Can I convert DXF to STL, PDF, SVG or DWG here?

STL yes: the same DXF reader also produces STL, OBJ, 3MF and other 3D formats, with the same one-unit extrusion. STEP is not offered from DXF. PDF, SVG and DWG are 2D outputs this 3D converter does not make; export or print those from a 2D CAD program such as AutoCAD.

What if it says the file could not be read?

The DXF is damaged beyond what recovery mode can fix, or it is not a DXF at all. Open it in your CAD program, save it again as DXF, and upload the new copy.

What happens to my DXF after conversion?

The uploaded drawing is deleted as soon as the conversion ends. The GLB stays available through its download link for about 4 hours, then it is removed automatically. The link is a long random token not tied to an account, so anyone you share it with can download until it expires. File names and job details such as size and outcome are logged.