The short answer
To convert DWG to SVG, turn the DWG file into DXF first, then turn the DXF into SVG in Inkscape. DWG is the proprietary binary format of AutoCAD, and no browser can read it or write it, so this site has no DWG upload tool and the conversion happens on your computer. AutoCAD itself has no direct export to SVG, so the DXF step is the standard route: save the drawing as DXF in AutoCAD, or change it to DXF with the free ODA File Converter, then open the DXF in Inkscape and save it as SVG. LibreCAD opens many DWG files directly and exports SVG in one step. Once you have the SVG, the converters on this site can turn it into PNG, PDF, EPS or DXF.
What converting DWG to SVG actually does
DWG is short for drawing. It is the native working format of AutoCAD, and it stores vector geometry, layers, blocks, dimensions, text and page layouts in a proprietary binary file. Only AutoCAD and compatible CAD programs read the format fully.
SVG is short for Scalable Vector Graphics. It is an open W3C standard written in XML text, and it describes shapes as paths, fills and strokes for browsers, design tools, laser cutters and cutting machines. Converting DWG to SVG means translating the CAD geometry into those open paths, so it opens anywhere.
Lines, arcs, circles and polylines usually carry across well. Paper space layouts, viewports, title blocks, dynamic blocks and CAD only objects are the parts that can change or drop out, so a drawing prepared for print needs more care than a flat line drawing. Check the result with the steps in section 7 before you use it.
Method 1: DWG to DXF, then Inkscape to SVG, free
This is the most reliable free route, and it uses two free tools. The ODA File Converter changes the DWG file into DXF, and Inkscape opens the DXF and saves it as SVG. It works on Windows, Mac and Linux, and the file stays on your computer.
- Download the ODA File Converter from opendesign.com and install it. It is free for non commercial use, and it runs on Windows, Mac and Linux.
- Open the ODA File Converter, pick your DWG file as the input, pick DXF as the output format, and choose the DXF version your next tool reads best. Run the conversion and check that a DXF file appears.
- Download Inkscape from inkscape.org and install it.
- Open Inkscape, go to File, Open, and choose the DXF file. Inkscape asks about the DXF import scale, so set the units to match the drawing, usually millimetres, and confirm.
- Check the drawing carefully: look at the scale, the layers, the text and any hatching.
- Go to File, Save As, and save a copy as SVG. Keep the original DWG file unchanged, in case you need it again.
- Open the SVG in a browser or in the tool that will use it, and compare it with the drawing you expected.
Method 2: LibreCAD, free
LibreCAD is a free and open source 2D CAD program for Windows, Mac and Linux, and it can open many DWG files directly, then export them as SVG in one step. It suits a quick conversion when you have no AutoCAD.
- Download LibreCAD from librecad.org and install it.
- Open LibreCAD, go to File, Open, and choose your DWG file. LibreCAD reads DWG files from R13 through the 2013 format.
- Check the drawing, the layers and the scale, and fix anything that imported badly.
- Go to File, Export, and export the drawing as SVG.
- Open the SVG in a browser or in the tool that will use it, and check the size and the line work before you send it on.
Method 3: online converters
Online converters turn a DWG file into SVG in your browser, with nothing to install. They suit a one off file when you have no desktop software. Pick a converter that runs in the browser when privacy matters, because server side converters upload your drawing to a third party server, so do not use them for private client work or drawings you do not own.
- For a browser side conversion with no upload and no account, open the DWG to SVG converter on Innerscene, drop in your DWG file, and download the SVG. The file never leaves your computer.
- The converter on dwgtosvg.com also runs in the browser tab, and it allows 20 free exports a day with a free account.
- For a server side conversion, open the DWG to SVG converter on AnyConv, upload your DWG file, choose SVG as the output format, and download the result. AnyConv deletes uploaded files after one hour.
- Open the SVG in a browser or in the tool that will use it, and check it carefully with the steps in section 7.
Method 4: AutoCAD or Illustrator, paid
If you already have AutoCAD or Adobe Illustrator, use it. AutoCAD cannot export SVG directly, but it writes DXF cleanly, and Illustrator opens DXF and exports SVG. This route suits drawings that will go back into CAD later.
- Open the DWG file in AutoCAD and check the model space drawing, the units and the layers.
- Save a copy of the drawing as DXF with File, Save As, and pick a DXF version the next tool reads.
- Open the DXF in Inkscape and save it as SVG, as in Method 1, or open it in Illustrator and export it as SVG with File, Export, Export As.
- Open the SVG in a browser or in the tool that will use it, and check the scale, the layers and the text before you use it.
Prepare the DWG file first
- Bind external references before you convert. An xref is a pointer to another DWG file on your disk, and converters cannot resolve it, so the referenced geometry goes missing.
- Work on model space, not paper space. Most converters read the model space drawing only, and layouts, viewports and title blocks in paper space do not export.
- Flatten or explode dynamic blocks and complex objects that the next tool may not understand. They are the first things to change between programs.
- Check the units before you convert. A drawing in millimetres that is read as inches comes out 25.4 times too large, so confirm the units at every step.
- Purge unused layers, blocks and styles, and delete anything outside the drawing. They travel into the SVG unless you remove them first.
- Save a copy of the original DWG before you change it. The cleaned copy is for conversion, and the original stays the master file.
Checking the SVG before you use it
- Open the SVG in a browser and zoom in to 200 percent or more. Lines should stay smooth, and corners should stay sharp.
- Measure the SVG against a known size. If the width is wrong, the units were set wrongly in the export, so go back and set them.
- Check the layers. Some converters keep DWG layers as SVG groups, and some flatten them into one layer, so confirm the structure your next tool needs.
- Check the text. CAD fonts do not exist in browsers, so text can change shape or fall back to a different font. Convert text to outlines when the lettering must stay exact.
- Check every closed shape. A shape that must cut as a pocket or a hole needs a closed path, and an open path will not cut as a region.
- Try the SVG where it will be used, such as a laser cutter, a CNC router or a web page, before you delete the DWG. Keep the DWG as the master file until the SVG is proven.
DWG, DXF or SVG: when to keep each
| Use | Keep DWG | Use DXF | Use SVG |
|---|---|---|---|
| Editing in AutoCAD | Yes, it is the native working file | Only as an exchange copy | No, CAD tools cannot edit SVG well |
| Website or app | No, browsers cannot display DWG | No, browsers cannot display DXF | Yes, SVG is the web vector format |
| Laser or CNC cutting | Only as the master drawing | Yes, cutters read DXF well | Yes, a flat vector file |
| Sharing with a client | No, most clients cannot open it | Only with a CAD user | Yes, it opens in a browser |
| Editing later | Yes, if the work lives in AutoCAD | Yes, any CAD program opens DXF | Yes, any vector editor opens SVG |
| Going back to CAD | Yes, it is the native format | Yes, it imports cleanly | Only through the SVG to DWG route |
Sources
Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.