DWG is AutoCAD’s own binary format, and many programs cannot read it: LibreCAD, Inkscape, most laser cutter and CNC software, and plenty of older CAD tools want DXF, the exchange format Autodesk published for exactly that. This page converts a DWG to DXF with LibreDWG, the GNU project’s DWG library, compiled to WebAssembly and run in the page. The converter (about 10 MB) downloads the first time; your drawing does not go anywhere. It is free to use, with no account and no upload limit, and it runs entirely in your browser: nothing is uploaded, and while the page stays open, a feature you have already used keeps working offline.
The drawing is shown as soon as it is converted, so you can check it - pan, zoom, look at each layout, switch layers - before saving the DXF.
Both hold the same drawing. DWG is compact and binary, and its layout changes with each AutoCAD release (2000, 2004, 2007, 2010, 2013, 2018). DXF is text: every line, layer and setting written out as numbered codes and values, which is why so many other programs can read it, and why a DXF is several times larger than the DWG it came from. A DXF of an older version opens in more programs; this page keeps the DWG’s own version, so nothing newer in the drawing is lost on the way.
- Is my DWG uploaded to convert it?
- No. The conversion runs inside this page on your computer; the DWG converter is downloaded to your browser, not your drawing to a server.
- Will everything in the DWG come across?
- Lines, arcs, circles, polylines, splines, hatches, text, dimensions, blocks and their attributes, layers, linetypes, layouts and viewports do. LibreDWG is still being developed, and a few newer or rarer kinds of object may be dropped or simplified; check the DXF in the program you will use it in before relying on it. Viewports’ own frozen layers are among what LibreDWG’s DXF leaves out, though this page reads them from the DWG to show the layouts.
- Can I convert many DWG files to DXF at once?
- Yes. Under Convert many drawings at once, choose DXF, then choose the files or a folder (up to 500 at a time, each up to 200 MB). Each DWG is converted in turn and they are saved together in one ZIP, the DXFs compressed, in the same folders as the DWGs; a file that is already a DXF, or cannot be converted, is listed with the reason.
- Which DXF version do I get, and can I choose an older one?
- The same version as the DWG. An older version cannot be chosen here; if a program needs, say, an R12 DXF, open this DXF in LibreCAD or QCAD and save it again as that version.
- Can it convert DXF to DWG?
- No. Writing DWG is not something this page does; LibreCAD and QCAD can save DWG files, as can AutoCAD and the free DWG TrueView.
- Can I get a PDF instead?
- Yes - press PDF… once the drawing is open, or use DWG to PDF, which opens with the paper and scale options first. To look at a drawing without converting it, use the DWG viewer.
- Is this DWG to DXF converter open source?
- Yes. LibreDWG is licensed under the GNU GPL, so the code of this page, which runs with it, is published under GPL-3.0 at /source/dxf-viewer/ on this site.