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

partbbox l (mm)bbox w (mm)bbox h (mm)
eh-b2b-eh-a-1x02-p2.50mm-vertical9.27.53.8
eh-b3b-eh-a-1x03-p2.50mm-vertical10.09.23.8
eh-b4b-eh-a-1x04-p2.50mm-vertical12.59.23.8
eh-b5b-eh-a-1x05-p2.50mm-vertical15.09.23.8
eh-b6b-eh-a-1x06-p2.50mm-vertical17.59.23.8
eh-b7b-eh-a-1x07-p2.50mm-vertical20.09.23.8
eh-b8b-eh-a-1x08-p2.50mm-vertical22.59.23.8
gh-bm02b-ghs-tbt-1x02-1mp-p1.25mm-vertical5.85.04.2
gh-bm03b-ghs-tbt-1x03-1mp-p1.25mm-vertical7.05.04.2
gh-bm04b-ghs-tbt-1x04-1mp-p1.25mm-vertical8.25.04.2
gh-bm05b-ghs-tbt-1x05-1mp-p1.25mm-vertical9.55.04.2
gh-bm06b-ghs-tbt-1x06-1mp-p1.25mm-vertical10.85.04.2
ph-b2b-ph-k-1x02-p2.00mm-vertical9.45.94.6
ph-b3b-ph-k-1x03-p2.00mm-vertical9.47.94.6
ph-b4b-ph-k-1x04-p2.00mm-vertical9.99.44.6
ph-b5b-ph-k-1x05-p2.00mm-vertical11.99.44.6
ph-b6b-ph-k-1x06-p2.00mm-vertical13.99.44.6
ph-b7b-ph-k-1x07-p2.00mm-vertical15.99.44.6
ph-b8b-ph-k-1x08-p2.00mm-vertical17.99.44.6
ph-s2b-ph-k-1x02-p2.00mm-horizontal8.37.65.9
ph-s3b-ph-k-1x03-p2.00mm-horizontal8.37.97.6
ph-s4b-ph-k-1x04-p2.00mm-horizontal9.98.37.6
ph-s5b-ph-k-1x05-p2.00mm-horizontal11.98.37.6
ph-s6b-ph-k-1x06-p2.00mm-horizontal13.98.37.6
xh-b2b-xh-a-1x02-p2.50mm-vertical10.47.45.8
xh-b3b-xh-a-1x03-p2.50mm-vertical10.49.95.8
xh-b4b-xh-a-1x04-p2.50mm-vertical12.410.45.8
xh-b5b-xh-a-1x05-p2.50mm-vertical14.910.45.8
xh-b6b-xh-a-1x06-p2.50mm-vertical17.410.45.8
xh-b7b-xh-a-1x07-p2.50mm-vertical19.910.45.8
xh-b8b-xh-a-1x08-p2.50mm-vertical22.410.45.8
xh-s2b-xh-a-1-1x02-p2.50mm-horizontal11.59.57.4
xh-s2b-xh-a-1x02-p2.50mm-horizontal11.59.57.4
xh-s3b-xh-a-1-1x03-p2.50mm-horizontal11.59.99.5
xh-s3b-xh-a-1x03-p2.50mm-horizontal11.59.99.5
xh-s4b-xh-a-1-1x04-p2.50mm-horizontal12.411.59.5
xh-s4b-xh-a-1x04-p2.50mm-horizontal12.411.59.5
xh-s5b-xh-a-1-1x05-p2.50mm-horizontal14.911.59.5
xh-s5b-xh-a-1x05-p2.50mm-horizontal14.911.59.5
xh-s6b-xh-a-1-1x06-p2.50mm-horizontal17.411.59.5
xh-s6b-xh-a-1x06-p2.50mm-horizontal17.411.59.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.

featureexactmates withfitfiles
XH header2.5 pitch, 2-pin about 7.4 × 5.75 × 7JST XH plug (wire exit up; 8 above for plug and fingers)designedxh-*
PH header2.0 pitch, 2-pin about 5.9 × 4.5 × 6JST PH plug (does not mate with XH)designedph-*
EH header2.5 pitch, 5.4 tallJST EH plug (lower and narrower than XH)designedeh-*
GH header1.25 pitch latchingJST GH plug (Molex PicoBlade is a different connector)designedgh-*

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.

KiCadkicad-packages3D library (origin of these files)STEP, WRLCC 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
  1. Claude: Add to Claude
  2. ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
  3. Cursor: install with one click. VS Code: install with one click.
