.GDS

GDS File

GDSII Stream File (Integrated Circuit Layout)
Ask a question
QUICK ANSWER

A GDS (GDSII) file is the industry-standard binary format for integrated-circuit and MEMS photomask layouts - the polygon geometry that a foundry turns into a chip. Open it with KLayout (free, Windows/macOS/Linux) or LayoutEditor. It is not an image or document; exporting to PNG or PDF produces a picture only, not editable mask data.

Developer: Calma Company (1978); de facto industry standard, no single current owner Category: CAD Files Open standard MIME: application/x-gdsii
OPENS ON Windows macOS Linux
Related: .DWG · .SLDPRT · .EASM · .NWD

On this page

19k+ extensions indexed
Last reviewed Sep 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the GDS file format?

The .gds file is the established exchange format for integrated circuit (IC) and MEMS mask layout data, formally known as GDSII (Graphic Database System II) or the Calma Stream Format. Developed by the Calma Company in 1978, it became the de facto tape-out format that chip designers deliver to semiconductor foundries for photomask fabrication.

A .gds file is a binary stream composed of length-prefixed records, stored in big-endian byte order. Each record begins with a 4-byte header encoding the record length, type, and data type, followed by the data payload. The file always opens with a HEADER record (hex signature 00 06 00 02) and closes with ENDLIB. Between those markers the format organizes IC geometry in a strict hierarchy: library → structures (cells) → elements. Supported element types include:

  • BOUNDARY - filled polygons (the primary shape)
  • PATH - wire segments with a defined width
  • SREF / AREF - single and array cell references for compact hierarchy
  • TEXT - string labels with position, orientation, and magnification
  • BOX and NODE - additional annotation elements

All geometry resides on numbered layers, with integer coordinates scaled by a UNITS record that maps database units to meters.

A .gds file stores only geometry and hierarchy - it is not a schematic or netlist. File sizes range from kilobytes for a single cell to many gigabytes for a full-reticle mask set. Large files are commonly distributed as .gds.gz using external gzip compression. For modern high-density designs, the OASIS format offers better compression and faster parsing and is increasingly preferred over .gds, though .gds remains the dominant interchange standard across the EDA industry and is accepted by virtually every commercial foundry.

Security & safety

RISK: LOW

A GDSII file is passive geometry data - no executable code - so opening one in a layout viewer is safe. The real concerns are confidentiality and integrity, not malware: a .gds is often valuable proprietary IP (a chip design under NDA), so handle it accordingly and avoid uploading designs to unknown online "GDS viewer/converter" services. GDSII has no built-in checksum, so verify integrity through your EDA flow (DRC/LVS, XOR comparison) rather than trusting the file blindly.

Format details

in a nutshell
FULL NAMEGDSII Stream File (Integrated Circuit Layout)aka GDSII, GDS2
DEVELOPERCalma Company (1978); de facto industry standard, no single current ownersince 1978 (Calma GDSII), succeeding GDS I
CATEGORYCAD Files
MIME TYPEapplication/x-gdsii
TYPEBinary IC/MEMS mask layout stream (hierarchical geometry)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
00060002
ASCII
····
A GDSII file always begins with a HEADER record. The first 4 bytes are the record header: 00 06 (length = 6 bytes) then 00 02 (record type HEADER 0x00, data type 2-byte integer 0x02), followed by the 2-byte version number - e.g. 00 06 00 02 00 03 for a version-3 file. Some tools emit a longer padded preamble; the reliable marker is the 00 06 00 02 HEADER record at offset 0. All multi-byte fields are big-endian.

Programs that open GDS files

Windows4 apps
CleWin Paid Open the .gds layout for mask design/editing (WieWeb/PhoeniX); historic GDSII editor.
KLayout Open-source Open the .gds to view/edit layers and the cell hierarchy; the standard free GDSII/OASIS viewer-editor.
LayoutEditor Freemium Open the .gds to view and edit mask geometry; free for non-commercial use.
gdspy / gdstk (Python) Open-source pip install gdstk; script-read/write .gds for programmatic layout generation and inspection.
macOS2 apps
KLayout Open-source Open the .gds to view/edit layers and hierarchy on macOS.
gdstk (Python) Open-source pip install gdstk; read/write .gds programmatically.
Linux3 apps
KLayout Open-source The go-to free GDSII viewer/editor on Linux; open the .gds to inspect or edit.
Magic VLSI Open-source Read/write GDSII for layout editing in open-source IC flows (e.g. with SKY130 PDK).
gdspy / gdstk (Python) Open-source Script GDSII read/write for generation and DRC pre-checks.

