
Official JST right-angle through-hole header that mates with the XHP-4 housing, sharing key electrical ratings.
The JST XHP-4 is a popular 4-position, 2.5mm pitch connector housing. While it is not directly replaced, it pairs with many compatible male headers, with the official JST S4B-XH-A(LF)(SN) being the recommended mating part for new designs.
Mating headers can be Through-Hole or SMT, requiring different PCB layouts. Footprint must be verified for non-JST parts.
Cross-vendor parts may have lower voltage or current ratings. This must be verified from the datasheet.
Generic part numbers like 'XHB-4A' have inconsistent specs across vendors, creating a high risk of ordering the wrong part.
There is no direct replacement for the XHP-4 housing itself. The best option is to use a compatible mating header from the JST XH series to complete the connection.
Use the official JST mating header S4B-XH-A(LF)(SN) for a reliable right-angle, through-hole connection that is guaranteed to be compatible.
Using non-JST compatible headers risks mechanical incompatibility with the PCB footprint or lower electrical ratings (voltage/current) that could compromise safety.

Official JST right-angle through-hole header that mates with the XHP-4 housing, sharing key electrical ratings.
| Feature / factor | XHP-4 | S4B-XH-A(LF)(SN) | HC-XHB-4AW | ZX-XH2.54-4PLT | Compatibility / risk |
|---|---|---|---|---|---|
| Package | Housing | Header, Male Pins | Header, Male Pins | Header, Male Pins | Header, Male Pins — Official mating header for the target housing.; HC-XHB-4AW: Mating header for the target housing.; ZX-XH2.54-4PLT: Mating header for the target housing. |
| Pinout | 4 | 4 | 4 | 4 | 4 — Matches position count.; HC-XHB-4AW: Matches position count.; ZX-XH2.54-4PLT: Matches position count. |
| Voltage | 250V | 250V | 250V | 250V | 250V — matched; HC-XHB-4AW: matched; ZX-XH2.54-4PLT: matched |
| Current | 3A | 3A | 3A | 3A | 3A — matched; HC-XHB-4AW: matched; ZX-XH2.54-4PLT: matched |
| Application | Free Hanging (In-Line) | Through Hole, Right Angle | - | - | Through Hole, Right Angle — Standard mounting for this connector series. |
The best alternative is not a replacement, but an official mating part. Use the JST S4B-XH-A(LF)(SN), which is the documented right-angle through-hole header for the XHP-4 housing.