Convert GDSII to DXF
GDSII-to-DXF conversion takes a hierarchical mask layout — integer coordinates, numbered (layer, datatype) pairs, SREF and AREF placements — and writes it as a DXF R2000 drawing that mechanical and general CAD tools can open. The conversion runs entirely inside your browser; the file is read, converted and written locally, and there is no server to upload it to.
How to convert GDSII to DXF
- Drop your
.gdsor.gdsiifile onto the converter on this page. - Pick DXF as the target format. No options are needed: the unit mapping, layer naming and entity choices below are fixed so the output is predictable.
- Download the
.dxffile. Open it in your CAD tool, or in the free Glyph editor if you want to compare it against the source layout first.
What survives and what changes
| Aspect | What happens |
|---|---|
| Entities written | Only three: TEXT, LWPOLYLINE and INSERT. A boundary or box becomes a closed LWPOLYLINE; a path becomes an open LWPOLYLINE. |
| Curves | None are emitted. GDSII has no arc primitive, so a circle or curved edge is already a many-sided polygon in the source and stays a polyline in the output. |
| Units | 1 drawing unit = 1 nm, declared as $INSUNITS = 12 with $MEASUREMENT = 1. World nanometres are integers, so every coordinate is exact rather than a rounded micron fraction. |
| Layer names | The (layer, datatype) pair is always encoded in the DXF layer name (L1D0), sanitised to characters AutoCAD accepts and de-duplicated, so 1/0 and 1/4 can never merge. |
| Layer colours | Quantised to the nearest AutoCAD Color Index — a DXF R2000 LAYER record carries no true colour. A hidden Glyph layer is written with a negative ACI, DXF's "layer is off", never dropped. |
| Hierarchy | Each cell becomes a BLOCK. An SREF becomes an INSERT carrying magnification, rotation and mirroring. |
| Axis-aligned arrays | An AREF whose lattice is axis-aligned, positive-stepped and unrotated becomes a single INSERT with DXF's column/row array groups (70/71/44/45) — one entity, however large the array. |
| Other arrays | An AREF that cannot use DXF's orthogonal form expands instance by instance up to 20 000 instances. Past that only the four corner instances are written, and a 999 comment in the file says so. |
| Paths | A widened path becomes a constant-width LWPOLYLINE (group 43). The GDS end-cap style (pathType) has no DXF equivalent and is lost — the result is always flush-capped. |
| Text | Written as a plain TEXT entity in the Standard style at the GDS text size, positioned by the resolved anchor. Font, letter spacing and justification collapse into that offset. |
| Not exported | Construction shapes, bitmaps and persistent dimension annotations are excluded, the same contract as every other Glyph writer. |
| Damaged input | A truncated or corrupt .gds is reported, never silently converted as a partial file — the reader warns on a missing ENDLIB, a corrupt record with its byte offset, unconsumed tail bytes, and dropped NODE elements. |
| Round trip | Re-importing the DXF restores geometry and hierarchy, but not datatypes — a DXF import puts every shape on datatype 0. Keep the .gds as your master file. |
| Validation | Output is judged by ezdxf, never by Glyph's own DXF reader. A lossy writer round-trips cleanly against a lossy reader, so the oracle has to be an independent implementation. |
Why DXF is a lossy destination for mask data
DXF was built for general drafting: named layers, native arcs, floating-point coordinates in a user-chosen unit. GDSII was built for photomask and IC layout: numbered (layer, datatype) pairs, closed filled polygons, integer database units. Converting downward means giving up the datatype dimension (recovered here only as a naming convention), the end-cap model, and true layer colour.
That is a fair trade when the destination is a CAD tool, a drawing office, or a lithography flow that reads DXF — and a bad one if you are archiving. For the full side-by-side, see DXF vs GDSII. For the source format's record structure, see the GDSII file format reference.
If your goal is a figure for a paper or a slide rather than a CAD handoff, GDSII to SVG is the better target — see also the publication figures guide.
Open it in the editor
To check layer mapping, hierarchy or geometry before you hand the DXF on, open the source file in the free Glyph editor — nothing to install, and your files never leave your browser. See Open & save and Layers.
Glyph is made by NANYTE. For where a finished layout goes next, read NANYTE's maskless lithography overview.