Convert DWG to CSV

Turn DWG documents into CSV. A CSV with one row for each feature: its shape as WKT in a first column named WKT, then every attribute as a column.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop DWG files on the dialor turn it to pick what to do

A table of the features in your drawing.One row for each feature, with its shape as text and its attributes as columns.

  1. What you get

    A CSV with one row for each feature in the drawing. The first column is named WKT and holds the feature's shape as WKT. Every attribute follows as its own column.

    A feature without a geometry keeps its row, and its WKT is empty. If the drawing already has an attribute named WKT, that column is renamed WKT_1. Lists and nested values become JSON text.

  2. How the drawing is read

    The drawing is first written as a DXF by LibreDWG. Proxy objects that add-on applications store are left out, and so are objects LibreDWG does not understand.

    Drawings saved by AutoCAD R12 or older are refused.

  3. What it leaves behind

    Paper space layouts, colors, line weights and text styles are dropped. The CSV holds shapes and attributes, not the look of the drawing.

  4. Failures

    A file that is cut off before its EOF marker fails with input_corrupted.

DWG and CSV.What each format is.

The formats

From · DWG

AutoCAD Drawing

AutoCAD's own drawing format, the most common file of architects, engineers and CAD tools.

Extensions
.dwg
MIME type
image/vnd.dwg
Kind
Documents
To · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data

In your code.The same DWG to CSV conversion through the API, for your app or your agent.

terminal
$ cv convert report.dwg report.csv
$ cv convert report.dwg report.csv

Questions.What people ask about DWG to CSV.

01OF 04

The first column is named WKT and holds each feature's shape as WKT. If the drawing already has an attribute named WKT, that attribute becomes WKT_1.

Yes. The row stays, and its WKT is empty.

No. Colors, line weights, text styles and paper space layouts are dropped.

Not if it was saved by AutoCAD R12 or older. Those drawings are refused.

More conversions.Other ways in and out of DWG and CSV.