KiCad to JLCPCB: how to export, upload and order your PCB
Plot Gerbers with Protel extensions and generate an Excellon drill file in millimeters. Zip the folder and drop it on JLCPCB's quote page. That's the whole bare-board order. Assembly adds a BOM with LCSC part numbers and a CPL file, and that's where the rotation surprises are.
Menu names below are from KiCad 10 (10.0.8 is the latest release at the time of writing). JLCPCB's own step-by-step guide was written for KiCad 9. The dialogs are close enough that it still applies.
Before you export: set JLCPCB's limits in KiCad
Open File → Board Setup → Design Rules → Constraints. Enter the minimums for the process you'll order: track width, clearance, via hole and diameter, annular ring (the copper around a hole), hole to hole and copper to edge. Then run DRC (the design rule check).
Exporting a board that breaks the fab's rules just moves the error to their review queue. There, it costs a day.
Fill zones too (press B, or Edit → Fill All Zones). An unfilled ground pour (a large copper area tied to ground) plots as nothing.
1. Plot the Gerbers
- In the PCB Editor, choose File → Fabrication Outputs → Gerbers (.gbr). Set an output folder such as
gerbers/. - Tick the layers: F.Cu, B.Cu (plus In1.Cu, In2.Cu on a four-layer board), F.Silkscreen, B.Silkscreen, F.Mask, B.Mask, F.Paste, B.Paste and Edge.Cuts. The paste layers only matter if you're ordering a stencil or assembly. But they don't hurt.
- Tick Use Protel filename extensions. JLCPCB's guide asks for it.
- Leave Use extended X2 format and Include netlist attributes on. That is what JLCPCB's KiCad 9 guide shows.
- Tick Subtract soldermask from silkscreen. Then the plot clips legend (silkscreen text) off pads, where it can't print anyway.
- Press Plot.
2. Generate the drill file
Press Generate Drill Files in the same dialog and set:
- Format: Excellon
- Drill units: Millimeters, zeros format: Decimal
- Drill origin: Absolute
- Oval holes drill mode: use alternate drill mode, as JLCPCB's guide shows
- PTH and NPTH (plated and non-plated holes) in a single file. This is how JLCPCB's guide sets it up
Decimal format and explicit millimeters are the two that matter most. They remove the guesswork about zero suppression (leaving zeros out of numbers). That guesswork can scatter holes across a misread board. Press Generate, then zip the whole output folder.
3. Look at the files before uploading
Open the ZIP in a viewer and check it the way the fab will read it. In Gerber3D the files are read in your browser. You can run the DFM (design for manufacturing) checks there against a draft JLCPCB profile.
Check the layer count, a closed outline, holes centered in pads, mask openings on every pad, and silkscreen off the pads. The pre-order checklist goes through each one.
4. Upload and pick the options
On JLCPCB's quote page, upload the ZIP. It reads the board size and layer count from the files. If either is wrong, your outline or a layer is wrong, so stop and look. Most defaults are sensible. These are the ones worth a decision:
- PCB thickness: 1.6 mm is the standard. It is also the safe choice for connectors and edge-mounted parts. Thinner options go down to 0.4 mm, with finish restrictions on the thinnest.
- Solder mask color: green is the standard option and the fastest. Other colors can lengthen lead time or limit the finish.
- Surface finish: HASL (leaded or lead-free), OSP or ENIG. These are the coatings on the bare copper pads. JLCPCB made OSP free in mid-2026 and turned ENIG into a paid upgrade. ENIG is still the better choice for fine-pitch parts because it's flat. See HASL vs ENIG vs OSP.
- Mark on PCB: JLCPCB stopped adding its order number to boards in May 2026. Guides that tell you to add
JLCJLCJLCJLCto the silkscreen are out of date. The option now covers things like a serial number or 2D barcode. It defaults to no mark.
Prices and options on this page change often. So treat the above as a guide to what to look at, not to what it will say.
5. Assembly: BOM and CPL
For assembled boards, JLCPCB wants two more files.
The BOM (bill of materials) needs at least Comment (the value, such as 10k), Designator, Footprint and the LCSC part number. Add an LCSC field to each symbol in the Schematic Editor. Fill in the C-number from JLCPCB's parts library.
Parts in its Basic library are already loaded on the machines. Extended parts add a feeder-loading fee, which JLCPCB's FAQ puts at $3 per extended part. Picking Basic parts for passives keeps small runs cheap.
The CPL (component placement list) needs Designator, Mid X, Mid Y, Layer and Rotation, in millimeters. KiCad's own placement export (File → Fabrication Outputs → Component Placement) has the right data under different headers. So you'd rename Ref, PosX, PosY, Rot and Side. The pick and place file format post covers the columns in detail.
An easier way is to install the Fabrication Toolkit plugin by bennymeg from KiCad's Plugin and Content Manager. One click writes the Gerbers, drill file, BOM and CPL in JLCPCB's format. Bouni's kicad-jlcpcb-tools is the other popular choice. It also adds a search of JLCPCB's parts database inside KiCad.
6. Fix rotations, then pay
After you upload the BOM and CPL, JLCPCB shows each part on the board. Go through it. Some parts will be turned 90° or 180°, because KiCad's footprint zero (its starting orientation) and JLCPCB's part data disagree. Resistors don't care, but diodes, LEDs, ICs and polarized capacitors very much do.
You can rotate parts in the preview. But fix it in the design, so the next order is right too. The Fabrication Toolkit reads an FT Rotation Offset field on the footprint (degrees, positive counterclockwise) and applies it to the CPL. Update the PCB from the schematic after editing fields, then generate the files again.
Check the bottom side separately. Bottom-side rotation and mirroring conventions have changed between KiCad versions and at JLCPCB itself. So trust the preview, not the numbers.
Mistakes that show up at this stage
- Edge.Cuts is not ticked in the plot dialog. So the files have no outline, and the quote page can't size the board properly.
- A connector or switch is missing from the preview, because through-hole parts were left out of the CPL.
- Do-not-place parts are still in the BOM, so JLCPCB tries to source and place them.
- An LCSC number points at the wrong package, such as a 0603 code on an 0805 footprint. The preview shows the part hanging over its pads.
Then pay. Keep the exact ZIP, BOM and CPL you uploaded with the order. That way, a reorder or a question from engineering refers to the same files.
Questions
Do I need Protel filename extensions for JLCPCB?
JLCPCB's own KiCad guide asks for them, so tick the option. KiCad's default .gbr names with X2 attributes are readable too, but following the fab's guide removes one thing to argue about.
Should PTH and NPTH holes be in one drill file for JLCPCB?
JLCPCB's KiCad guide shows them merged into a single file. Separate files are fine at most fabs; if you send two, check that both appear in the order preview.
Will JLCPCB print an order number on my board?
Not on new orders since May 2026, according to JLCPCB's help center. Older advice about adding JLCJLCJLCJLC to the silkscreen is out of date.
What is an LCSC part number?
The catalog number (C followed by digits) JLCPCB uses to pick parts from its stock for assembly. Put it in a field on each symbol so the BOM carries it.