DXF to GeoJSON

Convert a georeferenced CAD drawing to GeoJSON for web maps, QGIS or Python: lines, closed polylines as polygons, points and text.

DXF
ASCII or binary DXF, any version. Max. 30 MB; the upload is deleted after the conversion.
Coordinate systems (epsg.io)
The coordinate system of the drawing.
EPSG:4326 for standard GeoJSON (web maps).
Options
Comma-separated layer names. Empty: all layers.
Download links expire after 30 minutes.
Upload a DXF file, check the coordinate systems and click Convert.
Notes
  • Supported: POINT, LINE, LWPOLYLINE, 2D/3D POLYLINE, ARC, CIRCLE, ELLIPSE, SPLINE, TEXT, MTEXT, block attributes, HATCH, 3DFACE, SOLID, polyface meshes and MESH. Blocks are expanded.
  • Curves are approximated by segments. Every feature gets the attributes layer, entity, colour and handle, text features also text.
  • Standard GeoJSON (RFC 7946) is WGS 84 longitude/latitude. With another target CRS the file names it in a crs member, which QGIS and GDAL read.
  • Dimensions, leaders, images, 3D solids and paper space are not converted.
  • Other converters: KML to DXF, KMZ to DXF, SHP to DXF, GeoJSON to DXF, DXF to SHP, DXF to KMZ, DXF CRS converter, OSM to DXF.

About this tool

Converts the modelspace of a DXF drawing into a GeoJSON FeatureCollection for Leaflet, Mapbox, geojson.io, QGIS or Python. Lines and arcs become LineStrings, closed polylines, circles and hatches Polygons, and points and text Points with a text property.

By default the output is standard GeoJSON (RFC 7946) in WGS 84 longitude/latitude, reprojected from the coordinate system of the drawing. Another target system can be chosen; it is then named in the file's crs member, which QGIS and GDAL read.

Related tools

Free to use, no sign-up. Results are for checking and preliminary design; verify them for your project. Questions or ideas: [email protected].