JST-XH vs JST-PH: Don’t Buy the Wrong Connector for Your PCB

Wire harness factory
Wire harness factory

I was assembling a 3D printer control board last month. Everything was going fine until I tried to plug the heated bed thermistor cable into the header on the mainboard. The connector looked right — white plastic housing, small pins — but it wouldn’t seat. I pushed harder. Still nothing.

Turns out I was holding a JST-PH connector and trying to jam it into a JST-XH header. The pitch was off by half a millimeter. That’s all it takes.

JST-XH and JST-PH are not interchangeable. XH uses a 2.5mm pitch and handles up to 3A at 250V. PH uses a 2.0mm pitch and tops out at 2A and 100V. They look similar enough to confuse — and I’ve seen that confusion cost people boards, batteries, and hours of debugging.

Here’s how to tell them apart, what each one is actually built for, and how to avoid the mistake that keeps showing up in workshops and assembly lines.

What “JST” Actually Means (And Why It Causes So Much Confusion)

JST stands for Japan Solderless Terminal — it’s a company, not a connector standard. J.S.T. Mfg. Co. makes dozens of connector series: PH, XH, SH, GH, ZH, VH, SM, EH, and more. Each series has its own pitch, housing geometry, terminal size, and crimp tooling.

The problem is that over the years, “JST” became shorthand for “small white plastic connector with a latch.” Engineers say “I need a JST 2-pin” when they actually mean “I need a JST-XH series, 2-position, 2.5mm pitch, vertical through-hole header with matching housing and AWG 24 crimp terminals.” That’s a mouthful, so people cut corners. Then they order the wrong part.

XH and PH are the two most commonly confused series. They’re both single-row, wire-to-board, white plastic connectors used in consumer electronics, 3D printers, battery packs, and LED lighting. The visual difference is subtle. The electrical and mechanical differences are not.

JST-XH: The 2.5mm Workhorse

The XH series is built around a 2.5mm pin pitch. That extra half-millimeter over the PH series buys you real engineering headroom.

JST-XH Specs

  • Pitch: 2.50 mm
  • Current Rating: 3A per circuit
  • Voltage Rating: 250V AC/DC
  • Wire Range: AWG 22–30
  • Pin Count: 2–20 (single row)
  • Lock Type: Top barb latch
  • Mounting Height: ~9.8 mm

JST-PH Specs

  • Pitch: 2.00 mm
  • Current Rating: 2A per circuit
  • Voltage Rating: 100V AC/DC
  • Wire Range: AWG 24–30
  • Pin Count: 2–16 (single row)
  • Lock Type: Side friction lock
  • Mounting Height: ~8.0 mm

The XH’s top-mounted barb latch is the easiest way to identify it. Look at the connector from the side — if there’s a small plastic tab sticking up from the top of the housing that snaps over a ridge on the header, it’s an XH. That latch isn’t just for show. It provides positive retention that keeps the connector seated through vibration, cable tugging, and thermal cycling.

Where you’ll find XH connectors in the wild:

  • 3D printer mainboards — heated bed power, hotend heater cartridge, thermistor inputs, endstop switches. The Creality, BigTreeTech, and Duet boards all use XH headers extensively.
  • Power supply boards — AC-DC converter output connectors, inverter control signal headers.
  • Industrial PLC I/O — sensor inputs, relay driver outputs, fan headers in cabinet-mount equipment.
  • Servo motor encoder breakouts — where the 3A rating handles motor feedback signal currents with margin to spare.

For general-purpose industrial board-to-wire connections under 3A, XH is the default choice. The 2.5mm pitch is large enough for routine field rework with hand crimpers, and the 250V rating clears requirements for switched 120V AC accessory circuits.

JST-PH: The 2.0mm Compact Connector

PH connectors shrink everything down. The 2.0mm pitch saves about 20% in PCB edge space compared to XH for the same pin count. A 10-circuit PH header takes roughly 20mm of board edge; the same count in XH takes 25mm. That 5mm matters when you’re laying out a dense BMS board or a handheld device

The locking mechanism is different too. PH uses side friction locks — two small raised tabs on the sides of the housing that press against the header walls. There’s no top barb, no positive click. It holds by tight tolerances and friction. In a static environment (like inside a laptop battery pack), that’s fine. In a vibrating enclosure, it can work loose over time.

