Offsets › JLCPCB › QFN-40
A 6 × 6 mm QFN with 40 pads, used for larger MCUs and application processors. Ten pads per side. The 270° correction applies — and at this pin count a 90° error can put power on a signal pin, so the preview check is not optional.
The offset comes from the community rotation table rule ^QFN-.*. QFN parts have no leads — the pads are under the package, so a wrong rotation is invisible until the board fails to boot. KiCad's QFN pin-1 marking and JLCPCB's library orientation differ by 270° for the sizes in the community table. This is the footprint family where the correction matters most, because you cannot see the mistake by eye after reflow. A real order caught a QFN-24 (STUSB4500QTR) at 180° in the CPL when JLCPCB's library expected 270°.
| KiCad rotation | CPL rotation — top | CPL rotation — bottom |
|---|---|---|
| 0° | 270° | 90° |
| 90° | 0° | 0° |
| 180° | 90° | 270° |
| 270° | 180° | 180° |
Read it as: if KiCad says QFN-40 is at 0°, write 270° in the CPL for a top-side part and 90° for a bottom-side part. Top: (rot + 270) % 360. Bottom (JLCPCB): (180 − rot + 270) % 360.
The dot is pin 1. The arrow is the direction pin 1 points after the offset is applied, for a part KiCad drew at 0°. Top is cyan, bottom is amber. The diagram is schematic — it shows direction, not the package outline to scale.
For JLCPCB, the bottom-side formula is (180 − rot + delta) % 360 — a bottom part is seen from below, so its rotation is mirrored before the delta is added. Mid Y is also negated (KiCad Y points down, JLCPCB Y points up) and Mid X is unchanged (bottomMirrorX is false). The (360 − rot + delta) formula you will see in some write-ups is wrong: it agrees at 0° and 180° but rotates every 90°/270° part by 180°.
Package: QFN-40 · 40 pins · 0.5 mm pitch · body 6 × 6 mm · KiCad footprint QFN-40_6x6mm_P0.5mm. Commonly used for: USB-C controllers (STUSB4500QTR, QFN-24), MCUs (STM32F103, QFN-48), regulators and RF parts.
Drop your KiCad .pos or Altium / Eagle .csv here — the normalizer applies this offset (and every other footprint's) and returns a corrected CPL for JLCPCB.
.pos or .csv file here, or click to choose one.