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:
- 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.
- 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:
| KiCad layer | What it is | When? |
|---|---|---|
| F.Cu / B.Cu | Top and bottom copper | Always |
| In1.Cu, In2.Cu… | Inner copper | Boards with 4 or more layers |
| F.Mask / B.Mask | Solder mask | Always |
| F.Silkscreen / B.Silkscreen (F.SilkS / B.SilkS) | Silkscreen | If that side has text or markings |
| F.Paste / B.Paste | Solder paste | If you are ordering PCBA assembly |
| Edge.Cuts | Board outline | Always, 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.
Step 2: recommended options
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
| Mistake | Symptom | Fix |
|---|---|---|
| Edge.Cuts missing | The factory does not know where to cut | Tick Edge.Cuts and check the outline is closed |
| Different drill units | Holes offset or at the wrong scale | Gerber and drill in mm, with the same origin |
| Unfilled zones | Ground planes missing from the Gerber | Fill zones (B) and plot again |
| Files from another revision | Layers that do not match | Clean output folder for every export |
| Paste layer missing | The stencil cannot be made | Tick 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.