How to convert DWG to Shapefile
- Drop the .dwg file into the box above.
- The DWG reader loads the first time you convert a file. After that the drawing is read in your browser.
- If the coordinates are latitude and longitude, a ZIP downloads with the Shapefile parts: .shp, .shx, .dbf, .prj and .cpg.
- Extract the ZIP and add the .shp files to QGIS, ArcGIS Pro or ArcMap.
Reading a DWG without AutoCAD
DWG is AutoCAD's own binary format. Unlike DXF it cannot be opened as text, so a converter needs a real DWG reader. This page uses the open-source LibreDWG library, compiled to WebAssembly so that it runs inside your browser tab. Nothing has to be installed, and the drawing does not leave your computer.
The reader handles DWG versions R2000 to R2018 and later. If a file cannot be read, usually because it is protected or damaged, the page tells you and suggests saving the drawing as DXF and using the DXF to SHP converter.
Only model space is converted. Paper space layouts, with their title blocks and viewports, are left out.
What is converted
A Shapefile holds one geometry type, so the drawing is sorted into up to three shapefiles in the ZIP, named POINT, POLYLINE and POLYGON.
| DWG entity | Shapefile |
|---|---|
| LWPOLYLINE, 2D and 3D POLYLINE (closed) | POLYGON |
| LWPOLYLINE, 2D and 3D POLYLINE (open), LINE | POLYLINE |
| CIRCLE | POLYGON, drawn with 48 sides |
| ARC | POLYLINE, as short straight segments |
| HATCH | POLYGON, one for each boundary path |
| POINT | POINT |
| TEXT, MTEXT | POINT, with the text in the attribute table |
| INSERT (block reference) | the entities inside the block, placed with the insert's position, scale and rotation |
Entity types that are not in the table, such as SPLINE, ELLIPSE and DIMENSION, are skipped. They do not stop the conversion: the page lists each skipped type and how many there were, so you know what is missing.
Fields in the attribute table
- Layer: the CAD layer of the entity. In your GIS you can filter on it, for example to separate a BUILDINGS layer from a ROADS layer.
- Type: the original entity type, such as LWPOLYLINE or HATCH.
- Text: the content of a TEXT or MTEXT entity. The field is there only when the drawing has text.
- Block: the block name, for features that came from a block reference. The field is there only when the drawing has block references.
All values are written as text. Elevation, colours, line types and line weights are not carried over. Arc segments inside a polyline are written as straight lines between vertices.
Coordinate systems
A DWG from a surveyor or engineer is usually drawn on a projected grid in meters or feet: a UTM zone, a US State Plane zone or a national grid. A Shapefile from this page is always labelled WGS 84 latitude/longitude (EPSG:4326), and the free page does not transform coordinates. It converts a drawing only when the X values are already longitudes and the Y values latitudes.
- Projected drawing: the page stops and shows the X value it found, instead of writing a Shapefile that would land in the wrong place. GaleriGIS Toolbox converts these drawings once you pick the UTM zone or enter the EPSG code.
- Local drawing coordinates: a drawing that sits within 15 units of 0,0, or spans more than 20 degrees, is treated as not georeferenced. Give it a real-world position in CAD or GIS software first.
Not sure which system the drawing uses? The guide How to open an AutoCAD DWG in Google Earth explains how to find out. The same steps apply when the target is a Shapefile.
Common problems
"This DWG could not be read"
Save the drawing as ASCII DXF from AutoCAD or any CAD program that opens it, then use the DXF to SHP converter.
Closed shapes come out as lines
A polyline becomes a polygon only when it is marked as closed in the drawing. Shapes built from separate LINE entities stay lines. Close them in CAD, or build polygons from the lines in your GIS software.
The file is too large
The free page handles files up to 3 MB. Larger files need GaleriGIS Toolbox.
GaleriGIS Toolbox
$15 per month
- No conversion limit on every GaleriGIS online converter
- Several files at once, and larger files
- DWG and DXF in any UTM zone or EPSG code, KML/KMZ, Shapefile, GeoJSON, Excel and coordinates
- Files stay in your browser. Billed monthly, cancel any time
Payments are processed by Creem, our merchant of record. See our refund policy and terms.
Frequently asked questions
Is my drawing uploaded?
No. The DWG is read and converted inside your browser. Only the converter code is downloaded from our server.
Do I need AutoCAD or a plugin?
No. A current web browser is enough.
How many files are free?
Three. After the third file the free quota fills up again over the next one to three days. GaleriGIS Toolbox has no limit.
I want the drawing in Google Earth, not in GIS software.
Use the DWG to KML converter. It reads the same DWG versions and writes a KML.
Does GaleriGIS Pro open DWG files?
No. GaleriGIS Pro does not open DWG or DXF files. It opens the Shapefile from this page: in GaleriGIS Pro, our Windows app, you can put it on satellite imagery, style it and print a map layout.
More GaleriGIS tools
- KML to SHP converter
- SHP to KML converter
- KMZ to SHP converter
- SHP to KMZ converter
- KML to Excel converter
- KMZ to Excel converter
- Excel to KML converter
- GeoJSON to SHP converter
- SHP to GeoJSON converter
- DWG to KML converter
- DXF to KML converter
- DXF to SHP converter
- UTM zone detector
- KML and KMZ viewer