How to export Gerber and drill files from LibrePCB
The layers, drill files and settings a PCB manufacturer needs, step by step in LibrePCB, and what to check before you upload.
What your set must contain
- Copper layers: top, bottom and every inner layer of a multilayer board.
- Solder mask: top and bottom.
- Silkscreen (legend): top and bottom.
- The board outline as a closed shape, with cut-outs and slots included.
- Drill files in Excellon format, with plated and non-plated holes in separate files.
- Everything together in one ZIP archive. Paste layers and assembly files are only needed for stencils and assembly.
Step by step in LibrePCB
Checked against the LibrePCB 2.1 user manual (LibrePCB 2.1.1, June 2026). Menu names are quoted as in the English interface of the program.
- In the schematic or board editor open Project → Output Jobs… (shortcut F11).
- Add the preset Gerber/Excellon. Use Gerber/Excellon (Protel style) only if you want extensions like .GTL.
- Check the fields of the job: Outlines, Top/Bottom Copper, Inner Copper (with {{CU_Layer}} in the file name), Top/Bottom Stopmask, Top/Bottom Silkscreen (only generated if enabled in the board setup), Drills NPTH and Drills PTH.
- Leave Merge PTH and NPTH drills into one file unticked, and the drilled slot command (G85) off. Solder paste is only for a stencil.
- Add an Archive job to pack the files into one ZIP archive, or zip the output folder yourself.
- Run the job. The files go to the folder output/VERSION of the project. Raise the version number in the project setup (F6) first, because existing files are overwritten without asking.
Drill files (Excellon)
- The drill files come out of the same job: Drills PTH (plated holes) and Drills NPTH (non-plated holes).
- Keep them as two separate files. Merging is only for manufacturers who cannot handle separate files.
- Put the drill files together with the Gerber files in the ZIP archive.
Check the set before you upload
- Open every file in a viewer (see how to open and check Gerber files).
- Confirm that the outline is closed and that the drill holes sit on the pads.
- Make sure the Gerber and drill files use the same units and the same origin.
- Compare the number of copper layers with what you want to order.
Upload the set to the calculator
Put all Gerber and drill files in one ZIP archive and upload it in the price calculator. The calculator reads the layers, shows a preview of the board and fills in the size and the number of layers. Our engineers still check every file before production. The rules for the files are in the Gerber guide and in the drill file guide.
Common mistakes in LibrePCB
- No {{CU_Layer}} in the inner copper file name: the inner layers overwrite each other.
- Silkscreen not enabled in the board setup: no silkscreen file is generated.
- PTH and NPTH merged into one drill file.
- Running the job without raising the version: the older output is replaced.
Frequently asked questions
Is the .lppz file what I upload?
No. The .lppz file is the whole LibrePCB project in one archive. Upload the Gerber and Excellon files that the output job writes.
Where is the ZIP archive?
If you added an Archive job, in the output folder of the project. Otherwise zip the output/VERSION folder yourself.
Can I send the .lppz project file instead of Gerber files?
The calculator cannot read .lppz files, so it cannot show a preview or fill in the settings. Export the Gerber and drill files as described above and upload them in one ZIP archive. You can still send the request with the native file: our team will then contact you.
Which units and format should I use?
Gerber files in RS-274X format and Excellon drill files, both in millimetres and with the same origin. Plated and non-plated holes go into separate drill files.
Browse the questions and answers →
Upload your files and see the price
Add your Gerber files in the calculator: you see the board, the options and an instant price in euros.
Upload files in the calculator →Ask an engineer
Not sure what applies to your board? Describe it in a few lines and our engineers will advise you.