IntelCAD team

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.

Exploded view of PCB manufacturing layers: copper, solder mask, silkscreen, paste and drill layers stacked above a bare board

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.

Exploded view of PCB manufacturing layers: copper, solder mask, silkscreen, paste and drill layers stacked above a bare board
Exploded view of PCB manufacturing layers: copper, solder mask, silkscreen, paste and drill layers stacked above a bare board

What is a Gerber file?

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.

Gerber formats: RS-274-D, RS-274X and X2

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.

What goes into a complete PCB fabrication package

FileWhat it describesNotes
Copper layers (top, inner, bottom)Traces, pads, planes, poursOne file per copper layer, in stackup order
Solder mask (top, bottom)Openings in the maskUsually exported as openings, not as mask coverage
Silkscreen / legend (top, bottom)Reference designators, polarity marks, logosShould be clipped away from pads
Solder paste (top, bottom)Stencil apertures for SMD padsNeeded for assembly, not for bare boards
Board outlineFinal board shape, cutouts, slotsExactly one closed outline is easiest for the fab
NC drill filesHole positions and sizesUsually Excellon; plated and non-plated often separate
Drill drawing / drill mapHole sizes, symbols, tolerancesHelps the fab cross-check the drill file
Fabrication drawing or readmeStackup, material, thickness, copper, finish, mask colour, impedance notes, tolerancesEverything the images cannot say
IPC-356 netlistNet connectivity for electrical testLets 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.

Gerber file extensions

There is no single required set of file extensions. Many tools use the Protel-style names, for example:

The 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.

How to export Gerber files: a practical workflow

  1. Run DRC first. Clear design-rule errors against the fab’s actual capabilities, not the tool’s defaults. Our PCB DFM guide covers what to check.
  2. Confirm the stackup. Layer order, copper weights and dielectric thicknesses should match what you will write on the fab drawing. See our PCB stackup design guide.
  3. Choose the format and units. RS-274X or X2, metric or imperial, and enough coordinate precision for your finest features. Use the same units and origin for Gerbers and drill files.
  4. Export every layer you need, including mask, paste, silkscreen and outline. Leave out mechanical layers that only hold notes, unless the fab asks for them.
  5. Export the drill files. Keep plated and non-plated holes clearly separated, and include slots in the format your fab supports.
  6. Export the IPC-356 netlist if your tool supports it.
  7. Write the readme or fab drawing with stackup, material, finished thickness, copper weights, surface finish, mask and legend colours, impedance requirements and the file list.
  8. Open everything in an independent Gerber viewer and check it layer by layer before zipping.

How to check Gerber files before you send them

A viewer shows what the fab will see, not what your layout tool shows. Look for:

Common Gerber file mistakes

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.

Where AI and automated checks help

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.

FAQ

What is a Gerber file in PCB 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.

Are drill files part of Gerber 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.

What is the difference between RS-274X and Gerber X2?

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.

What file extension do Gerber files use?

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.

How do I check Gerber files before ordering?

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.

Next step

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