# DWG — AutoCAD DWG

> DWG (AutoCAD DWG): Native binary drawing format of Autodesk AutoCAD for 2D and 3D CAD data, widely used in engineering and surveying. Specs, software and free sample files; convert DWG to 40 formats online.

- Page: https://beta.mygeodata.cloud/formats/dwg



## What is a DWG file?

DWG is the native binary drawing format of AutoCAD, developed by Autodesk. The format is versioned, and new revisions accompany certain AutoCAD releases. Autodesk does not publish a full specification, so most third-party support relies on libraries from the Open Design Alliance, which reverse-engineered the format. A DWG file stores layers, blocks, text, dimensions and entities such as lines, polylines, arcs, circles, splines and hatches, in 2D or 3D.

In geospatial workflows DWG is used for engineering, surveying, utility and architectural data exchanged with GIS. Coordinates are stored in drawing units, and a drawing normally carries no coordinate reference system. AutoCAD Map 3D and Civil 3D can attach one. On import into GIS, curves and splines may be approximated by vertices, blocks may be exploded, and CAD layer names often become attribute values. Non-geometric objects such as dimensions may be simplified or lost.

DWG files usually come from engineers, surveyors, architects and utility companies who draw in AutoCAD or compatible CAD software and pass the drawings on to GIS teams. Check the drawing units and whether a coordinate reference system is defined, since many files have none. Also confirm the DWG version, and expect curves, blocks and dimensions to be simplified when the data is loaded into GIS.

### Technical details

| | |
|---|---|
| Full name | AutoCAD DWG |
| Data type | Vector · CAD drawing |
| File extension | .dwg |
| Files | Single file |
| Media type | application/octet-stream |
| Geometry types | Point, LineString, Polygon, GeometryCollection |
| Multiple layers | Yes |
| Mixed geometry in a layer | Yes |
| Attribute names | — |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read only |
| Typical software | AutoCAD, AutoCAD Map 3D, BricsCAD, ArcGIS Pro, FME, Global Mapper |
| Specification | https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf |

### Specifications & references

- https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf
- https://gdal.org/en/stable/drivers/vector/dwg.html

### Sample DWG files — free download

- [Basemap drawing (AutoCAD 2018, UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/dwg/st-helena-basemap.dwg) — AutoCAD 2018 DWG in UTM zone 30S with layers COASTLINE, LANDCOVER, WATERWAYS, CONTOURS, ROADS, BUILDINGS, PLACES and PLACE_NAMES. (348.1 kB, EPSG:32730)
- [Contours (AutoCAD 2000, UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/dwg/st-helena-contours.dwg) — 27 contour lines at 100 m intervals derived from Copernicus DEM, 3D lines with Z = elevation. AutoCAD 2000 (R15) DWG in UTM zone 30S. (235.1 kB, EPSG:32730)

### Convert DWG to other formats

- [DWG to KML](https://beta.mygeodata.cloud/converter/dwg-to-kml)
- [DWG to KMZ](https://beta.mygeodata.cloud/converter/dwg-to-kmz)
- [DWG to SHP](https://beta.mygeodata.cloud/converter/dwg-to-shp)
- [DWG to DXF](https://beta.mygeodata.cloud/converter/dwg-to-dxf)
- [DWG to GeoPDF](https://beta.mygeodata.cloud/converter/dwg-to-geopdf)
- [DWG to XLSX](https://beta.mygeodata.cloud/converter/dwg-to-xlsx)
- [DWG to DGN](https://beta.mygeodata.cloud/converter/dwg-to-dgn)
- [DWG to SVG](https://beta.mygeodata.cloud/converter/dwg-to-svg)
- [DWG to GeoJSON](https://beta.mygeodata.cloud/converter/dwg-to-geojson)
- [DWG to CSV](https://beta.mygeodata.cloud/converter/dwg-to-csv)
- [DWG to GPX](https://beta.mygeodata.cloud/converter/dwg-to-gpx)
- [DWG to GPKG](https://beta.mygeodata.cloud/converter/dwg-to-gpkg)
- [DWG to GML](https://beta.mygeodata.cloud/converter/dwg-to-gml)
- [DWG to MapInfo](https://beta.mygeodata.cloud/converter/dwg-to-mapinfo)
- [DWG to MIF](https://beta.mygeodata.cloud/converter/dwg-to-mif)
- [DWG to TopoJSON](https://beta.mygeodata.cloud/converter/dwg-to-topojson)
- [DWG to WKT](https://beta.mygeodata.cloud/converter/dwg-to-wkt)
- [DWG to SQLite](https://beta.mygeodata.cloud/converter/dwg-to-sqlite)

## Frequently asked questions

### Why does my DWG file appear in the wrong place after import into GIS?

A DWG usually stores coordinates in plain drawing units without a coordinate reference system. Assign the correct CRS manually when you import or convert the file, and check the drawing units to confirm the scale is right.

### What happens to CAD layers and blocks when DWG is converted to a GIS format?

CAD layer names are often kept as an attribute value, so you can filter features by layer. Blocks may be exploded into separate geometries, and curves or splines are approximated by straight segments with vertices.

### Can I save data as DWG here, or only read it?

DWG is supported for reading only. To produce a file that CAD software can open, convert your data to an exchange format that is available for output, and then open it in your CAD application.

### What is a DWG file?

DWG is the native binary drawing format of AutoCAD, developed by Autodesk. The format is versioned, and new revisions accompany certain AutoCAD releases. Autodesk does not publish a full specification, so most third-party support relies on libraries from the Open Design Alliance, which reverse-engineered the format. A DWG file stores layers, blocks, text, dimensions and entities such as lines, polylines, arcs, circles, splines and hatches, in 2D or 3D.

In geospatial workflows DWG is used for engineering, surveying, utility and architectural data exchanged with GIS. Coordinates are stored in drawing units, and a drawing normally carries no coordinate reference system. AutoCAD Map 3D and Civil 3D can attach one. On import into GIS, curves and splines may be approximated by vertices, blocks may be exploded, and CAD layer names often become attribute values. Non-geometric objects such as dimensions may be simplified or lost.

### How do I open a DWG file?

DWG files can be opened in AutoCAD, AutoCAD Map 3D, BricsCAD, ArcGIS Pro and FME. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert DWG to?

Popular conversions are KML, KMZ, SHP, DXF, GeoPDF and XLSX. In total the Converter writes DWG data to 40 formats.

