Skip to content
pcblane
Guide

How to export Gerber and drill files from KiCad

To manufacture a PCB, the factory needs the layers in Gerber format (the “Gerber file”, which is really one file per layer) and the drill data in Excellon format, all in a single ZIP. This guide explains which layers to select in KiCad 8 and 9, which options to use and how to check the result before you send it.

Updated: 7 November 2026 · 7 min read

Which files the factory needs

A PCB is manufactured from two types of file. The Gerber files describe each layer: copper, solder mask, silkscreen, paste and board outline. The drill (Excellon) files give the position and diameter of every hole.

Both are generated from KiCad's PCB Editor, in the Plot dialog, which you open from File → Fabrication Outputs → Gerbers. The exact menu names may vary slightly between KiCad versions and languages; the reference is the official KiCad documentation. What each file contains and how to read it is explained in what is a Gerber file.

Before exporting: DRC and filled zones

Exporting a design with errors is the most common cause of delays. Before opening the Plot dialog, do two things:

  1. Fill all copper zones (press B in the PCB Editor). If a zone is unfilled or out of date, the Gerber will be missing that ground plane or will carry an old fill.
  2. Run the DRC (Design Rules Checker, in the Inspect menu). Fix the errors and review the warnings. Set the design rules to the factory's real capabilities: minimum track width, minimum clearance and minimum drill size.

The Plot dialog has an option to check zone fills before plotting. Leave it ticked: it is a safety net, not a substitute for the DRC.

Step 1: Gerber layers to select

Select the Gerber plot format and a dedicated output directory (for example, `gerber/`). Then tick these layers:

Minimum layers to manufacture a PCB from KiCad
KiCad layerWhat it isWhen?
F.Cu / B.CuTop and bottom copperAlways
In1.Cu, In2.Cu…Inner copperBoards with 4 or more layers
F.Mask / B.MaskSolder maskAlways
F.Silkscreen / B.Silkscreen (F.SilkS / B.SilkS)SilkscreenIf that side has text or markings
F.Paste / B.PasteSolder pasteIf you are ordering PCBA assembly
Edge.CutsBoard outlineAlways, without exception

You do not need to export documentation layers (User.*, F.Fab, F.Courtyard) to manufacture the bare board. If you want to pass a note to the factory, it is better to write it in the order.

KiCad's default options work with almost any factory. These are the ones worth checking:

  • Subtract soldermask from silkscreen: enabled. This keeps ink off the pads.
  • Coordinate format 4.6, unit mm: the default for Gerber X2 and the most precise.
  • Use extended X2 format: recommended. It includes attributes for each layer that help identify them automatically.
  • Generate Gerber job file (.gbrjob): useful, as it describes the set of layers.
  • Use drill/place file origin: only if you have defined one. What matters is using the same origin in the Gerber, the drill files and the CPL.

Click Plot. KiCad generates one file per layer.

Step 3: drill files (Excellon)

In the same dialog, click Generate Drill Files…. Set:

  • Format: Excellon.
  • Units: millimetres. The same as the Gerber, to avoid holes at the wrong scale.
  • Zeros format: decimal (the option KiCad recommends).
  • PTH and NPTH in separate files: the clearest option for the factory. PTH holes are plated through; NPTH holes are non-plated (mounting holes, for example).
  • Origin: the same one you used for the Gerbers.

Save the drill files in the same folder as the Gerbers.

Step 4: compress into a ZIP

Compress only the contents of the output folder into a single `.zip`. No nested subfolders, no complete KiCad project and no old files from another revision. Put the revision in the file name: `sensor-v1.2-gerber.zip`.

Step 5: how to check the Gerber file before you send it

Open the ZIP in a Gerber viewer before sending it. KiCad includes one, GerbView. Check:

  • That the outline is closed and has the correct dimensions.
  • That all copper layers and filled planes are present.
  • That the drill holes line up with the pads and vias (if they are offset or ten times too large, check units and origin).
  • That the silkscreen does not cover any pads.

If you design in Altium Designer or EasyEDA, the equivalent steps are in how to export Gerbers from Altium and EasyEDA.

When we receive the ZIP, an engineer repeats these checks before quoting: we explain it in what a DFM review is.

Common mistakes

MistakeSymptomFix
Edge.Cuts missingThe factory does not know where to cutTick Edge.Cuts and check the outline is closed
Different drill unitsHoles offset or at the wrong scaleGerber and drill in mm, with the same origin
Unfilled zonesGround planes missing from the GerberFill zones (B) and plot again
Files from another revisionLayers that do not matchClean output folder for every export
Paste layer missingThe stencil cannot be madeTick F.Paste / B.Paste if you are ordering assembly

Next step: your quote

With the ZIP ready, request a quote with no sign-up needed. What drives the cost: what a PCB's cost depends on; indicative lead times: pricing and lead times.

If you are also ordering assembly, continue with the guide to BOM and CPL files. Everything you can order is in what you can order and the full process in how it works. If this is your first product prototype, see how we work with hardware start-ups.

Come across a technical term you don’t know? See the Glossary.

Frequently asked questions

What extension should KiCad Gerbers have?

Both `.gbr` and Protel-style extensions (`.gtl`, `.gbl`…) are fine. What matters is that each layer can be identified; the X2 format adds that information inside the file itself.

Do I need to export the silkscreen if there is no text?

It is not mandatory. If one side has no silkscreen, you can leave that layer out and say so in the order so that nobody thinks it is missing.

Do I need F.Paste if I am only ordering bare boards?

No. The paste layer is used to make the stencil that applies solder paste during SMT assembly. Include it if you are ordering PCBA assembly.

Can I send the KiCad project instead of the Gerbers?

We ask for the ZIP with Gerber and drill files because that is the format factories work from. That way, exactly what you have checked is what gets manufactured, regardless of the KiCad version.

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.