Convert DXF to GeoJSON Online — Free & Instant
Converting DXF to GeoJSON bridges the gap between CAD and web mapping. GeoJSON output can be loaded directly into Leaflet, Mapbox GL, or any modern web mapping framework. It is also useful for uploading CAD data to GitHub for automatic map preview, or for feeding into geospatial APIs.
Converter
When to convert DXF to GeoJSON
- Publishing CAD floorplans or site plans as interactive web maps
- Loading AutoCAD geometry into Leaflet.js for web presentation
- Converting DXF cadastral data to GeoJSON for API integration
- Previewing CAD geometry in geojson.io for quick inspection
How to convert DXF to GeoJSON
- 1
Upload DXF
Drop your .dxf file on the upload zone.
- 2
Select GeoJSON
GeoJSON is pre-selected for this page.
- 3
Download .geojson
Load into Leaflet or open in geojson.io.
About DXF format
Drawing Exchange Format (DXF) is the open interoperability format developed by Autodesk for AutoCAD. It is widely used in civil engineering, architecture, and urban planning workflows. DXF files contain geometric primitives like lines, arcs, polylines, and text. When converting DXF files to GIS formats like Shapefile or GeoJSON, the geometry is preserved but attribute data may be minimal since DXF layers are mapped to feature properties. Conversely, GIS data exported to DXF can be brought into CAD workflows for drafting.
Strengths
- +Universal in CAD workflows
- +Supported by AutoCAD, Revit, FreeCAD, LibreCAD
- +Good for precise engineering geometry
About GeoJSON format
GeoJSON is an open standard geospatial data format based on JSON, defined in RFC 7946. It supports all geometry types (Point, LineString, Polygon, MultiPolygon, etc.) and arbitrary properties per feature. GeoJSON is the preferred format for web mapping because browsers can parse it natively and libraries like Leaflet, Mapbox GL, and D3 consume it directly. GitHub renders GeoJSON files on a map automatically. It uses WGS 84 (EPSG:4326) as its coordinate reference system.
Strengths
- +Native browser support (JSON)
- +Human-readable and editable
- +Single file — easy to share
- +First-class support in web mapping libraries
Frequently asked questions
Are DXF layers preserved in GeoJSON?
Yes. Each DXF layer is mapped to a 'Layer' property in the GeoJSON features, allowing you to filter by layer in your application.
Do I need to georeference the DXF first?
If your DXF uses local CAD coordinates (not real-world coordinates), the GeoJSON will have the same local coordinates and won't display correctly on a world map.