XH Connector Datasheet Guide: 2.5 mm vs 2.54 mm, Pinout and Pin Counts

The XH family is the most cross-referenced wire-to-board connector in the 2.5 mm class, and it is also the one that produces the most avoidable purchasing errors. Two things cause that: the pitch is quoted as both 2.5 mm and 2.54 mm, and a connector is not one part but three — housing, wafer and crimp terminal — that must be ordered as a matched set.
This page covers the four things engineers and buyers actually need before raising a purchase order: what the family is, how to resolve the 2.5 vs 2.54 mm question, which pin counts exist, and how to read a datasheet without being misled by its headline numbers. Where a value depends on the exact part, it points to the drawing rather than quoting a family-level figure.
What the XH family actually is
XH is a wire-to-board connector family built around a nominal 2.5 mm pitch: a plug housing that terminates discrete wires through crimp terminals, and a wafer (PCB header) soldered to the board. HXHconnector supplies the XH series as a three-part set — housing, wafer and terminal — in 2 to 10 pin configurations, with straight or right-angle wafers.
Typical applications are the ones where the connector carries signal or modest power into a control board: appliance control boards, power modules, LED drivers and lighting, battery packs, electronic instruments, and industrial control boards. That is a useful constraint when specifying, because it tells you the failure mode you are designing against — vibration loosening and thermal cycling on a board that is assembled by hand or by a small automated line, not high-current heating.
The 2.5 mm vs 2.54 mm question
JST publishes the XH family as a 2.5 mm pitch connector. A very large share of PCB footprint libraries, Chinese datasheets and distributor listings describe it as 2.54 mm, because 2.54 mm is the 0.1 inch grid that through-hole layouts are drawn on. Both numbers describe the same interface, and both appear in the market. The difference is 0.04 mm per position.
On its own, 0.04 mm is nothing. The problem is that it is not applied once — it is applied across every cavity in the row:
| Positions in the row | Accumulated difference | What it means in practice |
|---|---|---|
| 2 positions | 0.04 mm | Not measurable by hand; parts mate |
| 3 positions | 0.08 mm | Still inside normal moulding tolerance |
| 4 positions | 0.12 mm | Usually fine, worth checking on a first article |
| 8 positions | 0.28 mm | Last cavity starts to feel tight |
| 10 positions | 0.36 mm | Visible binding on some combinations |
| 12 positions | 0.44 mm | Test-fit is mandatory, not optional |
Accumulated difference = 0.04 mm × (positions − 1). It is arithmetic, not a tolerance claim about any specific part.
The practical rule: above six positions, do not accept a pitch figure from a catalogue, a library or a supplier’s web page. Ask for the drawing and check the cumulative centre-to-centre dimension across the full row for your actual pin count. Then test-fit a first article against your real PCB and your real counterpart. A thirty-minute first-article check is cheaper than a rework batch.
Pin counts: what is actually available
HXHconnector publishes the XH series across 2 to 10 positions. The common counts have their own model pages, because buyers search by circuit count rather than by series:
| Model | Circuits | Typical use |
|---|---|---|
| HX25400 2 pin | 2 | Single signal pair, polarity or power input |
| HX25400 3 pin | 3 | Three-circuit PCB connection, small sensor looms |
| HX25400 4 pin | 4 | The common appliance control-board choice |
| HX25400 5 pin | 5 | Mixed signal and low-current power runs |
| HX25400 6 pin | 6 | Multi-circuit wiring assemblies |
| HX25400 8 pin | 8 | Equipment modules and control panels |
| HX25400 10 pin | 10 | Higher circuit density; confirm the drawing first |
Odd counts between these are available on request, but they are not stock items and they change the wafer tooling. If your design needs 7 or 9 circuits, say so at the drawing stage rather than at the quotation stage.
How to read an XH datasheet in five fields
Most XH datasheets open with a headline that is technically true and practically useless: “3 A, 250 V AC/DC, 2.5 mm pitch”. Those figures belong to one reference configuration. Here is what to look for instead:
| What the headline says | What you actually need to confirm |
|---|---|
| “2.5 mm pitch” | Pitch tolerance and the cumulative dimension across your pin count |
| “3 A rating” | The wire gauge that rating assumes, and the temperature rise behind it |
| “250 V” | Whether that is a working voltage or a dielectric withstand figure |
| Housing drawing | Cavity depth, latch geometry, polarising key position, PCB boss |
| Terminal drawing | Base metal, plating type and thickness, insulation crimp range in AWG |
For reference, JST publishes the XH family at 3 A with AWG #22 wire, 250 V AC/DC, and −25 °C to +85 °C. Two details in that sentence matter more than the numbers: the current rating is tied to a specific wire gauge, and the temperature range is quoted including the temperature rise of the connector under load. A compatible part must be checked against its own drawing for both — a family name does not transfer a rating.
Three parts, three part numbers
An XH connection is assembled from separate items, and each has its own part number:
- Housing (plug) — holds the terminals, carries the latch and polarising key, mates with the wafer.
- Wafer (PCB header) — soldered to the board; straight or right-angle; sets the mating height and the board footprint.
- Crimp terminal — the electrical contact; two crimp zones, one for conductor and one for insulation.
In the HXHconnector naming, the series number carries the pitch: HX25400 = 2.54 mm class, and the pin count selects the model page. The most common sourcing error we see is not a wrong pitch — it is a housing from one supplier mated with terminals from another. The housing cavity and the terminal latch are a matched pair; they are not interchangeable between manufacturers just because both are described as XH.
Wire gauge, crimp and why the tool matters
A crimp is a cold weld. It is made once, by a tool, and it is not inspectable from the outside. Three things follow from that:
- The tool is part of the specification. Hand crimpers with a generic die produce a crimp that looks acceptable and fails a pull test. Ask which tool the terminal drawing specifies.
- Insulation crimp is separate from conductor crimp. A terminal that grips the conductor correctly but crushes the insulation will fail in vibration, because the wire strands take the load at the transition point.
- Cross-section beats pull test alone. A pull test can pass while the conductor crimp has too few strands engaged. A cross-section shows the actual compression.
If you buy cable assemblies rather than loose parts, this is the supplier’s responsibility — but it is still your incoming inspection item.
XH against PH and ZH
Most XH enquiries turn out to be a pitch decision rather than a family decision. The three families that come up together:
| Family | Pitch | Where it wins | What you give up |
|---|---|---|---|
| XH | 2.5 mm | Easiest hand assembly, robust latch, wide availability | Board area — it is the largest of the three |
| PH | 2.0 mm | Smaller footprint at similar current class | Tighter crimp tolerance, less forgiving hand assembly |
| ZH | 1.5 mm | Dense boards, short signal runs | Low current only; fragile for repeated mating |
If you are cross-referencing an original brand rather than choosing from scratch, the series-by-series mapping is covered in the JST-compatible connector guide. The XH series page has the current selection table for pitch, pin count and mounting direction.
Replacing an existing XH part: three checks
If the question is “can this compatible part replace the one on my drawing”, the answer comes from three checks, in this order:
- Drawing overlay at 1:1. Cavity pitch, cavity depth, latch, keying and boss position. Print the supplier drawing and lay it over yours — this catches most mismatches before any part is made.
- Plating report. Not “tin” — base metal, plating type and thickness in micrometres. Plating is where low-cost equivalents most often differ, and it is what determines fretting behaviour in a vibrating assembly.
- First-article crimp cross-section. Made with the specified tool, on your wire, sectioned and photographed.
Only after those three is a mating and withdrawal-force test meaningful.
Frequently asked questions
Is XH 2.5 mm or 2.54 mm?
JST publishes it as 2.5 mm. Many PCB libraries and Chinese datasheets use 2.54 mm because it is the 0.1 inch grid. They describe the same interface; at 10 positions the difference accumulates to 0.36 mm, which is why the drawing matters more than the headline.
What is the current rating of the XH series?
JST publishes 3 A at AWG #22, with 250 V AC/DC and −25 °C to +85 °C including temperature rise. A compatible part must be checked against its own drawing — the family name does not transfer the rating.
How many pins does XH come in?
HXHconnector supplies 2, 3, 4, 5, 6, 7, 8 and 10 positions as standard. Odd counts beyond the common ones change the wafer tooling, so raise them at drawing stage.
Can I use a straight wafer where the drawing shows right-angle?
Only if your board and enclosure allow the mating height. Straight and right-angle wafers share the same housing interface but not the same footprint or clearance envelope. This is the second most common fitting error after mixing terminals across suppliers.
Do I need a special crimp tool?
Yes. The terminal drawing specifies a tool; a generic hand crimper will produce crimps that pass a visual check and fail a pull test. If you buy assemblies instead of loose parts, ask for the cross-section report.
Send the drawing, not the description
“2.54 mm, 4 pin, XH” describes a family, not a part. Send the drawing or a photo of the existing part, plus the wire gauge and the annual quantity, and the matching housing, wafer and terminal can be confirmed against it — including the cumulative dimension across your actual pin count.
Request an XH quote XH series overview
Continue reading
- XH vs EH vs SM: same 2.5 mm pitch, different parts
- How to crimp XH-class terminals with a measurable process
- What the 3 A rating means at 60 C ambient
Related: XH 2.50 mm vs Molex KK 254 2.54 mm: why they do not intermate
Published by HXHconnector. Specifications for HXHconnector parts must be confirmed on the drawing for your pin count; values quoted for other manufacturers are theirs and are cited for comparison only.