Where PH dominates:

  • Lithium battery balance leads — the small multi-wire connectors on RC LiPo packs and 18650 BMS boards. Every hobby-grade balance charger uses PH connectors.
  • Compact BMS modules — cell voltage monitoring taps on 3S to 6S battery management boards.
  • Stepper motor connectors — NEMA 17 motors on compact 3D printers and CNC machines often ship with PH connectors.
  • Consumer electronics — laptop internal wiring, camera modules, handheld game console battery connectors.

PH is the right call when space is tight and current stays under 2A. Push it beyond that and you’re asking for trouble.

Side-by-Side: JST-XH vs JST-PH

FeatureJST-XHJST-PH
Pitch2.50 mm2.00 mm
Current Rating3A per circuit2A per circuit
Voltage Rating250V AC/DC100V AC/DC
Wire RangeAWG 22–30AWG 24–30
Pin Count2–202–16
Lock TypeTop barb latchSide friction lock
Mounting Height~9.8 mm~8.0 mm
Header TypeThrough-hole (typical)Through-hole or SMD
Interchangeable?No — different pitch, different latch

Why 0.5mm Matters: Pitch, Pins, and Why You Can’t Force It

Half a millimeter. That’s the difference between a connector that works and one that either won’t fit or will fail under load. Here’s why that tiny gap matters at the engineering level.

Partial contact = heat = melted housing. This is the one that burns boards. If you somehow get a mismatched connector to make partial contact, the reduced contact area increases resistance at the junction. More resistance means more heat at the same current. A PH connector rated for 2A might survive 3A briefly in a proper connection — but with partial contact from a mismatched header, even 2A can push contact temperatures past the housing’s rating. The plastic softens. The pins shift. Contact gets worse. It’s a thermal runaway that ends with a charred connector and a dead PCB.

Physical incompatibility. A 2.0mm PH plug won’t seat on a 2.5mm XH header — the pin spacing doesn’t line up. An XH plug is too wide to fit into a PH socket. You can’t “make it work” by pushing harder. I’ve seen people try. The result is usually bent pins, cracked housings, or a connector that feels seated but only makes partial contact on the outer pins.

Terminal size and crimp specs don’t match. XH terminals are designed for AWG 22–30 wire; PH terminals handle AWG 24–30. The crimp barrel dimensions are different. If you try to crimp an XH terminal onto AWG 24 wire using PH tooling (or vice versa), you’ll get either an under-crimp (loose connection, high resistance) or an over-crimp (crushed conductor strands, reduced current capacity). JST publishes per-series crimp height tolerances — XH is typically ±0.10mm, while smaller series like SH/GH tighten to ±0.05mm. These aren’t suggestions.

⚠️ Real failure I’ve seen: A hobbyist used a PH connector on a 3D printer heated bed pulling 2.8A. The connector felt “tight enough.” After about 20 hours of printing, the housing deformed from heat buildup at the partial-contact junction. The pins shorted. The MOSFET on the control board blew. Total damage: one mainboard, one heated bed, and a lot of frustration.

Match the series. Always.

Which One Does Your Project Actually Need?

Here’s the practical breakdown by application. No theory — just what works.

3D Printer Wiring

Use XH. Every major 3D printer control board — Creality, BTT SKR series, Duet, MKS — uses JST-XH headers for thermistors, endstops, heaters, and fans. The 3A rating covers hotend heater cartridges (typically 40W at 24V = 1.67A) with healthy margin. The top latch keeps connectors seated through the constant vibration of a moving print head. PH shows up occasionally on compact stepper motor connectors, but for the mainboard side, XH is the standard.

LED Strip Lighting

XH for power, PH for tight spaces. A 5-meter RGB LED strip at 12V can pull 3–6A total. XH connectors handle the power injection points without breaking a sweat. If you’re wiring individual short segments inside furniture or display cases where current stays under 2A, PH’s smaller footprint is an advantage. Just don’t use PH on the main power feed for a full strip — the voltage drop alone will cause visible dimming at the far end.

Lithium Battery Packs and BMS

PH for balance leads, XH for main power. This is the standard pattern in RC hobby packs and DIY powerwall builds. The balance connector (the small multi-wire plug) is almost always JST-PH — 2.0mm pitch, 2–8 circuits, carrying milliamps of sensing current. The main discharge leads use XH or larger connectors (XT30, XT60, Deans) depending on current. Some BMS boards use XH for the cell tap connectors too, so check your specific BMS pinout.

