Offsets › JLCPCB › SOT-223
The SOT-223 is a power package with a large tab, usually pin 2 — the output of regulators like the AMS1117-3.3. The tab makes the orientation obvious on the board, but the CPL still needs the 180° delta: KiCad and JLCPCB draw the tab on opposite sides, and swapping input and output kills the regulator.
The offset comes from the community rotation table rule ^SOT-223.*. SOT-223 is a 3-pin power package with a large tab (usually pin 2, often the output of a regulator such as the AMS1117-3.3). The tab makes the orientation obvious on the board, but the CPL still needs the 180° delta — KiCad and JLCPCB draw the tab on opposite sides. Get it wrong and the regulator's input and output swap.
| KiCad rotation | CPL rotation — top | CPL rotation — bottom |
|---|---|---|
| 0° | 180° | 0° |
| 90° | 270° | 270° |
| 180° | 0° | 180° |
| 270° | 90° | 90° |
Read it as: if KiCad says SOT-223 is at 0°, write 180° in the CPL for a top-side part and 0° for a bottom-side part. Top: (rot + 180) % 360. Bottom (JLCPCB): (180 − rot + 180) % 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°. The left diagram is the top side, the right diagram is the bottom side. 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: SOT-223 · 3 pins · 2.3 mm pitch · body 6.5 × 3.5 mm + tab · KiCad footprint SOT-223-3_TabPin2. Commonly used for: Voltage regulators (AMS1117-3.3) and power transistors.
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.