Offsets › JLCPCB › QFN-20

QFN-20 rotation for JLCPCB: +270°

A 4 × 4 mm QFN with 20 pads. Common for interface and power-management ICs. The exposed thermal pad in the centre does not help orientation — pin 1 is a small dot, and JLCPCB's library draws it 270° from KiCad's.

KiCad 0° → CPL 270° on top, 90° on the bottom. Offset: +270°.

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°.

Worked rotation table

KiCad rotationCPL rotation — topCPL rotation — bottom
0°270°90°
90°0°0°
180°90°270°
270°180°180°

Read it as: if KiCad says QFN-20 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.

Pin-1 diagram

Top side — final 270°KiCad 0° → CPL 270°Bottom side — final 90°KiCad 0° → CPL 90°

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.

How the JLCPCB bottom layer works

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-20 · 20 pins · 0.5 mm pitch · body 4 × 4 mm · KiCad footprint QFN-20_4x4mm_P0.5mm. Commonly used for: USB-C controllers (STUSB4500QTR, QFN-24), MCUs (STM32F103, QFN-48), regulators and RF parts.

Verify in the JLCPCB placement preview. This offset comes from a community table (JLCKicadTools / Fabrication Toolkit), not from JLCPCB's library for your exact part number. If the preview's pin-1 mark disagrees with this page, trust the preview — it is final.

Fix your whole CPL file

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.

Drop a .pos or .csv file here, or click to choose one.


Related offsets