Technical details

deep spec
EncodingBinary, big-endian byte order throughout
Record structureStream of length-prefixed records; each record has a 4-byte header: 2-byte length, 1-byte record type, 1-byte data type, followed by the payload
File signature (magic bytes)Hex `00 06 00 02` at offset 0 - HEADER record with length 6, record type 0x00 (HEADER), data type 0x02 (2-byte integer)
MIME type`application/x-gdsii`; fallback `application/octet-stream`
Coordinate system4-byte signed integers in database units; the `UNITS` record pairs user units with a meters-per-database-unit scale factor
Floating-point formatCalma/IBM 8-byte hexadecimal floating-point (not IEEE 754), used in `UNITS` and other real-valued record fields
Element types`BOUNDARY` (polygon), `PATH`, `SREF` (cell reference), `AREF` (array reference), `TEXT`, `NODE`, `BOX`
Layer modelInteger layer numbers (0-255 in practice) paired with an integer datatype field; no built-in name table - layer-to-purpose mapping is defined externally in PDK technology files
HierarchyRecursive cell (structure) hierarchy using `BGNSTR`/`STRNAME`/`ENDSTR` blocks; cells reused via `SREF`/`AREF` enable compact representation of repeated geometry
Built-in compressionNone; files are commonly distributed as `.gds.gz` using external gzip compression
Typical file sizeKilobytes for a single test cell; tens of gigabytes for a full-chip or full-reticle mask set
Integrity checkingNo built-in checksum; file integrity is verified by downstream DRC (design rule check) and LVS (layout vs. schematic) sign-off tools
Internal version field2-byte integer stored in the `HEADER` record payload; common values are 3, 5, and 6
Text and label support`TEXT` elements attach string labels to a layer and datatype, with position, rotation, magnification, and one of four font indices (0-3)
Primary use caseIC and MEMS mask layout exchange, semiconductor foundry tape-out, and photomask fabrication sign-off
Released1978 (Calma GDSII), succeeding GDS I
Latest versionGDSII (the format is frozen; largely superseded by OASIS for new flows)
Open standardYes · royalty-free
Specificationwww.artwork.com

GDS conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GDS files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about GDS files.

Frequently asked questions

How do I open a GDS (GDSII) file?
Use a layout viewer. The free, open-source KLayout (Windows/macOS/Linux) is the standard choice - open the .gds to see the layers and cell hierarchy. LayoutEditor and Magic VLSI also work; gdstk/gdspy read it from Python.
What is a GDSII file used for?
It is the industry-standard format for integrated-circuit and MEMS photomask layouts - the polygons on each layer that a foundry turns into a chip. It is used for tape-out, PDKs and IP exchange.
Can I convert GDSII to an image or PDF?
Only as a picture, not as editable data. Open the .gds in KLayout and export/print to PNG, SVG or PDF for figures. There is no meaningful round-trip from an image back to a mask layout.
What is the difference between GDSII and OASIS?
OASIS (.oas) is the newer, much more compact successor to GDSII for large modern designs. They describe the same kind of layout geometry; KLayout converts between them. GDSII is older but still ubiquitous.
Is GDSII the same as a Gerber file?
No. GDSII is for IC/MEMS mask layouts; Gerber (.gbr) is for printed-circuit-board fabrication. They serve different manufacturing steps and are not interchangeable in normal workflows.
Why is my GDS file so large?
A full chip can contain billions of polygons. GDSII isn't compressed, so files reach many gigabytes; people often gzip them (.gds.gz) or switch to OASIS, which is far more compact.

References

1Wikipedia - GDSIIen.wikipedia.org
2Artwork Conversion - All About Calma's GDSII Stream Formatwww.artwork.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.EXEWindows Executable (Portable Executable)
10.PRDXSoftMaker Presentations Document

Related extensions

.DWGAutoCAD Drawing Database
.SLDPRTSOLIDWORKS Part File
.EASMeDrawings Assembly
.NWDNavisworks Document (published 3D model)
.VWXVectorworks Design File
.DXFDrawing Exchange Format (AutoCAD DXF)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z