How to export Gerbers from KiCad and view them in 3D

Updated

KiCad's PCB Editor writes everything a fabricator and an assembler need: Gerbers with X2 attributes, drill files, a job file and a placement file. Here is how to export them and check the result before ordering.

1. Plot the Gerbers

  1. In the PCB Editor, choose File → Fabrication Outputs → Gerbers (.gbr)….
  2. Set Plot format to Gerber and choose an output folder.
  3. Tick the layers the board uses: F.Cu, B.Cu and any inner layers, F.Paste, B.Paste, F.Silkscreen, B.Silkscreen, F.Mask, B.Mask and Edge.Cuts.
  4. Keep Use extended X2 format on if your fabricator accepts it, and Generate Gerber job file on.
  5. Press Plot.

2. Generate the drill files

  1. In the same dialog, press Generate Drill Files….
  2. Choose the Excellon format, millimetres, and decimal format.
  3. Keep plated and non-plated holes in separate files (KiCad's default) unless your fabricator asks for one merged file.
  4. Press Generate Drill File.

3. For assembly: the placement file

Choose File → Fabrication Outputs → Component Placement (.pos)…, set the units to millimetres and the format to ASCII or CSV, and generate it. Export the BOM from the Schematic Editor if your assembler needs one.

4. Check the board in 3D

  1. Zip the output folder, or select all its files.
  2. Open them in the Gerber3D viewer. They are read in your browser and never uploaded.
  3. Pull the stack apart to check every layer is there and named right, look at the holes, and run the design checks against your fabricator's profile.

For a full checklist, see how to check Gerber files before ordering. Menu names here are those of recent KiCad versions; older ones are similar.

Questions

Should I use Protel filename extensions?

Either works in Gerber3D, which reads the layer from KiCad's X2 attributes and file names. Some fabricators prefer Protel extensions (.GTL, .GBL…); check what yours asks for.

Do I need the job file?

It is optional but useful: it records the stack-up, thickness and finish, which Gerber3D uses to draw the board at its real thickness.