If you need to convert DWG to GeoJSON for web maps or GIS pipelines, the fastest workflow is: export the DWG as DXF from your CAD software, preview the layer, confirm geometry looks right, then export as GeoJSON.
DWG is a proprietary format, so browser converters work with its open counterpart, DXF. GeoDataViewer lets you do the conversion in the browser without installing desktop GIS software:
- Open DXF (or DWG preview): /open-dwg-online/
- Convert DXF to GeoJSON: /dxf-to-geojson/
Why convert DWG to GeoJSON?
GeoJSON is a common interchange format for:
- Web maps and APIs
- Lightweight data sharing
- Front-end debugging and quick inspection
Step-by-step: DWG to GeoJSON (via DXF)
- In AutoCAD, BricsCAD, or QGIS, export your drawing as
.dxf. - Open the converter: /dxf-to-geojson/
- Upload your
.dxffile. - Preview the data in the map to confirm position and scale.
- Export the generated GeoJSON file.
Common issues and tips
Data appears offset or in the wrong place
CAD drawings may not include clear CRS metadata. If a DWG is in a local engineering coordinate system, you may need a known CRS or reference to correctly align it.
Too many layers or messy geometry
DWG files often contain multiple layers with different purposes. If possible, export a cleaner version from the source CAD environment before conversion.
Related conversions
- Convert DXF to GeoPackage: /dxf-to-gpkg/