Skip to content
pcblane
Guide

What a Gerber file is and how to check it before you send it

The Gerber file is the standard format used to describe each layer of a PCB for manufacturing. This guide explains what it contains, how RS-274X and Gerber X2 differ, how to open and check it in a viewer and which errors to look for before requesting a quote.

Updated: 7 November 2026 · 7 min read

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:

  1. That all the layers appear and each file matches the layer its name says.
  2. That the outline is closed, has the right dimensions and has no stray lines.
  3. 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.
  4. That the copper pours are filled (in KiCad, fill the zones before exporting).
  5. That the silkscreen does not cover pads and the solder mask leaves the pads to be soldered exposed.
  6. 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

Common errors when preparing Gerber files and how to avoid them.
ErrorWhat it causesHow to avoid it
Missing drill fileThe board cannot be manufacturedGenerate the Excellon file together with the Gerber and put it in the same ZIP
Open or duplicated outlineDoubts about the actual shape of the boardDraw the outline on a single layer and check that it is closed
Unfilled copper zonesEmpty ground planes on the boardFill all zones and run the DRC before exporting
Different units or drill formatHoles offset or at a different scaleUse the same units and origin for the Gerber and drill files
Layers from another revisionThe wrong version gets manufacturedExport to a clean folder and put the revision in the ZIP name
Missing paste layer on a PCBASMT assembly cannot be preparedInclude 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.

Frequently asked questions

Is a “Gerber file” the same as “Gerber files”?

Yes. They are two ways of saying the same thing. In practice it is not a single file but a set of files (one per layer) sent together in a ZIP.

Can I send the KiCad or Altium project instead of the Gerber?

It is better to send the Gerber and drill files: it is the format the factory uses and it avoids version differences between tools. If you are unsure how to export it, follow our KiCad or Altium and EasyEDA guides.

Do I have to use Gerber X2?

It is not mandatory. RS-274X is still valid. If your tool offers X2, you can use it: the attributes help identify each layer.

How do I know if my Gerber is complete?

Open it in a viewer with all the files at once and check the layers, outline and drill holes. On top of that, the engineer reviews it before preparing the quote.

Send us your project and get your quote within 24 business hours

No sign-up needed: upload your files and specify the configuration you need.