DWG is AutoCAD’s proprietary binary format for CAD drawings. QGIS can read DWG files natively using its built-in DWG/DXF importer, making it straightforward to bring CAD data into a GIS workflow and export individual layers as shapefiles or other vector formats. If you are new to QGIS, the Complete QGIS Beginners Roadmap is a good place to start. For a broader collection of shapefile resources, see Free Shapefile Tools and Tutorials.
Step 1: Download and Install QGIS
If you do not have QGIS installed, download it from the QGIS website. It is completely free and available for Windows, macOS, and Linux.
Step 2: Load Your DWG File
To start, load the DWG file you want to import into QGIS. Go to Project in the menu, navigate to Import/Export, and select Import Layers from DWG/DXF.
Step 3: Select the Target Package
A window will appear prompting you to browse for the target package. Click the designated button to choose your destination folder, give the file a name, and save it. QGIS stores the imported CAD data in a GeoPackage (.gpkg) container at this location.
Step 4: Choose the Correct Coordinate Reference System (CRS)
Choose the CRS that matches the source CAD file. CAD files often use a local or projected coordinate system rather than geographic coordinates, so check with the data provider if you are unsure. You can search for your CRS in the provided options.
Step 5: Import the CAD File
In the source drawing section, click Import and locate the DWG file you want to add to QGIS. Select it and click Open. Import time will vary depending on the size and complexity of the DWG file. All layers in the drawing are imported simultaneously into the target package.
Step 6: Assign a Group Name
You have the option to assign a group name to the imported layers. After naming the group, click OK. The imported DWG layers will now appear in the QGIS Layers panel.
Step 7: Convert DWG Layers to Shapefile
The imported CAD file typically contains multiple layers (for example, contours, buildings, roads). Because a shapefile can only hold one geometry type per file, you export each layer individually. Select the layer you want to export in the Layers panel before proceeding to Step 8.
Note: If you plan to keep the data in QGIS long-term, consider saving to GeoPackage format instead of shapefile. GeoPackage is an open, standards-based format that stores multiple layers in a single file and supports longer field names than the shapefile format.
Step 8: Export Individual Layers
Right-click the layer you want to export, go to Export, and select Save Features As.
Step 9: Select the Output Format
In the format options, select the file type you want to save. Choose ESRI Shapefile to produce a .shp file. Other useful formats available in the same dialog include GeoPackage, KML, GeoJSON, and CSV.
Step 10: Save the File
Browse to the destination folder, give your file a name, and confirm the CRS is correct before clicking OK. Repeat Steps 8–10 for each additional layer you want to export.
Conclusion
Your shapefile will now be visible in QGIS and saved to the folder you specified. This process lets you extract any combination of layers from a DWG file and work with them as standard GIS vector data.
FAQ
- Can I import multiple layers from a DWG file at once? Yes. The DWG/DXF import dialog imports all layers from the drawing simultaneously into the target GeoPackage container. You then export each layer to its own shapefile individually using Save Features As.
- Can I convert to formats other than shapefile? Yes. The Save Features As dialog supports many formats including GeoPackage, KML, GeoJSON, and CSV, among others.
- Do I need a licence to use QGIS? No. QGIS is free and open-source software released under the GNU General Public License.







