DWG to DXF converter

Convert an AutoCAD DWG file to DXF for LibreCAD, QCAD, Inkscape, a laser cutter or a CNC router, with its layers as they were. The conversion runs in your browser; the drawing is never uploaded.

About this DWG to DXF converter

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.

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.

What you can do

How to convert DWG to DXF

  1. Drop the .dwg on the box above, or click it and choose the file.
  2. Wait a moment while it is converted; the first time, the converter downloads as well.
  3. The drawing appears with a Save as DXF box above it. Press Save to keep the .dxf, named like the DWG.

DWG and DXF: what is the difference?

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.

Questions

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: LibreDWG, which converts it, writes no other. For a laser cutter, vinyl cutter or CNC program that needs the oldest DXF, press Save as R12: an AutoCAD R12 DXF in millimetres of the model's lines, arcs, circles, polylines, splines and solid fills, each traced as a polyline on its own layer, blocks exploded, with the text as R12 text, a line at a time, at its place, height, angle, colour and layer (shown in the font of the program that opens it; bold, italic and colours inside multi-line text are not kept, and a line over about 250 letters is cut short); hatch patterns and layouts are left out. For a full copy in another version (with its text, blocks and dimensions), open the 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.