JST Connector Types: How to Choose XH, PH, SH or GH and Source the Full Mating Set

A JST connector is a small wire-to-board plug that joins a cable to a circuit board. This guide compares the four JST connector types engineers reach for most: XH, PH, SH and GH.

What Are JST Connector Types?

JST, a Japanese manufacturer originally named Japan Solderless Terminal, makes dozens of connector families, and each family is called a series. The series name, such as XH or PH, tells you the shape of the plastic housing and the pitch, which is the distance from the center of one pin to the center of the next.

The four series described in this guide cover most small electronics work. XH and PH show up on battery packs, cooling fans and hobby boards. SH and GH are tiny devices used on sensor modules, drone flight controllers and compact devices where board space is tight.

One warning before you start the part selection process: people often call any small white board connector a “JST,” regardless of which company made it. When you specify or buy one, name the manufacturer, the exact series and – ideally – the pitch.

Next step: Search JST connectors on Findchips

Why JST Connectors Are Trending in Design Activity

Supplyframe Intelligence tracks which parts engineers look up while designing products. In September 2026, connectors were the largest product class in the top-100 design-activity list, holding 23 slots. Eleven of those were JST wire-to-board parts, and nine of the 11 experienced rising design activity compared to August.

All four series in this guide appear on the list, from XH headers such as B2B-XH-A to GH headers like SM04B-GHS-TB. They sit alongside popular prototyping parts like ESP32-S3 Wi-Fi modules and STM32 microcontrollers, the small processors that run most embedded devices. These parts are used in a wide range of compact, sensor-heavy designs.

Design interest tends to come before purchasing. For buyers, that makes the design phase a good time to line up the full set of mating parts, not just the board header.

Next step: Search JST XH headers on Findchips

How Do XH, PH, SH and GH Compare?

The table below compares the four series using JST’s published ratings. Current is measured in amperes (A), voltage in volts (V) and wire thickness in American Wire Gauge (AWG), where a higher number means a thinner wire.

SeriesPitchRated currentRated voltageWire sizeLockTypical use
XH2.5 mm3 A250 VAWG 30 to 22FrictionBattery packs, power leads
PH2.0 mm2 A100 VAWG 32 to 24FrictionSmall batteries, fans, boards
SH1.0 mm1 A50 VAWG 32 to 28FrictionSensor modules, tight boards
GH1.25 mm1 A50 VAWG 30 to 26LatchDrones, robots, vibration

Ratings from JST series datasheets; current is rated at the largest wire size each series accepts.

XH is the largest and sturdiest of the four, with a 2.5 millimeter (mm) pitch and room for thicker wire. PH is a step smaller at 2.0 mm. SH and GH are fine-pitch series, at 1.0 mm and 1.25 mm, built for crowded boards and thin wire.

The biggest functional difference is locking. XH, PH and SH hold together by friction and the shape of the header shroud, which is the plastic wall around the pins. GH adds an outer latch that clicks into place, which JST describes as a positive lock.

Next step: Search JST GH housings on Findchips

How Do You Choose the Right JST Series?

Start with whatever the connector has to plug into. If your board connects to an off-the-shelf battery, sensor module or cable, match its series exactly. Two connectors with similar pitches will not mate reliably.

If you are designing both ends, ask yourself these three questions:

  • How much current flows? Anything above 1 A rules out SH and GH. PH handles up to 2 A and XH up to 3 A at their largest rated wire sizes.
  • How much space is there? SH saves the most board area. GH is slightly larger but locks.
  • Will the product vibrate or get handled? Drones, robots and vehicles favor the GH latch. Bench equipment and battery packs that are rarely unplugged do fine with XH or PH.

Also think about assembly. XH and PH are forgiving to crimp by hand and easy to probe on a test bench. SH and GH use very small contacts that are hard to crimp without JST tooling, so many teams buy pre-crimped leads or finished cable assemblies instead.

Next step: Search JST PH housings on Findchips

Why Does One JST Connector Need Three Part Numbers?

A JST connection is three separate parts, each with its own manufacturer part number (MPN). The header solders to the circuit board. The housing is the plastic plug on the cable end. The crimp contacts are small metal terminals pressed onto each wire and then pushed into the housing.

A bill of materials (BOM), often includes only the header because it is the only piece on the board. The housing and contacts then get ordered late, or not at all, and the first cable build stalls. Listing all three from the start avoids that.

The table shows a typical mating set for each series. The number in each part number is the circuit count, so moving from B2B-XH-A to B4B-XH-A also means moving from XHP-2 to XHP-4.

SeriesBoard header (example)Cable housingCrimp contact
XHB2B-XH-A (top entry)XHP-2SXH-001T-P0.6
PHB2B-PH-K-S (top entry)PHR-2SPH-002T-P0.5S
SHSM04B-SRSS-TB (side entry)SHR-04V-SSSH-003T-P0.2-H
GHSM04B-GHS-TB (side entry)GHR-04V-SSSHL-002T-P0.2

Confirm the contact against your wire gauge before ordering; several series offer more than one contact.

Two details trip people up. First, the header prefix tells you the entry direction: B headers point straight up from the board, and S headers point sideways. Second, some series offer more than one contact, each sized for a different wire range. XH alone has three. Pick the contact that matches your wire gauge, or the crimp will not hold.

Next step: Search JST crimp contacts on Findchips

How Do You Avoid JST Lookalikes and Mismatched Pitches?

Because “JST” is used as a generic label, many parts sold under the name come from other makers. Some are fine. Others differ in housing size, lock shape or pitch just enough to cause trouble.

The most common case is XH. Many kits sold as XH use a 2.54 mm pitch, instead of the true 2.5 mm. Over two to four pins, the 0.04 mm difference barely matters. Across a longer row it adds up, and the plug may not seat properly on a genuine JST header.

GH has a similar problem. It is often confused with the Molex PicoBlade, another 1.25 mm wire-to-board connector, but the two are separate designs and do not mate with each other.

The safest approach is to buy by full manufacturer part number from authorized distributors, which source directly from the manufacturer. Check that the header, housing and contacts all come from the same series. If you accept an alternate brand, mate a sample before committing to production.

Next step: Compare authorized JST GH sources on Findchips

Frequently Asked Questions

What Is the Difference Between JST XH and PH?

XH has a 2.5 mm pitch and is rated for up to 3 A, while PH has a 2.0 mm pitch and is rated for up to 2 A. XH suits battery packs and power leads; PH suits smaller boards where space matters more than current.

Is a 2.54 mm Connector the Same as JST XH?

No. A genuine JST XH uses a 2.5 mm pitch. Many 2.54 mm kits sold as XH will mate on short connectors of four pins or fewer, but the spacing error grows on longer rows.

What Parts Do I Need to Build a JST Cable?

You need three parts from the same series: the board header, the plastic housing for the cable end and crimp contacts sized for your wire gauge. Pre-crimped leads are an alternative if you do not have a crimp tool.

Which JST Connector Locks in Place?

Of the four series in this guide, only the GH has a latch that clicks shut and resists pulling loose under vibration. XH, PH and SH rely on friction and the shape of the header.

Next step: Search any JST part number on Findchips