DXF to GeoPackage Converter
Converts a DXF drawing to a GeoPackage layer with GDAL's ogr2ogr.
Upload a .dxf file. GDAL reads all entities into one layer called entities, which the worker writes into a GeoPackage. GeoPackage allows mixed geometries, so points, lines and texts stay together in that layer.
Drag a file here to convert, or select file
Accepted: .dxf · max. 50 MB
What the converter does
- All entities go into one layer entities with the geometry type Geometry.
- The CAD layer name is in the field Layer; texts become points with the text in the field Text.
- Closed polylines and circles become lines, not polygons (GDAL's default).
- DXF has no coordinate system, so the layer has none. Assign it in your GIS.
- The report below the upload shows layers and features read and written, skipped layers with the reason, GDAL's warnings and the exact commands.
GDAL command the worker runs
Tested with
| Test file | Result |
|---|---|
| DXF with a point, a line, a closed polyline, a circle and a text on 5 CAD layers | 1 layer entities, 5 of 5 features (2 points, 3 lines); CAD layer names in Layer, text in Text; no coordinate system |
Tested on 24 Sep 2026 with the worker code of this site and GDAL 3.10.3 (conda-forge build on Windows). The worker image runs the Debian build of the same GDAL version; the live worker was not part of these tests.
Limits
- Upload limit: 50 MB per file.
- Tested with points, lines, polylines, circles and text; blocks, hatches and dimensions were not part of the test.
- No coordinate system in the output.
- Each GDAL step may run for up to 240 seconds; a longer run is stopped with an error message.
Frequently Asked Questions
Can I get one layer per CAD layer?
Not from this converter: GDAL puts all entities into one layer and stores the CAD layer name in the field Layer. Filter or split by that field in your GIS.
What happens to my file?
Your browser uploads it directly to the GDAL worker on Fly.io (region Frankfurt). The worker converts it in a temporary folder and deletes the folder after sending the result, or immediately if the conversion fails. Files are not stored permanently.