Library › Electronic components › Connectors ·
JST PH, XH, EH and GH connectors, 2–8 pin
What are JST XH and JST PH connector dimensions? · Standard part · basis: KiCad 3D models of JST datasheet geometry; pitch PH 2.0 mm, XH 2.5 mm, EH 2.5 mm, GH 1.25 mm
Also called: jst xh, jst ph, jst gh, jst eh, xh 2.54, balance connector, jst connector sizes
Exact dimensions. Every file is drawn at true size with no tolerance added. The holes and pins that meet another part are listed below under Mating features, with the fit each joint needs; open those by your process's clearance before making the part. Mating features
- sizes
- 41 in table
Notes
- XH (2.5 mm pitch, the white 'balance lead' connector): header 2 pin is about 7.4 × 5.75 × 7 mm; each extra pin adds 2.5 mm. PH (2.0 mm): 2-pin header about 5.9 × 4.5 × 6 mm, +2.0 mm per pin.
- EH is 2.5 mm pitch like XH but lower (5.4 mm) and narrower; GH is the 1.25 mm pitch latching micro connector on drones and Pi cameras.
- Leave 8 mm above a vertical XH header for the mating plug and finger room; 10 mm for the wire exit on horizontal headers.
- Bounding boxes in the table are computed from the STEP files; they include the pins below the board.
JST PH, XH, EH and GH connectors, 2–8 pin size chart
| part | bbox l (mm) | bbox w (mm) | bbox h (mm) |
|---|---|---|---|
| eh-b2b-eh-a-1x02-p2.50mm-vertical | 9.2 | 7.5 | 3.8 |
| eh-b3b-eh-a-1x03-p2.50mm-vertical | 10.0 | 9.2 | 3.8 |
| eh-b4b-eh-a-1x04-p2.50mm-vertical | 12.5 | 9.2 | 3.8 |
| eh-b5b-eh-a-1x05-p2.50mm-vertical | 15.0 | 9.2 | 3.8 |
| eh-b6b-eh-a-1x06-p2.50mm-vertical | 17.5 | 9.2 | 3.8 |
| eh-b7b-eh-a-1x07-p2.50mm-vertical | 20.0 | 9.2 | 3.8 |
| eh-b8b-eh-a-1x08-p2.50mm-vertical | 22.5 | 9.2 | 3.8 |
| gh-bm02b-ghs-tbt-1x02-1mp-p1.25mm-vertical | 5.8 | 5.0 | 4.2 |
| gh-bm03b-ghs-tbt-1x03-1mp-p1.25mm-vertical | 7.0 | 5.0 | 4.2 |
| gh-bm04b-ghs-tbt-1x04-1mp-p1.25mm-vertical | 8.2 | 5.0 | 4.2 |
| gh-bm05b-ghs-tbt-1x05-1mp-p1.25mm-vertical | 9.5 | 5.0 | 4.2 |
| gh-bm06b-ghs-tbt-1x06-1mp-p1.25mm-vertical | 10.8 | 5.0 | 4.2 |
| ph-b2b-ph-k-1x02-p2.00mm-vertical | 9.4 | 5.9 | 4.6 |
| ph-b3b-ph-k-1x03-p2.00mm-vertical | 9.4 | 7.9 | 4.6 |
| ph-b4b-ph-k-1x04-p2.00mm-vertical | 9.9 | 9.4 | 4.6 |
| ph-b5b-ph-k-1x05-p2.00mm-vertical | 11.9 | 9.4 | 4.6 |
| ph-b6b-ph-k-1x06-p2.00mm-vertical | 13.9 | 9.4 | 4.6 |
| ph-b7b-ph-k-1x07-p2.00mm-vertical | 15.9 | 9.4 | 4.6 |
| ph-b8b-ph-k-1x08-p2.00mm-vertical | 17.9 | 9.4 | 4.6 |
| ph-s2b-ph-k-1x02-p2.00mm-horizontal | 8.3 | 7.6 | 5.9 |
| ph-s3b-ph-k-1x03-p2.00mm-horizontal | 8.3 | 7.9 | 7.6 |
| ph-s4b-ph-k-1x04-p2.00mm-horizontal | 9.9 | 8.3 | 7.6 |
| ph-s5b-ph-k-1x05-p2.00mm-horizontal | 11.9 | 8.3 | 7.6 |
| ph-s6b-ph-k-1x06-p2.00mm-horizontal | 13.9 | 8.3 | 7.6 |
| xh-b2b-xh-a-1x02-p2.50mm-vertical | 10.4 | 7.4 | 5.8 |
| xh-b3b-xh-a-1x03-p2.50mm-vertical | 10.4 | 9.9 | 5.8 |
| xh-b4b-xh-a-1x04-p2.50mm-vertical | 12.4 | 10.4 | 5.8 |
| xh-b5b-xh-a-1x05-p2.50mm-vertical | 14.9 | 10.4 | 5.8 |
| xh-b6b-xh-a-1x06-p2.50mm-vertical | 17.4 | 10.4 | 5.8 |
| xh-b7b-xh-a-1x07-p2.50mm-vertical | 19.9 | 10.4 | 5.8 |
| xh-b8b-xh-a-1x08-p2.50mm-vertical | 22.4 | 10.4 | 5.8 |
| xh-s2b-xh-a-1-1x02-p2.50mm-horizontal | 11.5 | 9.5 | 7.4 |
| xh-s2b-xh-a-1x02-p2.50mm-horizontal | 11.5 | 9.5 | 7.4 |
| xh-s3b-xh-a-1-1x03-p2.50mm-horizontal | 11.5 | 9.9 | 9.5 |
| xh-s3b-xh-a-1x03-p2.50mm-horizontal | 11.5 | 9.9 | 9.5 |
| xh-s4b-xh-a-1-1x04-p2.50mm-horizontal | 12.4 | 11.5 | 9.5 |
| xh-s4b-xh-a-1x04-p2.50mm-horizontal | 12.4 | 11.5 | 9.5 |
| xh-s5b-xh-a-1-1x05-p2.50mm-horizontal | 14.9 | 11.5 | 9.5 |
| xh-s5b-xh-a-1x05-p2.50mm-horizontal | 14.9 | 11.5 | 9.5 |
| xh-s6b-xh-a-1-1x06-p2.50mm-horizontal | 17.4 | 11.5 | 9.5 |
| xh-s6b-xh-a-1x06-p2.50mm-horizontal | 17.4 | 11.5 | 9.5 |
Mating features
Drawn at the exact size. Open press, slide, run and socket features by your process's clearance (tolerances by process); leave designed gaps and clamp fits as drawn.
| feature | exact | mates with | fit | files |
|---|---|---|---|---|
| XH header | 2.5 pitch, 2-pin about 7.4 × 5.75 × 7 | JST XH plug (wire exit up; 8 above for plug and fingers) | designed | xh-* |
| PH header | 2.0 pitch, 2-pin about 5.9 × 4.5 × 6 | JST PH plug (does not mate with XH) | designed | ph-* |
| EH header | 2.5 pitch, 5.4 tall | JST EH plug (lower and narrower than XH) | designed | eh-* |
| GH header | 1.25 pitch latching | JST GH plug (Molex PicoBlade is a different connector) | designed | gh-* |
Where the files are
Files below are rehosted from this library under its share-alike license, with its license and credits beside them. "verify" = check the license at the link before commercial use.
| KiCad | kicad-packages3D library (origin of these files) | STEP, WRL | CC BY-SA 4.0 with KiCad exception |
Free files
★ Free files 41 parts. From the KiCad library contributors, rehosted with their license and credits. CC BY-SA 4.0 (KiCad library license, with the KiCad exception). index.json
Use this part in your AI. Your AI gets the exact sizes and files straight from Xem and can design a mount, case or adapter around it. Direct downloads here are limited to one file every 10 minutes; through your AI they are unlimited.
Connect Xem to your AI (free, no account, about a minute)
https://xemstudio.com/mcp- Claude: Add to Claude
- ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
- Cursor: install with one click. VS Code: install with one click.
| eh-b2b-eh-a-1x02-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical; bbox 9.2 × 7.5 × 3.8 mm | STEP · STL |
| eh-b3b-eh-a-1x03-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B3B-EH-A_1x03_P2.50mm_Vertical; bbox 10.0 × 9.2 × 3.8 mm | STEP · STL |
| eh-b4b-eh-a-1x04-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B4B-EH-A_1x04_P2.50mm_Vertical; bbox 12.5 × 9.2 × 3.8 mm | STEP · STL |
| eh-b5b-eh-a-1x05-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B5B-EH-A_1x05_P2.50mm_Vertical; bbox 15.0 × 9.2 × 3.8 mm | STEP · STL |
| eh-b6b-eh-a-1x06-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B6B-EH-A_1x06_P2.50mm_Vertical; bbox 17.5 × 9.2 × 3.8 mm | STEP · STL |
| eh-b7b-eh-a-1x07-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B7B-EH-A_1x07_P2.50mm_Vertical; bbox 20.0 × 9.2 × 3.8 mm | STEP · STL |
| eh-b8b-eh-a-1x08-p2.50mm-vertical | KiCad Connector_JST: JST_EH_B8B-EH-A_1x08_P2.50mm_Vertical; bbox 22.5 × 9.2 × 3.8 mm | STEP · STL |
| gh-bm02b-ghs-tbt-1x02-1mp-p1.25mm-vertical | KiCad Connector_JST: JST_GH_BM02B-GHS-TBT_1x02-1MP_P1.25mm_Vertical; bbox 5.8 × 5.0 × 4.2 mm | STEP · STL |
| gh-bm03b-ghs-tbt-1x03-1mp-p1.25mm-vertical | KiCad Connector_JST: JST_GH_BM03B-GHS-TBT_1x03-1MP_P1.25mm_Vertical; bbox 7.0 × 5.0 × 4.2 mm | STEP · STL |
| gh-bm04b-ghs-tbt-1x04-1mp-p1.25mm-vertical | KiCad Connector_JST: JST_GH_BM04B-GHS-TBT_1x04-1MP_P1.25mm_Vertical; bbox 8.2 × 5.0 × 4.2 mm | STEP · STL |
| gh-bm05b-ghs-tbt-1x05-1mp-p1.25mm-vertical | KiCad Connector_JST: JST_GH_BM05B-GHS-TBT_1x05-1MP_P1.25mm_Vertical; bbox 9.5 × 5.0 × 4.2 mm | STEP · STL |
| gh-bm06b-ghs-tbt-1x06-1mp-p1.25mm-vertical | KiCad Connector_JST: JST_GH_BM06B-GHS-TBT_1x06-1MP_P1.25mm_Vertical; bbox 10.8 × 5.0 × 4.2 mm | STEP · STL |
| ph-b2b-ph-k-1x02-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical; bbox 9.4 × 5.9 × 4.6 mm | STEP · STL |
| ph-b3b-ph-k-1x03-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical; bbox 9.4 × 7.9 × 4.6 mm | STEP · STL |
| ph-b4b-ph-k-1x04-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical; bbox 9.9 × 9.4 × 4.6 mm | STEP · STL |
| ph-b5b-ph-k-1x05-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B5B-PH-K_1x05_P2.00mm_Vertical; bbox 11.9 × 9.4 × 4.6 mm | STEP · STL |
| ph-b6b-ph-k-1x06-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B6B-PH-K_1x06_P2.00mm_Vertical; bbox 13.9 × 9.4 × 4.6 mm | STEP · STL |
| ph-b7b-ph-k-1x07-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B7B-PH-K_1x07_P2.00mm_Vertical; bbox 15.9 × 9.4 × 4.6 mm | STEP · STL |
| ph-b8b-ph-k-1x08-p2.00mm-vertical | KiCad Connector_JST: JST_PH_B8B-PH-K_1x08_P2.00mm_Vertical; bbox 17.9 × 9.4 × 4.6 mm | STEP · STL |
| ph-s2b-ph-k-1x02-p2.00mm-horizontal | KiCad Connector_JST: JST_PH_S2B-PH-K_1x02_P2.00mm_Horizontal; bbox 8.3 × 7.6 × 5.9 mm | STEP · STL |
| ph-s3b-ph-k-1x03-p2.00mm-horizontal | KiCad Connector_JST: JST_PH_S3B-PH-K_1x03_P2.00mm_Horizontal; bbox 8.3 × 7.9 × 7.6 mm | STEP · STL |
| ph-s4b-ph-k-1x04-p2.00mm-horizontal | KiCad Connector_JST: JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal; bbox 9.9 × 8.3 × 7.6 mm | STEP · STL |
| ph-s5b-ph-k-1x05-p2.00mm-horizontal | KiCad Connector_JST: JST_PH_S5B-PH-K_1x05_P2.00mm_Horizontal; bbox 11.9 × 8.3 × 7.6 mm | STEP · STL |
| ph-s6b-ph-k-1x06-p2.00mm-horizontal | KiCad Connector_JST: JST_PH_S6B-PH-K_1x06_P2.00mm_Horizontal; bbox 13.9 × 8.3 × 7.6 mm | STEP · STL |
| xh-b2b-xh-a-1x02-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical; bbox 10.4 × 7.4 × 5.8 mm | STEP · STL |
| xh-b3b-xh-a-1x03-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B3B-XH-A_1x03_P2.50mm_Vertical; bbox 10.4 × 9.9 × 5.8 mm | STEP · STL |
| xh-b4b-xh-a-1x04-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical; bbox 12.4 × 10.4 × 5.8 mm | STEP · STL |
| xh-b5b-xh-a-1x05-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B5B-XH-A_1x05_P2.50mm_Vertical; bbox 14.9 × 10.4 × 5.8 mm | STEP · STL |
| xh-b6b-xh-a-1x06-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B6B-XH-A_1x06_P2.50mm_Vertical; bbox 17.4 × 10.4 × 5.8 mm | STEP · STL |
| xh-b7b-xh-a-1x07-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B7B-XH-A_1x07_P2.50mm_Vertical; bbox 19.9 × 10.4 × 5.8 mm | STEP · STL |
| xh-b8b-xh-a-1x08-p2.50mm-vertical | KiCad Connector_JST: JST_XH_B8B-XH-A_1x08_P2.50mm_Vertical; bbox 22.4 × 10.4 × 5.8 mm | STEP · STL |
| xh-s2b-xh-a-1-1x02-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S2B-XH-A-1_1x02_P2.50mm_Horizontal; bbox 11.5 × 9.5 × 7.4 mm | STEP · STL |
| xh-s2b-xh-a-1x02-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal; bbox 11.5 × 9.5 × 7.4 mm | STEP · STL |
| xh-s3b-xh-a-1-1x03-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S3B-XH-A-1_1x03_P2.50mm_Horizontal; bbox 11.5 × 9.9 × 9.5 mm | STEP · STL |
| xh-s3b-xh-a-1x03-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S3B-XH-A_1x03_P2.50mm_Horizontal; bbox 11.5 × 9.9 × 9.5 mm | STEP · STL |
| xh-s4b-xh-a-1-1x04-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S4B-XH-A-1_1x04_P2.50mm_Horizontal; bbox 12.4 × 11.5 × 9.5 mm | STEP · STL |
| xh-s4b-xh-a-1x04-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S4B-XH-A_1x04_P2.50mm_Horizontal; bbox 12.4 × 11.5 × 9.5 mm | STEP · STL |
| xh-s5b-xh-a-1-1x05-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S5B-XH-A-1_1x05_P2.50mm_Horizontal; bbox 14.9 × 11.5 × 9.5 mm | STEP · STL |
| xh-s5b-xh-a-1x05-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S5B-XH-A_1x05_P2.50mm_Horizontal; bbox 14.9 × 11.5 × 9.5 mm | STEP · STL |
| xh-s6b-xh-a-1-1x06-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S6B-XH-A-1_1x06_P2.50mm_Horizontal; bbox 17.4 × 11.5 × 9.5 mm | STEP · STL |
| xh-s6b-xh-a-1x06-p2.50mm-horizontal | KiCad Connector_JST: JST_XH_S6B-XH-A_1x06_P2.50mm_Horizontal; bbox 17.4 × 11.5 × 9.5 mm | STEP · STL |
https://xemstudio.com/mcp to Claude, ChatGPT, Cursor or any MCP client (free, no account, one minute) and it can look up exact sizes, mating fits and free STEP/STL from every chat.Plain text: sheet.txt · JSON: /api/geometry?object=jst-connectors

Fits with



Questions
What is the pitch of JST XH vs PH?
XH is 2.5 mm, PH is 2.0 mm, EH is 2.5 mm (lower profile than XH), GH is 1.25 mm, SH is 1.0 mm. XH plugs do not fit PH headers.
How tall is a JST XH header?
About 7 mm above the board for the vertical B-series header; the mated plug adds about 1 mm and the wires exit upward.
Which JST is the 1.25 mm camera and drone connector?
GH (BM-GHS series, with a latch); the non-latching 1.25 mm one many sellers call 'micro JST' is Molex PicoBlade, not JST.