Live Online ConverterChannel: dxfshapefile

DXF to Shapefile Converter

Convert AutoCAD DXF vectors into standard shape archives.

Use this online tool to convert DXF properties to Shapefile format quickly and securely. No files are saved on our servers.

Drag file here to convert, or select file

Supported file extension: .dxf • Max 50MB

Channel: Direct Stream ModeGDAL Driver Operational

Specification Rules

  • Import engineering plans directly into GIS databases
  • Translate architectural outlines into vector elements
  • Export CAD boundaries into municipal planning environments
  • Attribute structures flat-map to the 10-character limit of dBASE files
  • CAD layers are grouped by geometry types (points, lines, polygons)
  • Requires explicit coordinate transformations to align layers

GDAL Direct Equivalent Terminal Command

sh — gdalready
$ogr2ogr -f "ESRI Shapefile" output_folder input.dxf

When to use this conversion

Convert when a CAD drawing needs to enter a legacy GIS workflow that only accepts Shapefile. For modern workflows, prefer GeoPackage (dxf-to-geopackage) because Shapefile loses CAD layer information and truncates field names.

Technical Details

GDAL reads the DXF ENTITIES, splits by geometry type, approximates curves, and writes one Shapefile per geometry type (since Shapefile can't mix types). The CAD layer name becomes a "Layer" column in each .dbf. CRS must be assigned externally with -a_srs because DXF has no native CRS.
Output file size

Shapefile bundle is typically 30–50% the size of the source DXF. Binary geometry and terse dBASE storage compress the ASCII DXF significantly.

Common Errors & Fixes

  • CRS missing: features land at (0,0) island. Fix: -a_srs with the surveyor's actual CRS.
  • Layer info lost in truncation: CAD layer names longer than 10 chars truncate. Fix: rename layers in CAD before exporting DXF, or use GeoPackage instead.
  • Curves jagged: low arc segmentation. Fix: increase via DXF driver flags or simplify in QGIS.
  • Multiple geometry types: get multiple output Shapefiles (one per type). Fix: this is expected; bundle all into a ZIP.

Alternative Tools

  • QGIS: drag .dxf in, assign CRS, export as Shapefile
  • ogr2ogr CLI: ogr2ogr -f "ESRI Shapefile" output_dir input.dxf -a_srs EPSG:<code>
  • FME for CAD-aware conversion with block expansion
  • AutoCAD Map 3D for round-tripping inside the Autodesk ecosystem

Frequently Asked Questions

How are layer names preserved?

CAD layer assignments map directly to standard attribute columns in the generated files.

What about coordinate assignments?

The upcoming interface will allow you to assign target coordinate systems during processing.

Is the output packaged cleanly?

Yes. The generated files (.shp, .dbf, .shx, .prj) are bundled into a single ZIP archive for easy download.

Related Transformations Map