
Industry-standard JST XH part with matching specs, but straight orientation instead of right-angle.
The Megastar ZX-XH2.54-5PLT is a 5-pin, 2.5mm pitch, right-angle through-hole header. Finding a direct drop-in replacement requires careful verification of mechanical dimensions, especially orientation and footprint.
Most candidates have incorrect mounting type or orientation.
Several candidates match voltage and current ratings.
No direct drop-in replacement was found. All reviewed candidates have mechanical differences in mounting type or orientation, requiring board or design changes.
Source a right-angle, 5-pin, 2.5mm pitch, through-hole header from the JST XH series, such as S5B-XH-A(LF)(SN), after verifying its footprint.
Mechanical incompatibility due to different mounting types (SMT vs. TH) or pin orientations (straight vs. right-angle).

Industry-standard JST XH part with matching specs, but straight orientation instead of right-angle.
| Feature / factor | ZX-XH2.54-5PLT | B5B-XH-A(LF)(SN) | HC-XHB-5A | ZX-XH2.54-5PWT | Compatibility / risk |
|---|---|---|---|---|---|
| Package | Through Hole, Right Angle | Through Hole, Straight | Through Hole, Straight | Surface Mount, Right Angle | Through Hole, Straight / Surface Mount, Right Angle — Orientation mismatch; candidate is straight while target is right-angle.; HC-XHB-5A: Orientation mismatch; candidate is straight while target is right-angle.; ZX-XH2.54-5PWT: Candidate is SMT, target is Through-Hole. Requires PCB redesign. |
| Family | Megastar XH (Clone) | JST XH (Industry Std) | - | - | JST XH (Industry Std) — JST is the originator of the XH series, ensuring compatibility. |
| Current | 3 A | 3 A | 3 A | 3 A | 3 A — Current rating matches.; HC-XHB-5A: Current rating matches.; ZX-XH2.54-5PWT: Current rating matches the target. |
| Pitch | 2.5 mm | - | 2.5 mm | 2.5 mm | 2.5 mm — Pin pitch matches.; ZX-XH2.54-5PWT: Pin pitch matches. |
The JST XH series is the industry-standard equivalent. A right-angle version like JST's S5B-XH-A(LF)(SN) is a strong candidate, but requires datasheet verification for footprint compatibility.