
DEALON
Strong functional match with identical pitch, pin count, and electrical ratings; requires mechanical verification.
The JST B4B-XH-A-R(LF)(SN) is a popular 4-pin, 2.5mm pitch straight through-hole header. Several form-fit-function alternatives exist from other manufacturers, but require verification of mechanical dimensions for a drop-in fit.
Shroud dimensions and pin lengths can vary between manufacturers, affecting mating and fit.
Most XH-style connectors share the same 3A/250V rating, but this must be confirmed.
The XH series is a multi-sourced industry standard, providing many sourcing options.
No pre-verified direct replacements exist. Candidates like ZX-XH2.54-4PZZ-Y are strong functional matches but require a datasheet review to confirm mechanical interchangeability.
cross_vendor_family
Mechanical incompatibility is the main risk. While many parts match the 2.5mm pitch, the plastic shroud dimensions can vary, preventing proper mating with the corresponding female connector.

DEALON
Strong functional match with identical pitch, pin count, and electrical ratings; requires mechanical verification.
| Feature / factor | B4B-XH-A-R(LF)(SN) | XH-4PS | ZX-XH2.54-4PZZ-Y | Alt 3 | Compatibility / risk |
|---|---|---|---|---|---|
| Package | Through Hole, Straight | Through Hole, Straight | Through Hole, Straight | Through Hole, Straight — Mounting orientation matches.; ZX-XH2.54-4PZZ-Y: Mounting orientation matches. | |
| Pitch | 2.5mm | 2.5mm | 2.5mm | 2.5mm — Pitch is identical.; ZX-XH2.54-4PZZ-Y: Pitch is identical, critical for PCB layout. | |
| Pin Count | 4 | 4 | 4 | 4 — Pin count matches.; ZX-XH2.54-4PZZ-Y: Pin count matches. | |
| Current | 3 A | 3 A | 3.0 A | 3 A / 3.0 A — Current rating matches.; ZX-XH2.54-4PZZ-Y: Current rating matches. | |
| Voltage | 250 V | 250 V | 250 V | 250 V — Voltage rating matches.; ZX-XH2.54-4PZZ-Y: Voltage rating matches. | |
| Color | Red | - | Natural/White (inferred) | Natural/White (inferred) — Target is red, may affect visual keying. |
Parts like Megastar ZX-XH2.54-4PZZ-Y or DEALON XH-4PS are strong functional alternatives, matching key specs like 4-pins, 2.5mm pitch, and 3A/250V rating. However, datasheet verification of mechanical drawings is required.