Industrial Control Panels

XH, no question. The 250V rating and top latch make XH the right choice for PLC I/O, sensor breakouts, and relay driver connections. When you’re building industrial wire harness assemblies that need to survive years of thermal cycling and occasional maintenance, the extra retention force of the XH latch pays for itself. PH connectors in an industrial enclosure are a service call waiting to happen.

Consumer Electronics Prototypes

PH when space is the constraint. If you’re designing a handheld device, a wearable, or anything that fits in a pocket, the 2.0mm pitch and 8.0mm mounting height of PH give you back precious millimeters. The 2A limit is usually fine for battery-powered devices. Just make sure your enclosure provides strain relief — the friction lock alone won’t survive repeated drops.

What to Look for in Quality JST Connectors and Cable Assemblies

Not all “JST” connectors on the market are genuine JST parts. The connector world is flooded with JST-compatible, JST-style, and outright clone connectors. Some are perfectly fine for hobby use. Some will fail in ways that are hard to debug.

Here’s what separates quality connectors from the ones that cause problems:

Housing material. Genuine JST housings use flame-resistant PA66 or PBT with a UL 94V-0 rating. Cheap clones often use lower-grade nylon that softens at lower temperatures. If your connector housing deforms during soldering or turns brown after a few months of use, the plastic isn’t up to spec.

Terminal plating. JST terminals use tin-plated or gold-plated phosphor bronze contacts. The plating thickness matters — too thin and you get oxidation, increased contact resistance, and intermittent connections. Gold-plated contacts are worth the cost in humid or corrosive environments. For general indoor use, tin plating is fine.

Crimp consistency. This is where most aftermarket assemblies fall short. A proper JST crimp creates a gas-tight connection between the wire conductor and the terminal barrel. The insulation crimp wings should fold evenly into the wire jacket without piercing it. Per IPC/WHMA-A-620 Class 2, you should see visible conductor at the inspection window, no missed strands, and pull-force values meeting AWG-specific minimums.

💡 Pro tip: If you’re ordering custom cable assemblies with JST connectors, ask for crimp pull-test data on the first article. A reputable custom wiring harness manufacturer will provide this without hesitation. If they can’t or won’t, find another supplier.

For production builds — especially anything going into industrial equipment, medical devices, or automotive applications — stick with genuine JST terminals or licensed equivalents with documented lot traceability. The cost difference is a few cents per circuit. The cost of a field failure is orders of magnitude higher.

For RF and high-frequency applications where signal integrity is critical, custom coaxial cable assemblies with precision impedance control are a better fit than standard JST wire-to-board connectors, which aren’t designed for controlled-impedance applications.

How to Tell XH and PH Apart Without a Datasheet

You’ve got a bag of connectors and no part numbers. Here’s how to sort them in 30 seconds:

1. Look at the latch. XH has a barb on top of the housing that snaps over the header. PH has two small friction tabs on the sides. If you see a top latch, it’s XH. No top latch, just side bumps — PH.

2. Compare the size. Hold them side by side. XH is visibly taller and wider. The housing on an XH connector is about 20% larger in every dimension. After you’ve handled a few, you can tell at a glance.

3. Measure the pitch. If you have calipers, measure center-to-center between two adjacent pins. 2.5mm = XH. 2.0mm = PH. If you don’t have calipers, line up the pins against a known 2.54mm (0.1″) header — XH pins will almost match (2.50mm vs 2.54mm), PH pins will be noticeably tighter.

4. Check the part number. If the housing has markings, look for “XHP” (XH series) or “PHR” (PH series) in the JST part number format.

The Bottom Line

XH and PH connectors solve different problems. XH gives you 50% more current capacity, a more secure latch, and compatibility with thicker wire — at the cost of a slightly larger footprint. PH saves space and works perfectly within its 2A limit.

The mistake isn’t choosing the wrong one. The mistake is assuming they’re the same thing. They’re not. Check the pitch, check the latch, and match the series to the header on your board. Your PCB will thank you.

Related Posts

Get A Quote

Ouketech is a China-based manufacturer of custom wire harnesses and cable assemblies, as well as an OEM/ODM supplier.

Need Custom Cable Solutions?

OUKETECH is a professional cable assembly manufacturer with over 15 years of experience producing custom wire harnesses and cable assemblies for clients across 70+ countries. From prototyping to mass production, we deliver cables built to your exact specifications.

Send Your Inquiry Today