Choosing parts · 6 min read

JST XH vs PH vs Dupont: how to tell connectors apart

Small wire-to-board connectors look almost identical in photos, and "JST" is often used for any of them. The fastest way to tell them apart is the pitch: the distance between pin centres.

Pitch at a glance

ConnectorPitchTypical use
Dupont / 2.54 mm header2.54 mm (0.1")Breadboards, dev boards, jumper wires
JST XH2.5 mmBalance leads, 3D printer boards, general power and signal
JST PH2.0 mmSmall batteries, compact boards
JST ZH1.5 mmVery compact devices
JST SH1.0 mmTiny boards, Qwiic / STEMMA QT sensor cables

XH vs Dupont: the classic mix-up

XH (2.5 mm) and Dupont-style headers (2.54 mm) are so close that an XH plug will sometimes push onto a 2.54 mm header with a few pins. With more pins the error adds up and they won't fit properly. XH housings also have a locking ramp and are polarised, while basic Dupont housings are not.

How to identify a connector

  1. 1Count the pins and measure from the centre of the first pin to the centre of the last.
  2. 2Divide by the number of gaps (pins − 1) to get the pitch.
  3. 3Check for a locking latch, the shape of the housing, and whether the board side is through-hole or SMD.
  4. 4Compare with the manufacturer's drawing for the series you suspect.

Housings, terminals and pre-crimped cables

A connector has three parts: the board-side header, the cable-side housing, and the crimp terminals inside the housing. Terminals are specific to each series, so XH terminals won't fit PH housings. If you don't have the right crimp tool, ask for pre-crimped cables instead.

Genuine vs compatible

Most connectors sold in small quantities on Chinese marketplaces are compatible parts, not genuine JST. They usually mate with genuine parts, but quality and retention force vary. If it matters, ask for genuine parts and expect a higher price.

FAQ

Is JST a connector type?

JST is a Japanese manufacturer with many connector series. People often say "JST" when they mean JST XH or PH specifically.

Can I measure pitch with a ruler?

Yes. Measure across several pins and divide; measuring a single gap is too imprecise to tell 2.5 mm from 2.54 mm.

Ready to source your parts?

Post your list for free and compare quotes from agents in China.

Post a request