All converters
HomeCAD converter › DXF to CSV

Convert DXF to CSV

By , GIS & remote-sensing practitioner · Reviewed

Convert DXF to CSV to pull the coordinates out of a CAD drawing and into a table you can filter and analyse. The drawing is decoded locally in the browser, so proprietary site plans never leave your machine.

Drop a file here, or click to browse

KML, KMZ, SHP (.zip), GeoJSON, GPKG, GML, GPX, DXF, CSV, Excel, and more

No uploadNo trackingOpen standards (GDAL/OGR)Works offline once loaded

No DXF file to hand? Download a sample DXF file (100 points) and drop it above to see the conversion.

How to convert DXF to CSV

  1. Drop the .dxf file into the box above.
  2. The CAD entities, lines, polylines, arcs and points, are translated into features you can preview on the map.
  3. Pick CSV and convert; point entities become X/Y columns, and longer geometry is written to a WKT column at the end of each row.

What changes when you convert DXF to CSV

Every format stores different things, so a conversion is never perfectly loss-free. Here is exactly what carries over when you convert DXF to CSV, and what to watch for.

WhatDXF → CSV
GeometryChangesPoint features become X and Y columns; lines and polygons are written to a WKT geometry column, so no shape is lost in the table.
AttributesChangesDXF is a CAD format with no attribute table, so the output carries geometry with only the fields the drawing exposes (typically a layer name).
Styling & labelsChangesCAD layer/level organisation is mapped where it can be, but CAD line styles do not translate to GIS symbology.
Coordinate systemChangesCSV stores raw coordinates without a CRS tag, so note the coordinate system separately for whoever opens the file.
Elevation (Z)ChangesZ values, if present, appear as an extra column rather than 3D geometry.
File structureKeptA single, self-contained .csv file you can move around on its own.

Why convert DXF to CSV?

DXF drawings pack survey lines, polylines, arcs and text into CAD layers. However, a spreadsheet cannot read that structure. So converting DXF to CSV flattens the drawing into plain rows of coordinates and values you can sort, filter and edit. For example, engineers pull vertex points out of a site plan to check them, then feed them to pandas or a script. Also, sharing survey points as a simple table lets non-CAD colleagues open the data in Excel or Google Sheets. CSV becomes the bridge from a drawing-centric CAD world into everyday analysis and mapping tools.

Coordinate system handling

DXF drawings usually sit in a local or engineering coordinate system rather than latitude/longitude, and the file rarely records which one. If the drawing is georeferenced, set its CRS before converting; otherwise the geometry keeps its drawing coordinates.

CSV stores raw coordinates without a CRS tag, so make a note of the coordinate system for whoever opens the file next. A quick CRS check before you download saves the classic "my DXF data is in the wrong place" surprise; the guide on coordinate systems and EPSG codes goes deeper.

What to check when converting DXF to CSV

Check the coordinate system first. DXF often sits in a local or engineering grid, not latitude and longitude. So if the drawing is not georeferenced, your CSV columns will hold raw X/Y values, not real-world lon/lat. Set the CRS before converting if the drawing is georeferenced. Also, CAD uses layers and blocks instead of an attribute table, so expect geometry coordinates rather than rich fields in the output.

Which software opens the result

DXF files typically come out of AutoCAD, QGIS, MicroStation, Civil 3D. Once you convert to CSV, the file opens in Microsoft Excel, Google Sheets, LibreOffice Calc, and any script or database import. The CSV output follows the standard specification exactly, so those programs read it without any special import settings.

Troubleshooting DXF to CSV

About the formats

DXF holds CAD linework: polylines, arcs, text and layers drawn in AutoCAD or Civil 3D. CSV is a flat table of rows and columns. Moving from one to the other pulls the drawing apart into coordinates. Each entity becomes rows of X and Y values you can open in Excel or load with pandas. In practice, this is how engineers hand geometry to people who work in spreadsheets, not drafting tools.

Frequently asked questions

Does the CSV keep my DXF layer names and text labels?

CAD stores data in layers and blocks, not an attribute table, so the CSV mainly carries coordinates. Layer names and text may appear as columns where available, but expect a flat table rather than the full drawing structure.

Will the coordinates in my CSV be latitude and longitude?

Only if the DXF is georeferenced. Many drawings use a local engineering grid, so the output columns will match whatever units the drawing used. Set the CRS beforehand so points land in real-world lon/lat.

How do lines and polylines from my DXF appear in the CSV?

Point entities map cleanly to one row each. Polylines and arcs are broken into their vertices, so a single line can produce several rows of X and Y values. Because a flat table has no concept of connected paths, the drawn shape itself is not preserved.

Will the coordinates come out as latitude and longitude?

Not usually. Most DXF files sit in a local or site coordinate system, so the CSV inherits those same engineering X and Y numbers. If the drawing was georeferenced, set the CRS so the output makes sense to a spreadsheet or to pandas. Otherwise the values stay in drawing units.

What can open a CSV file after converting?

A CSV file opens in Excel, Google Sheets, LibreOffice and any database. Because the output follows the standard specification, any tool that supports CSV will read it without special settings.

Does converting DXF to CSV lose any data?

No conversion is perfectly loss-free because each format stores different things, but nothing important is lost: point coordinates become X/Y columns and any lines or polygons are saved as WKT text, so the geometry survives in the table.

Related converters

Related reading