
DEALON
This DEALON header is a functional alternative but lacks the mounting boss found on the JST part; check mechanical drawings.
The JST B4B-XH-AM(LF)(SN) is a common 4-pin, 2.5mm pitch straight header. While many alternatives exist in the XH connector family, careful verification of mechanical dimensions, especially the mounting boss, is required for a reliable replacement.
Most alternatives lack the mounting boss of the original JST part.
Many alternatives match the 3A/250V rating, but verification is still needed.
No direct drop-in replacement has been confirmed. Several functional alternatives exist, but all require mechanical verification of the mounting footprint.
Source a cross-vendor XH-series 4-pin straight header and verify its mechanical drawing against the JST original, paying close attention to the mounting boss.
Mechanical mismatch due to the absence of a mounting boss on most alternatives, potentially impacting PCB stability.

DEALON
This DEALON header is a functional alternative but lacks the mounting boss found on the JST part; check mechanical drawings.
| Feature / factor | B4B-XH-AM(LF)(SN) | XH-4PS | ZX-XH2.54-4PZZ-Y | Alt 3 | Compatibility / risk |
|---|---|---|---|---|---|
| Pin Count | 4 | 4 | 4 | 4 — Matched; ZX-XH2.54-4PZZ-Y: Matched | |
| Pitch | 2.5mm | 2.5mm | 2.5mm | 2.5mm — Matched; ZX-XH2.54-4PZZ-Y: Matched | |
| Package | Straight, Through Hole, with Boss | Straight, Through Hole | Straight, Through Hole | Straight, Through Hole — Candidate lacks mounting boss.; ZX-XH2.54-4PZZ-Y: Candidate lacks mounting boss. | |
| Voltage | 250V | 250V | 250V | 250V — Matched; ZX-XH2.54-4PZZ-Y: Matched | |
| Current | 3A | 3A | 3A | 3A — Matched; ZX-XH2.54-4PZZ-Y: Matched |
The best alternatives are other XH-series 4-pin straight headers like Megastar's ZX-XH2.54-4PZZ-Y or DEALON's XH-4PS, provided the absence of a mounting boss is acceptable for your PCB design.