Selektronik – razvoj in izdelava tiskanih vezij
All guides
Guide

How to prepare Gerber files for PCB manufacturing

A practical guide to exporting Gerber and drill files from KiCad, Altium and EasyEDA: required layers, the RS-274X format, common mistakes and what the manufacturer checks.

12. maj 2026 7 min readAuthor: the Selektronik team

Gerber files are the universal language between the PCB designer and the PCB manufacturer. Whether you draw your board in KiCad, Altium or EasyEDA, the manufacturer will ultimately need a set of Gerber and drill files from which it produces the photomasks, the drilling program and the routing profile. Mistakes at this step are one of the most common reasons for delays, extra questions from the manufacturer or, in the worst case, an unusable board.

In this guide we explain which files you need, how to export them from the most common tools, what to watch out for and what the manufacturer actually checks during its review.

What Gerber files are and which format to use

Gerber is a vector format that describes each layer of the board separately: the copper layers, the solder mask, the silkscreen, the paste layer and the board outline. Each layer is its own file.

Two standards are relevant today:

  • RS-274X (Extended Gerber) is the long-standing industry standard that every manufacturer accepts. Apertures (shapes) are embedded in the file, so no separate aperture file is needed.
  • Gerber X2 is a newer extension that adds metadata to the files (layer function, pad function, project name). It makes automatic layer recognition easier for the manufacturer. Most modern fabs support it.

Do not use the old RS-274D format any more. It requires a separate aperture file and is a constant source of misunderstandings.

In addition to the Gerbers you need a drill file in Excellon format (usually .drl, .xln or .txt) that describes the positions and diameters of the holes. Multilayer boards with blind or buried vias need a separate drill file for each layer pair.

Which layers the package must contain

For a standard two-layer board the manufacturer needs the following files:

LayerTypical extension (Altium / KiCad)Purpose
Top copper.GTL / F_CuTraces and pads on top
Bottom copper.GBL / B_CuTraces and pads on the bottom
Top solder mask.GTS / F_MaskMask openings over the pads
Bottom solder mask.GBS / B_MaskMask openings on the bottom
Top silkscreen.GTO / F_SilkscreenComponent designators, logos
Bottom silkscreen.GBO / B_SilkscreenMarkings on the bottom (if any)
Board outline.GKO or .GM1 / Edge_CutsOuter edge and internal cut-outs
Drill file.drl or .txt (Excellon)Plated and non-plated holes

Four- or six-layer boards add the inner copper layers (.G1, .G2 or In1_Cu, In2_Cu). The PCB manufacturer does not need the paste layers (.GTP / F_Paste), but whoever makes the stencil for applying solder paste and assembles the components definitely does.

Exporting from KiCad

KiCad (versions 7 and 8) exports via File → Plot:

  1. Select the Gerber format and an output folder (e.g. "gerber").
  2. Select the layers: F.Cu, B.Cu, the inner layers, F.Mask, B.Mask, F.Silkscreen, B.Silkscreen and Edge.Cuts. If you also order a stencil, add F.Paste and B.Paste.
  3. In the general options enable Use Protel filename extensions (easiest for manufacturers to recognise) and Subtract soldermask from silkscreen, so the silkscreen does not cover the pads.
  4. Under the Gerber options leave Use extended X2 format enabled, unless the manufacturer explicitly asks for classic RS-274X.
  5. Click Plot, then Generate Drill Files. Choose the Excellon format, millimetres and separate files for PTH and NPTH holes.

Important: run the DRC (Design Rules Check) before exporting and fix every error. The Gerber export will not fix them for you.

Exporting from Altium Designer

In Altium, use File → Fabrication Outputs → Gerber Files or, even better, an Output Job file that you can reuse for every revision:

  • Units: millimetres; the 4:4 format (four decimal places) is today's standard and prevents rounding errors.
  • On the Layers tab select all used layers and the mechanical layer that defines the outline.
  • Under Advanced keep the embedded apertures (RS-274X).
  • Export the drill file with NC Drill Files, using the same units and format as the Gerbers, otherwise the holes will not line up.

Also check that only one mechanical layer defines the outline and that no auxiliary mechanical layers with dimensions or comments end up in the Gerbers.

Exporting from EasyEDA

EasyEDA is a popular choice for hobbyists and quick prototypes. The export is simple: Fabrication → PCB Fabrication File (Gerber). The tool first runs a DRC and then offers a ZIP package with all layers and the drill file. You can upload this package directly to our configurator.

The most common mistakes

When we review customer data, the same mistakes keep coming up:

  • Missing board outline. Without an Edge Cuts layer the manufacturer does not know where to cut. The outline must be closed – a single, continuous contour.
  • Unit mismatch between the Gerbers and the drill file (inches versus millimetres). The holes end up offset or wrongly scaled.
  • Mirrored bottom layer. Always export the Gerbers as seen from the top, without mirroring. The manufacturer takes care of the orientation.
  • Silkscreen over pads. Text on pads ruins solder wetting.
  • Wrong hole diameters. Check that the diameters match the connector pins and screws (an M3 screw needs a 3.2 mm hole).
  • Mask openings without a pad, i.e. exposed copper that is there by mistake.
  • Leftover old files in the ZIP. If the archive contains two versions of the same board, the manufacturer does not know which one is correct.
  • Missing drill file, or non-plated holes (NPTH) accidentally marked as plated.

What the manufacturer checks in the CAM review

Once you upload the files, a CAM engineer opens them in a program such as CAM350 or Genesis and checks:

  • whether the layers align correctly,
  • whether there is a closed outline and whether internal cut-outs are clearly defined,
  • minimum trace widths and clearances for the selected technology (e.g. 0.127 mm or 5 mil),
  • the annular rings of the holes and the copper-to-edge clearance,
  • that solder mask is present between the pads of fine-pitch packages,
  • that the holes match the drill file,
  • whether the order data (layer count, thickness, surface finish) matches the files.

This review is not a design correction. If the errors are functional (a short circuit, a missing connection, a wrong footprint), the manufacturer will not notice them. That is why you should check your Gerbers yourself before sending them.

Check your Gerbers before you send them

Never send files without looking at them in an independent viewer:

  • KiCad Gerber Viewer (gerbview), included with KiCad,
  • Gerbv, an open-source viewer,
  • online viewers for a quick check in the browser.

Load all layers at once in the viewer and check the alignment, the orientation of the silkscreen text and that the holes match the pads. Five minutes of checking saves a week of delay.

Checklist before sending

  • DRC passes with no errors and no warnings you have not consciously accepted.
  • All copper layers, both masks, the silkscreen, the outline and the drill file are in the ZIP.
  • Units and format are the same in the Gerbers and the Excellon file.
  • The outline is closed; cut-outs and rounded corners are defined.
  • The paste layer is included if you order a stencil or assembly.
  • The ZIP contains only one, final version.
  • The inquiry states the layer count, thickness, copper weight, mask colour and surface finish.

Need help?

If you are not sure whether your Gerbers are ready for production, we review them at Selektronik and point out issues that would otherwise cost you an extra board revision. In our PCB configurator you can upload the files, see a price estimate immediately and send an inquiry; we usually prepare a quote with the final price within a few hours. If you also need help with the schematic or the PCB layout, take a look at our electronics development services.