Other apps and full steps
eh-b2b-eh-a-1x02-p2.50mm-verticalKiCad Connector_JST: JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical; bbox 9.2 × 7.5 × 3.8 mmSTEP · STL
eh-b3b-eh-a-1x03-p2.50mm-verticalKiCad Connector_JST: JST_EH_B3B-EH-A_1x03_P2.50mm_Vertical; bbox 10.0 × 9.2 × 3.8 mmSTEP · STL
eh-b4b-eh-a-1x04-p2.50mm-verticalKiCad Connector_JST: JST_EH_B4B-EH-A_1x04_P2.50mm_Vertical; bbox 12.5 × 9.2 × 3.8 mmSTEP · STL
eh-b5b-eh-a-1x05-p2.50mm-verticalKiCad Connector_JST: JST_EH_B5B-EH-A_1x05_P2.50mm_Vertical; bbox 15.0 × 9.2 × 3.8 mmSTEP · STL
eh-b6b-eh-a-1x06-p2.50mm-verticalKiCad Connector_JST: JST_EH_B6B-EH-A_1x06_P2.50mm_Vertical; bbox 17.5 × 9.2 × 3.8 mmSTEP · STL
eh-b7b-eh-a-1x07-p2.50mm-verticalKiCad Connector_JST: JST_EH_B7B-EH-A_1x07_P2.50mm_Vertical; bbox 20.0 × 9.2 × 3.8 mmSTEP · STL
eh-b8b-eh-a-1x08-p2.50mm-verticalKiCad Connector_JST: JST_EH_B8B-EH-A_1x08_P2.50mm_Vertical; bbox 22.5 × 9.2 × 3.8 mmSTEP · STL
gh-bm02b-ghs-tbt-1x02-1mp-p1.25mm-verticalKiCad Connector_JST: JST_GH_BM02B-GHS-TBT_1x02-1MP_P1.25mm_Vertical; bbox 5.8 × 5.0 × 4.2 mmSTEP · STL
gh-bm03b-ghs-tbt-1x03-1mp-p1.25mm-verticalKiCad Connector_JST: JST_GH_BM03B-GHS-TBT_1x03-1MP_P1.25mm_Vertical; bbox 7.0 × 5.0 × 4.2 mmSTEP · STL
gh-bm04b-ghs-tbt-1x04-1mp-p1.25mm-verticalKiCad Connector_JST: JST_GH_BM04B-GHS-TBT_1x04-1MP_P1.25mm_Vertical; bbox 8.2 × 5.0 × 4.2 mmSTEP · STL
gh-bm05b-ghs-tbt-1x05-1mp-p1.25mm-verticalKiCad Connector_JST: JST_GH_BM05B-GHS-TBT_1x05-1MP_P1.25mm_Vertical; bbox 9.5 × 5.0 × 4.2 mmSTEP · STL
gh-bm06b-ghs-tbt-1x06-1mp-p1.25mm-verticalKiCad Connector_JST: JST_GH_BM06B-GHS-TBT_1x06-1MP_P1.25mm_Vertical; bbox 10.8 × 5.0 × 4.2 mmSTEP · STL
ph-b2b-ph-k-1x02-p2.00mm-verticalKiCad Connector_JST: JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical; bbox 9.4 × 5.9 × 4.6 mmSTEP · STL
ph-b3b-ph-k-1x03-p2.00mm-verticalKiCad Connector_JST: JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical; bbox 9.4 × 7.9 × 4.6 mmSTEP · STL
ph-b4b-ph-k-1x04-p2.00mm-verticalKiCad Connector_JST: JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical; bbox 9.9 × 9.4 × 4.6 mmSTEP · STL
ph-b5b-ph-k-1x05-p2.00mm-verticalKiCad Connector_JST: JST_PH_B5B-PH-K_1x05_P2.00mm_Vertical; bbox 11.9 × 9.4 × 4.6 mmSTEP · STL
ph-b6b-ph-k-1x06-p2.00mm-verticalKiCad Connector_JST: JST_PH_B6B-PH-K_1x06_P2.00mm_Vertical; bbox 13.9 × 9.4 × 4.6 mmSTEP · STL
ph-b7b-ph-k-1x07-p2.00mm-verticalKiCad Connector_JST: JST_PH_B7B-PH-K_1x07_P2.00mm_Vertical; bbox 15.9 × 9.4 × 4.6 mmSTEP · STL
ph-b8b-ph-k-1x08-p2.00mm-verticalKiCad Connector_JST: JST_PH_B8B-PH-K_1x08_P2.00mm_Vertical; bbox 17.9 × 9.4 × 4.6 mmSTEP · STL
ph-s2b-ph-k-1x02-p2.00mm-horizontalKiCad Connector_JST: JST_PH_S2B-PH-K_1x02_P2.00mm_Horizontal; bbox 8.3 × 7.6 × 5.9 mmSTEP · STL
ph-s3b-ph-k-1x03-p2.00mm-horizontalKiCad Connector_JST: JST_PH_S3B-PH-K_1x03_P2.00mm_Horizontal; bbox 8.3 × 7.9 × 7.6 mmSTEP · STL
ph-s4b-ph-k-1x04-p2.00mm-horizontalKiCad Connector_JST: JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal; bbox 9.9 × 8.3 × 7.6 mmSTEP · STL
ph-s5b-ph-k-1x05-p2.00mm-horizontalKiCad Connector_JST: JST_PH_S5B-PH-K_1x05_P2.00mm_Horizontal; bbox 11.9 × 8.3 × 7.6 mmSTEP · STL
ph-s6b-ph-k-1x06-p2.00mm-horizontalKiCad Connector_JST: JST_PH_S6B-PH-K_1x06_P2.00mm_Horizontal; bbox 13.9 × 8.3 × 7.6 mmSTEP · STL
xh-b2b-xh-a-1x02-p2.50mm-verticalKiCad Connector_JST: JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical; bbox 10.4 × 7.4 × 5.8 mmSTEP · STL
xh-b3b-xh-a-1x03-p2.50mm-verticalKiCad Connector_JST: JST_XH_B3B-XH-A_1x03_P2.50mm_Vertical; bbox 10.4 × 9.9 × 5.8 mmSTEP · STL
xh-b4b-xh-a-1x04-p2.50mm-verticalKiCad Connector_JST: JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical; bbox 12.4 × 10.4 × 5.8 mmSTEP · STL
xh-b5b-xh-a-1x05-p2.50mm-verticalKiCad Connector_JST: JST_XH_B5B-XH-A_1x05_P2.50mm_Vertical; bbox 14.9 × 10.4 × 5.8 mmSTEP · STL
xh-b6b-xh-a-1x06-p2.50mm-verticalKiCad Connector_JST: JST_XH_B6B-XH-A_1x06_P2.50mm_Vertical; bbox 17.4 × 10.4 × 5.8 mmSTEP · STL
xh-b7b-xh-a-1x07-p2.50mm-verticalKiCad Connector_JST: JST_XH_B7B-XH-A_1x07_P2.50mm_Vertical; bbox 19.9 × 10.4 × 5.8 mmSTEP · STL
xh-b8b-xh-a-1x08-p2.50mm-verticalKiCad Connector_JST: JST_XH_B8B-XH-A_1x08_P2.50mm_Vertical; bbox 22.4 × 10.4 × 5.8 mmSTEP · STL
xh-s2b-xh-a-1-1x02-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S2B-XH-A-1_1x02_P2.50mm_Horizontal; bbox 11.5 × 9.5 × 7.4 mmSTEP · STL
xh-s2b-xh-a-1x02-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal; bbox 11.5 × 9.5 × 7.4 mmSTEP · STL
xh-s3b-xh-a-1-1x03-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S3B-XH-A-1_1x03_P2.50mm_Horizontal; bbox 11.5 × 9.9 × 9.5 mmSTEP · STL
xh-s3b-xh-a-1x03-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S3B-XH-A_1x03_P2.50mm_Horizontal; bbox 11.5 × 9.9 × 9.5 mmSTEP · STL
xh-s4b-xh-a-1-1x04-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S4B-XH-A-1_1x04_P2.50mm_Horizontal; bbox 12.4 × 11.5 × 9.5 mmSTEP · STL
xh-s4b-xh-a-1x04-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S4B-XH-A_1x04_P2.50mm_Horizontal; bbox 12.4 × 11.5 × 9.5 mmSTEP · STL
xh-s5b-xh-a-1-1x05-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S5B-XH-A-1_1x05_P2.50mm_Horizontal; bbox 14.9 × 11.5 × 9.5 mmSTEP · STL
xh-s5b-xh-a-1x05-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S5B-XH-A_1x05_P2.50mm_Horizontal; bbox 14.9 × 11.5 × 9.5 mmSTEP · STL
xh-s6b-xh-a-1-1x06-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S6B-XH-A-1_1x06_P2.50mm_Horizontal; bbox 17.4 × 11.5 × 9.5 mmSTEP · STL
xh-s6b-xh-a-1x06-p2.50mm-horizontalKiCad Connector_JST: JST_XH_S6B-XH-A_1x06_P2.50mm_Horizontal; bbox 17.4 × 11.5 × 9.5 mmSTEP · STL
Let your AI pull this. Add 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.
Set it up →

Plain text: sheet.txt · JSON: /api/geometry?object=jst-connectors

JST PH, XH, EH and GH connectors, 2–8 pin, isometric render of a generated part
Render of xh-b4b-xh-a-1x04-p2.50mm-vertical from the free STEP; not to scale.

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.