# DXF — AutoCAD Drawing Interchange Format

> DXF (AutoCAD Drawing Interchange Format): Autodesk CAD exchange format in text or binary form, storing drawing entities organised in named layers. Specs, software and free sample files; convert DXF to 40 formats online.

- Page: https://beta.mygeodata.cloud/formats/dxf



## What is a DXF file?

DXF (Drawing Interchange Format) is a CAD data file format developed by Autodesk and introduced with AutoCAD in the early 1980s to enable the exchange of drawings between AutoCAD and other programs. Autodesk publishes a reference describing its structure for AutoCAD releases. In geospatial workflows it is used to exchange survey plans, engineering drawings and base maps between CAD and GIS software.

A DXF file is a single file, usually ASCII text but optionally binary, composed of pairs of group codes and values organised into sections such as HEADER, TABLES, BLOCKS, ENTITIES and OBJECTS. Entities include lines, polylines, arcs, circles, splines, hatches, text and block references, assigned to named layers with colours and linetypes. DXF has no built-in coordinate reference system and no true attribute table, so GIS imports typically turn layers and entity properties into fields, while curves are often linearised and blocks exploded.

DXF files are usually exchanged between surveyors, engineers and architects working in CAD and GIS teams. Because the format has no built-in coordinate reference system and no real attribute table, the CRS and units must be agreed separately. Check which layers, blocks and entity types the file contains, since curves, hatches and text may be simplified or lost when it is imported into GIS software.

### Technical details

| | |
|---|---|
| Full name | AutoCAD Drawing Interchange Format |
| Data type | Vector · CAD drawing |
| File extension | .dxf |
| Files | Single file |
| Media type | application/octet-stream |
| Geometry types | Point, LineString, Polygon, GeometryCollection |
| Multiple layers | Yes |
| Mixed geometry in a layer | Yes |
| Attribute names | Max. 255 characters (ASCII) |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | AutoCAD, BricsCAD, LibreCAD, QGIS, ArcGIS Pro, GDAL/OGR |
| Specification | https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf |

### Specifications & references

- https://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
- https://gdal.org/en/stable/drivers/vector/dxf.html

### Sample DXF files — free download

- [Basemap drawing (8 layers, UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/dxf/st-helena-basemap.dxf) — CAD drawing in UTM zone 30S with layers COASTLINE, LANDCOVER (hatches), WATERWAYS, CONTOURS (3D polylines), ROADS, BUILDINGS, PLACES and PLACE_NAMES (text). (1.1 MB, EPSG:32730)
- [Contours (3D polylines, UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/dxf/st-helena-contours.dxf) — 27 contour lines at 100 m intervals derived from Copernicus DEM, 3D lines with Z = elevation. DXF in UTM zone 30S. (444.8 kB, EPSG:32730)
- [Jamestown buildings and streets (UTM)](https://beta.mygeodata.cloud/static/landing/samples/v1/dxf/jamestown-buildings.dxf) — 179 building footprints in Jamestown with type, footprint area and ground elevation. DXF in UTM zone 30S with layers BUILDINGS and ROADS. (288.9 kB, EPSG:32730)

### Convert DXF to other formats

- [DXF to KML](https://beta.mygeodata.cloud/converter/dxf-to-kml)
- [DXF to KMZ](https://beta.mygeodata.cloud/converter/dxf-to-kmz)
- [DXF to SHP](https://beta.mygeodata.cloud/converter/dxf-to-shp)
- [DXF to GeoPDF](https://beta.mygeodata.cloud/converter/dxf-to-geopdf)
- [DXF to XLSX](https://beta.mygeodata.cloud/converter/dxf-to-xlsx)
- [DXF to GeoJSON](https://beta.mygeodata.cloud/converter/dxf-to-geojson)
- [DXF to CSV](https://beta.mygeodata.cloud/converter/dxf-to-csv)
- [DXF to GPX](https://beta.mygeodata.cloud/converter/dxf-to-gpx)
- [DXF to GML](https://beta.mygeodata.cloud/converter/dxf-to-gml)
- [DXF to DGN](https://beta.mygeodata.cloud/converter/dxf-to-dgn)
- [DXF to SVG](https://beta.mygeodata.cloud/converter/dxf-to-svg)
- [DXF to GPKG](https://beta.mygeodata.cloud/converter/dxf-to-gpkg)
- [DXF to MapInfo](https://beta.mygeodata.cloud/converter/dxf-to-mapinfo)
- [DXF to MIF](https://beta.mygeodata.cloud/converter/dxf-to-mif)
- [DXF to Parquet](https://beta.mygeodata.cloud/converter/dxf-to-parquet)
- [DXF to WKT](https://beta.mygeodata.cloud/converter/dxf-to-wkt)
- [DXF to TopoJSON](https://beta.mygeodata.cloud/converter/dxf-to-topojson)
- [DXF to netCDF](https://beta.mygeodata.cloud/converter/dxf-to-netcdf)

## Frequently asked questions

### Why does my DXF file load in the wrong place or at the wrong scale?

DXF does not store a coordinate reference system, so GIS software cannot know how the coordinates are projected. Assign the correct CRS manually when importing or converting, and confirm the drawing units with the sender.

### Why are attribute columns missing after converting a DXF file?

DXF has no true attribute table. Layers and entity properties such as layer name, linetype, handle, text and block data are mapped to fields on import, but other attributes are not stored in the file.

### How does DXF differ from DWG?

Both are used by AutoCAD, but DXF is a documented interchange format that is usually ASCII text, while DWG is Autodesk's native drawing format. DXF is easier to read in other programs, though its files are often larger.

### What is a DXF file?

DXF (Drawing Interchange Format) is a CAD data file format developed by Autodesk and introduced with AutoCAD in the early 1980s to enable the exchange of drawings between AutoCAD and other programs. Autodesk publishes a reference describing its structure for AutoCAD releases. In geospatial workflows it is used to exchange survey plans, engineering drawings and base maps between CAD and GIS software.

A DXF file is a single file, usually ASCII text but optionally binary, composed of pairs of group codes and values organised into sections such as HEADER, TABLES, BLOCKS, ENTITIES and OBJECTS. Entities include lines, polylines, arcs, circles, splines, hatches, text and block references, assigned to named layers with colours and linetypes. DXF has no built-in coordinate reference system and no true attribute table, so GIS imports typically turn layers and entity properties into fields, while curves are often linearised and blocks exploded.

### How do I open a DXF file?

DXF files can be opened in AutoCAD, BricsCAD, LibreCAD, QGIS and ArcGIS Pro. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert DXF to?

Popular conversions are KML, KMZ, SHP, GeoPDF, XLSX and GeoJSON. In total the Converter writes DXF data to 40 formats.

### How do I create a DXF file?

Convert existing data to DXF — for example from KML, KMZ, SHP, GeoPDF and DWG. Upload the file, choose DXF as output and download the result.

