In short: a “Gerber file” is really a set of files, one per layer (copper, solder mask, silkscreen, paste and outline), describing the board as vector images. They are sent in a ZIP together with the drill file (Excellon). The format is maintained by Ucamco; the usual versions are RS-274X and Gerber X2. Before sending them, open them in a viewer and check the layers, outline and drill holes.
What a Gerber file contains
Each Gerber file describes one layer of the board with geometric shapes: tracks, pads, copper pours, solder mask openings or silkscreen text. It does not store the schematic or the component list: only what the factory needs to produce the image of each layer.
A complete set for a double-sided board usually includes:
- Copper for the top and bottom sides (and for each inner layer on a multilayer board).
- Solder mask, top and bottom: where the copper is left exposed for soldering.
- Silkscreen, top and bottom: reference designators, polarity and logos.
- Paste, top and bottom: openings for the solder paste, needed if there is SMT assembly.
- Board outline (board outline): the shape and cut-outs.
Holes do not go in the Gerber but in the drill file, usually in Excellon format. That is why we always talk about “Gerber and drill files” and ask for both in the same ZIP.
RS-274X and Gerber X2
RS-274X (extended Gerber) is the version the whole industry has used for years. Each file is self-contained: it includes the definition of its shapes, so there is no need for separate aperture files as with the old RS-274D, now obsolete.
Gerber X2 adds attributes: metadata stating what each file is (for example, “copper, layer 2, signal”), what each pad is for or how the layers are stacked. That way the factory does not have to work it out from the file name. The specification and its history are on Ucamco’s Gerber format page.
Current design tools (KiCad, Altium Designer, EasyEDA and others) export RS-274X and, in many cases, X2. If your tool offers X2, you can use it; if not, RS-274X is still valid.
How to open and check a Gerber file
A Gerber file is not opened with a PCB editor but with a Gerber viewer. KiCad includes one, GerbView, and there are free online and desktop viewers. Load all the files in the ZIP at once, including the drill file, and check:
- That all the layers appear and each file matches the layer its name says.
- That the outline is closed, has the right dimensions and has no stray lines.
- That the drill holes land on the pads and vias: if they are offset or ten times too large, there is a units or origin problem.
- That the copper pours are filled (in KiCad, fill the zones before exporting).
- That the silkscreen does not cover pads and the solder mask leaves the pads to be soldered exposed.
- That no files from another revision of the design have slipped in.
If you design in KiCad, the steps to generate the files are in export Gerbers from KiCad; the reference for each version is the official KiCad documentation. For Altium Designer and EasyEDA, see export Gerbers from Altium and EasyEDA.
Typical errors in a Gerber file
| Error | What it causes | How to avoid it |
|---|---|---|
| Missing drill file | The board cannot be manufactured | Generate the Excellon file together with the Gerber and put it in the same ZIP |
| Open or duplicated outline | Doubts about the actual shape of the board | Draw the outline on a single layer and check that it is closed |
| Unfilled copper zones | Empty ground planes on the board | Fill all zones and run the DRC before exporting |
| Different units or drill format | Holes offset or at a different scale | Use the same units and origin for the Gerber and drill files |
| Layers from another revision | The wrong version gets manufactured | Export to a clean folder and put the revision in the ZIP name |
| Missing paste layer on a PCBA | SMT assembly cannot be prepared | Include top and bottom paste if there are SMD components |
Many of these errors are caught by the DFM review, but it is quicker to fix them before you send the ZIP.
What we do with your files
When we receive the ZIP, an engineer checks that all the layers and the drill file are there, that the outline and dimensions add up and that the design fits what the chosen partner can manufacture. If anything is missing, they ask you for it in the request chat.
Your files are kept in private storage with controlled access (privacy policy). If your project is confidential, ask us for an NDA by email at info@pcblane.com.
Once your ZIP has been checked, request a quote with no sign-up needed.
Come across a technical term you don’t know? See the Glossary.