Skip to main content
Vecaria

DXF to GeoJSON Converter

Local

Convert DXF to GeoJSON for QGIS, Mapbox and Leaflet in your browser — free, no sign-up, nothing uploaded. Layer names are kept as properties.

Drag files here, or click to browse

Supports DXF

Choose file

ASCII DXF → GeoJSON FeatureCollection, converted locally (no coordinate system is attached).

What is it? DXF to GeoJSON converts 2D CAD geometry into GeoJSON features that QGIS, Mapbox, Leaflet, PostGIS and other GIS tools can read. Coordinates are taken as longitude/latitude on a flat plane.

TL;DR: DXF to GeoJSON converts CAD linework into GeoJSON features for QGIS, Mapbox and Leaflet — LINE becomes LineString, polylines become lines or polygons, circles and arcs are approximated as polylines, and DXF layer names are kept as feature properties. Drop a .dxf file, preview the geometry, then copy or download the result. Free with no sign-up — everything runs locally in your browser, nothing is uploaded.

How to use

  1. Drop a .dxf file — conversion starts immediately.
  2. Adjust circle/arc segments if needed (default 32; more segments approximate true curves closer — areas are computed on the polyline).
  3. Check the inline geometry preview, or tick 'Preview on a map' to see the shape plotted as lon/lat.
  4. Copy the GeoJSON or download the .geojson file (named after your drawing).
  5. Load it into QGIS, Mapbox, Leaflet or another GIS tool.

FAQ

Do I need a projection?

The DXF X/Y coordinates are written as longitude/latitude, so reproject the result in your GIS for real-world georeferencing.

Are layer names kept?

Yes — the DXF layer is preserved as a feature property.

Does it support binary DXF?

No — ASCII DXF only. Re-save the file as ASCII DXF in your CAD tool and drop it again.

Are hatches and splines converted?

No — entity types outside the whitelist (SPLINE, INSERT, HATCH, DIMENSION) are not converted. The result panel reports per-type counts, including types the parser silently drops.

How do I load the result in QGIS?

Drag the .geojson file into QGIS, or use Layer → Add Layer → Add Vector Layer. DXF layer names are stored as a feature property, so you can categorize styles by it. DXF carries no coordinate system, so if features land at 0,0 or in the wrong place, assign or reproject the layer in QGIS instead of re-converting.

Can I convert DWG files?

No — DWG is a closed binary format and this tool reads ASCII DXF only. Re-save the drawing as ASCII DXF in your CAD application (in AutoCAD: Save As → DXF, choose ASCII), then drop it here.

Is there a file-size limit?

Nothing is uploaded, so there is no upload cap — the real bound is your device's memory. Parsing and conversion run in the browser; the optional map preview plots the geometry for shape checking only.

Examples

  • Drop in a DXF → export a GeoJSON FeatureCollection

Supported formats

DXFGeoJSON

Limitations

  • ASCII DXF only — re-save binary DXF as ASCII from your CAD tool.
  • No coordinate reprojection during conversion.
  • Text entities become point markers with an attribute rather than labels.
  • Entity types outside the whitelist (e.g. SPLINE/INSERT/HATCH/DIMENSION) are not converted — the result panel reports per-type counts, including types the parser silently drops such as HATCH.
  • Circles and arcs are approximated as polylines (default 32 segments, adjustable 16–256 in the tool); areas are computed on the polyline, not a true circle.
  • The success line reports feature/layer counts and drawing extents; the optional map preview plots drawing values as lon/lat for shape checking only.

Privacy

Privacy first: this tool runs entirely in your browser — your input and files never leave your device, and everything is cleared when you close the page.