Gerber Files for PCB: Layers, Extensions and Export Guide
Gerber files for PCB explained: which layers to export, RS-274X vs X2, file extensions, drill files, a fab package checklist and how to check files first.
Gerber files for PCB explained: which layers to export, RS-274X vs X2, file extensions, drill files, a fab package checklist and how to check files first.

Short answer: A Gerber file is the standard 2D image format that tells a PCB fabricator what to build on each layer: copper, solder mask, silkscreen, solder paste and the board outline. A complete Gerber package is one Gerber file per layer, plus an NC drill file (usually Excellon) for holes, a fabrication drawing or readme with stackup and finish, and often an IPC-356 netlist for electrical test. Export in RS-274X or Gerber X2, check every file in a viewer, and zip it with the drill files before you send it to the fab.

A Gerber file is a vector description of one layer of a printed circuit board. It lists shapes (pads, traces, arcs and filled regions) and where to place them, in a plain-text format that CAM software at the fab can read. The format is maintained by Ucamco and is the most widely used way to hand PCB artwork from design tools to manufacturing.
Each Gerber file describes only one layer. A two-layer board therefore needs several files: top and bottom copper, top and bottom solder mask, top and bottom silkscreen, paste layers if the board is assembled with stencils, and a board outline. Holes are not normally in the Gerbers; they live in a separate drill file.
For short answers to the questions fabs ask most often, see our Gerber files Q&A guide.
If your EDA tool and your fab both support X2, use it. If you are unsure, RS-274X is accepted everywhere.
Two other formats can replace a Gerber package entirely: ODB++ and IPC-2581 carry layers, drills, netlist and stackup in a single intelligent dataset. Many fabs accept them, but Gerber plus drill files remains the common baseline.
| File | What it describes | Notes |
|---|---|---|
| Copper layers (top, inner, bottom) | Traces, pads, planes, pours | One file per copper layer, in stackup order |
| Solder mask (top, bottom) | Openings in the mask | Usually exported as openings, not as mask coverage |
| Silkscreen / legend (top, bottom) | Reference designators, polarity marks, logos | Should be clipped away from pads |
| Solder paste (top, bottom) | Stencil apertures for SMD pads | Needed for assembly, not for bare boards |
| Board outline | Final board shape, cutouts, slots | Exactly one closed outline is easiest for the fab |
| NC drill files | Hole positions and sizes | Usually Excellon; plated and non-plated often separate |
| Drill drawing / drill map | Hole sizes, symbols, tolerances | Helps the fab cross-check the drill file |
| Fabrication drawing or readme | Stackup, material, thickness, copper, finish, mask colour, impedance notes, tolerances | Everything the images cannot say |
| IPC-356 netlist | Net connectivity for electrical test | Lets the fab compare the Gerbers against your intent |
For assembly you also need a BOM and a pick-and-place (centroid) file, but those go to the assembler rather than the bare-board fab.
There is no single required set of file extensions. Many tools use the Protel-style names, for example:
.GTL top copper and .GBL bottom copper.G1, .G2 and so on for inner layers (naming varies by tool).GTS / .GBS top and bottom solder mask.GTO / .GBO top and bottom silkscreen (overlay).GTP / .GBP top and bottom paste.GKO or .GM1 for the board outline in some tools.DRL, .TXT or .XLN for Excellon drill filesThe Gerber specification recommends the generic .gbr extension, with the layer’s role described inside the file by X2 attributes. Because names differ between tools, always list each file and its layer in the readme or fab drawing. Do not rely on the fab guessing which file is layer 3.
A viewer shows what the fab will see, not what your layout tool shows. Look for:
Each of these usually ends in an engineering query from the fab (a hold while they ask questions), or worse, a board built the way the files say rather than the way you meant. Adding a Gerber step to your PCB design review checklist catches most of them.
Gerber problems sit between design and manufacturing, so they are easy to miss in either place. Automated checks can compare the exported files against the design database, confirm that every drill hit lands on a pad, verify that the layer count and order match the stackup, flag mask and silkscreen issues, and check that the readme agrees with the files. IntelCAD connects these checks with AI-assisted PCB design and component selection, so the parts you choose, the board you lay out and the files you release are reviewed as one design.
A Gerber file is a vector image of one PCB layer, such as top copper or solder mask, in a standard text format that fabricators use to build the board. A full board needs one Gerber file per layer plus drill files.
Usually not. Hole sizes and positions are normally sent in a separate NC drill file, most often in Excellon format, alongside the Gerber files and a drill drawing.
RS-274X is extended Gerber with aperture definitions inside each file. Gerber X2 uses the same syntax but adds attributes that describe each file’s function and pad roles, which makes the data easier for CAM software to read correctly.
The specification recommends .gbr, but many tools use Protel-style extensions such as .GTL for top copper, .GBL for bottom copper and .GTS for top solder mask. List each file and its layer in your readme.
Open the exported Gerber and drill files in an independent Gerber viewer. Check that drills line up with pads, the board outline is closed, mask and paste openings are correct, silkscreen is off pads, and the files are the latest revision.
Want your fabrication files checked against the design before they reach the fab? Start Your Design with IntelCAD for AI-assisted PCB design, component selection and manufacturability checks.
Design your next board by describing it.
Start Your Design
Short answer: PCB copper thickness is usually specified as copper weight in ounces per square foot. 1 oz copper is about 1.37 mil (roughly 35 µm) thick, 0.5 oz is about half that, and 2 oz is about 2.74 mil (roughly 70 µm). Most boards use 1 oz finished copper on outer layers and 0.5 …

Short answer: Clearance is the shortest distance between two conductors through air. Creepage is the shortest distance between them along the surface of the insulating material. On a PCB, clearance protects against arcing from voltage peaks and transients, while creepage protects against tracking, the slow build-up of conductive paths across a contaminated board surface. Both …

PCB annular ring explained: how to calculate it, IPC Class 2 vs Class 3 breakout rules, pad and drill sizing, teardrops, and how DFM catches thin rings.