Gerber Files Explained — Layers and Drill Files
A PCB is delivered to a fabricator as a set of Gerber files — one artwork layer per board side and purpose — plus an Excellon drill file for the holes. This guide explains what each file is and how to inspect a set before you send it off. Every tool mentioned runs locally in your browser; nothing is uploaded.
What a Gerber file is
Section titled “What a Gerber file is”Gerber is the open vector format for PCB artwork, maintained by Ucamco. The current generation is RS-274X: each file is self-describing, with aperture definitions, polarities and mirror settings embedded in the file itself. The older RS-274D moved apertures into a separate definitions file, which is why it rarely renders correctly in modern tools — if you have an RS-274D set, re-export it from your EDA tool.
The layers in a typical set
Section titled “The layers in a typical set”| File | Layer |
|---|---|
.gbr, .gtl, .gbl |
Copper — top and bottom |
.gts, .gbs |
Solder mask — top and bottom |
.gto, .gbo |
Silkscreen — top and bottom |
.gtp, .gbp |
Solder paste for assembly |
.gko, .gm1 |
Board outline / mechanical |
.drl, .txt |
Excellon drill — plated and non-plated holes |
Naming conventions differ between KiCad, Altium and Eagle — the extension is a hint, not a rule. The layer function is what matters, and a viewer shows you which is which.
How to inspect a board set
Section titled “How to inspect a board set”- Gerber Viewer — render the whole set as one board, toggle layers on and off, measure in mm or inches, and export a PNG or SVG.
- Gerber Layer Stackup — overlay every layer on one aligned image and zoom in to check fine-pitch registration between layers; a compare mode diffs two revisions of a board.
- Gerber DFM Check — 55 graded manufacturability checks: trace width and spacing, drill types, silkscreen over pads, mask coverage, copper connectivity and board outline, each with mm coordinates and a downloadable report.
- Gerber to PNG — render each layer to a high-resolution PNG (one file per layer, or a batch ZIP).
Drill files
Section titled “Drill files”Excellon drill files describe the holes: position, plated or non-plated, and tool diameter. Drill and artwork must align — a drill file offset from copper is the classic fabrication fault. Load both the copper and the drill file in the Gerber Viewer and check that holes land inside pads.
Before you order
Section titled “Before you order”Run the DFM check, eyeball the stackup, and export a PNG of the top and bottom copper for your own records. That covers the three failure modes that cost re-spins: design-rule violations, misregistration, and sending the wrong revision.