THE VECTOR FIELD GUIDE

Convert DWG to SVG

Convert a DWG file to SVG with free LibreCAD, ODA File Converter and Inkscape, plus online converters that run in the browser, with scale, layer and text checks.

By Shahab Uddin · Updated

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.

  1. 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.
  2. 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.
  3. Download Inkscape from inkscape.org and install it.
  4. 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.
  5. Check the drawing carefully: look at the scale, the layers, the text and any hatching.
  6. Go to File, Save As, and save a copy as SVG. Keep the original DWG file unchanged, in case you need it again.
  7. 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.

  1. Download LibreCAD from librecad.org and install it.
  2. Open LibreCAD, go to File, Open, and choose your DWG file. LibreCAD reads DWG files from R13 through the 2013 format.
  3. Check the drawing, the layers and the scale, and fix anything that imported badly.
  4. Go to File, Export, and export the drawing as SVG.
  5. 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.

  1. 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.
  2. The converter on dwgtosvg.com also runs in the browser tab, and it allows 20 free exports a day with a free account.
  3. 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.
  4. 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.

  1. Open the DWG file in AutoCAD and check the model space drawing, the units and the layers.
  2. Save a copy of the drawing as DXF with File, Save As, and pick a DXF version the next tool reads.
  3. 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.
  4. 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

UseKeep DWGUse DXFUse SVG
Editing in AutoCADYes, it is the native working fileOnly as an exchange copyNo, CAD tools cannot edit SVG well
Website or appNo, browsers cannot display DWGNo, browsers cannot display DXFYes, SVG is the web vector format
Laser or CNC cuttingOnly as the master drawingYes, cutters read DXF wellYes, a flat vector file
Sharing with a clientNo, most clients cannot open itOnly with a CAD userYes, it opens in a browser
Editing laterYes, if the work lives in AutoCADYes, any CAD program opens DXFYes, any vector editor opens SVG
Going back to CADYes, it is the native formatYes, it imports cleanlyOnly through the SVG to DWG route

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Is DWG to SVG conversion free?

Yes, with the free routes in this guide. The ODA File Converter is free for non commercial use, and Inkscape and LibreCAD are free and open source, and the browser side online converters need no payment or sign up. AutoCAD and Illustrator are paid software, so use them only if you already have them.

Can I convert DWG to SVG in my browser on this site?

Not on this site. This site has no DWG upload tool, because browsers cannot read or write the proprietary DWG format. Use the DXF route with Inkscape and the ODA File Converter, or a browser side online converter such as Innerscene, which converts the file in your browser tab with no upload.

Will the SVG keep the layers and text from my DWG file?

It depends on the converter. Some keep DWG layers as SVG groups, and some flatten them. Text can change shape when the CAD font is missing, so convert text to outlines when the lettering must stay exact. Always check the layers and the text in the SVG before you use it.

Why will my DWG file not open in LibreCAD?

LibreCAD reads DWG files from R13 through the 2013 format, and a file saved as the 2018 format gives an unsupported version error. Convert the file to DXF first with the free ODA File Converter, then open the DXF in LibreCAD or Inkscape instead.

Next, make it useful.