
JST's original XH series part offers a high-confidence, pin-compatible alternative.
The Megastar ZX-XH2.54-2PZZ-R is a common 2-pin, 2.5mm pitch straight header. Several pin-compatible alternatives are available, including the original JST XH series part, offering similar form, fit, and function for various applications.
Verify PCB footprint from datasheet as minor variations can exist between clones.
The XH series is multi-sourced, but quality may vary between manufacturers.
Direct replacement for ZX-XH2.54-2PZZ-R should use only Datasheet verified or Strong match candidates; many approved options still require engineering review.
Use the original JST part B2B-XH-A(LF)(SN) for the highest confidence and guaranteed compatibility within the XH connector system.
Minor mechanical differences in housing dimensions or pin plating between various manufacturers of XH-style connectors.

JST's original XH series part offers a high-confidence, pin-compatible alternative.
| Feature / factor | ZX-XH2.54-2PZZ-R | B2B-XH-A(LF)(SN) | HC-XH-2A-G | XH-2AK米色 | Compatibility / risk |
|---|---|---|---|---|---|
| Pitch | 2.5mm | 2.5mm | 2.5mm | 2.5mm | 2.5mm — Matches target.; HC-XH-2A-G: Matches target.; XH-2AK米色: Matches target. |
| Positions | 2 | 2 | 2 | 2 | 2 — Matches target.; HC-XH-2A-G: Matches target.; XH-2AK米色: Matches target. |
| Package | Through Hole, Straight | Through Hole, Straight | Through Hole, Straight | Through Hole, Straight | Through Hole, Straight — Matches target form factor.; HC-XH-2A-G: Matches target form factor.; XH-2AK米色: Matches target form factor. |
| Current | 3A | 3A | 3A | 3A (from datasheet) | 3A / 3A (from datasheet) — Matches target rating.; HC-XH-2A-G: Matches target rating.; XH-2AK米色: Not in structured data, must verify in PDF. |
| Voltage | 250V | 250V | 250V | 250V (from datasheet) | 250V / 250V (from datasheet) — Matches target rating.; HC-XH-2A-G: Matches target rating.; XH-2AK米色: Not in structured data, must verify in PDF. |
Verified drop-in options for ZX-XH2.54-2PZZ-R are limited in the current batch. Review candidates marked Strong match or Datasheet verified, and validate package, pinout, and electrical limits before committing a BOM change.