All articles

    Gerber, BOM and Pick-and-Place Files: What to Send the PCB Factory

    The files a factory needs to make your board and fit the parts: Gerber files for each layer, the drill file, the BOM, the pick-and-place (CPL) file, how to export them from KiCad, checking them in a Gerber viewer before sending, and the mistakes that get orders rejected.

    5 min read

    You've finished designing your board in KiCad or another tool, and it's time for manufacturing. The factory doesn't open your design file. It needs standard files describing every layer and every hole, and if it's assembling the parts too, it needs the parts list and their positions. If one file is missing or wrong, the board arrives wrong or the order comes back.

    From the design tool you export Gerber files for the layers and a drill file for fabrication, plus the BOM and CPL for assembly
    From the design tool you export Gerber files for the layers and a drill file for fabrication, plus the BOM and CPL for assembly

    Gerber files: a picture of each layer

    Gerber is the format every factory understands. Each file describes one layer like a picture: where there's copper and where there isn't.

    For a two-layer board you'll get something like this:

    FileLayerWhat it defines
    F_CuTop copperTracks and pads
    B_CuBottom copperTracks and pads
    F_Mask / B_MaskSolder mask (the green colour)Areas left open for soldering
    F_Silkscreen / B_SilkscreenWhite legendPart names and markings
    F_Paste / B_PastePasteStencil openings for SMD parts
    Edge_CutsBoard outlineThe outer shape and cut-outs

    A 4-layer board also has In1_Cu and In2_Cu for the inner layers. Read 2-layer or 4-layer board.

    The drill file (Excellon)

    A separate file containing every hole: its position and size. It's usually split into:

    • PTH: plated-through holes (for THT parts and vias).
    • NPTH: non-plated holes (mounting holes, for example).

    Forget the drill file and the board arrives with no holes. Read about vias in Vias in a PCB.

    If the factory is assembling the parts (PCBA)

    The BOM (bill of materials)

    The parts list: every part, its value, package, quantity and, most importantly, its part number from the manufacturer or the factory's library.

    CommentDesignatorFootprintPart number
    10kR1, R2, R50603(the factory's part number)
    100nFC1, C30603(the factory's part number)
    ESP32-WROOM-32EU1Module(the factory's part number)

    The pick-and-place file (CPL / centroid)

    Where each part sits on the board: X and Y coordinates, rotation, and side (top or bottom). The assembly machine uses it to put every part in place.

    The most common problem here is rotation. Every tool and factory has a different zero orientation for parts, so a diode or chip can end up fitted backwards. The factory shows you a preview before you confirm: check the orientation of every polarised part (diodes, electrolytic capacitors, chips, LEDs).

    Exporting them from KiCad

    1. In the PCB editor: File → Plot.
    2. Choose Gerber, the layers you need, and a dedicated output folder.
    3. Click Plot, then Generate Drill Files and choose Excellon.
    4. For assembly: File → Fabrication Outputs → Component Placement for the CPL file, and the BOM from the schematic editor.
    5. Zip all the Gerber and drill files into one ZIP; that's what you upload to the factory's website.

    Many factories offer a plugin for KiCad that exports every file in the format they want with one click. If you're new to KiCad, start with first steps in KiCad.

    Check before you send

    Never send files you haven't looked at. Open the ZIP in a Gerber viewer (KiCad has one, and factory websites show a preview after upload) and check:

    • The board outline is closed and the right size.
    • All layers are present and line up.
    • The holes are where they should be.
    • The legend isn't printed over pads.
    • No tracks are too close to the edge or to each other.

    And run the DRC (design rules check) in your tool with the factory's rules (minimum track width, minimum clearance, smallest hole). Read the most common PCB design mistakes.

    Mistakes that get orders rejected

    1. Edge_Cuts not closed, or two lines on top of each other.
    2. A forgotten drill file, or the wrong units (mm vs inches).
    3. A BOM with parts not in the factory's stock, or a package different from the footprint.
    4. Wrong rotations in the CPL file.
    5. A wrong footprint for a part (for example a SOT-23 with a different pin order).
    6. Solder mask covering pads that need soldering.

    Once the files are ready, read ordering PCB manufacturing to choose the specifications (thickness, colour, surface finish). If you'd like someone to design the board and prepare the manufacturing files, see our PCB design and manufacturing service.

    FAQ

    Should I send the KiCad file itself to the factory? No, factories ask for Gerber and drill files. Some accept KiCad files, but it's safer to send Gerbers you've checked yourself.

    Does the paste layer matter if I'm soldering by hand? Not for the board itself, but you need it if you're ordering a stencil for solder paste and hot-air soldering.

    Should the factory assemble the board, or should I solder it? For boards with many tiny parts (0402 or QFN chips), factory assembly is faster and more reliable. For simple prototypes with 0805 or THT parts, hand soldering is fine; read hand-soldering SMD parts.

    Circuits Nerd
    © 2026 Circuits Nerd. All rights reserved.