
A functional alternative from the JST XH series with the same pitch and ratings, but different housing dimensions.
B2B-EH-A(LF)(SN) is a 2-pin, 2.5mm pitch straight through-hole header from JST's compact EH series. Finding a direct replacement requires matching the specific EH series housing dimensions for proper PCB fit and mating.
Different connector series (EH vs. XH) have different footprints and housing dimensions.
Many alternatives share the same voltage/current ratings.
No direct, verified pin-to-pin replacement has been identified from a different connector series. Substitutes require mechanical verification.
Source another JST EH series 2-pin straight header. Avoid other series like XH unless you can modify the PCB layout and change the mating connector.
Mechanical incompatibility. Using a connector from a different series (e.g., XH) will likely fail to fit the PCB footprint and mate with the intended EH housing.

A functional alternative from the JST XH series with the same pitch and ratings, but different housing dimensions.
| Feature / factor | B2B-EH-A(LF)(SN) | B2B-XH-AM(LF)(SN) | ZX-XH2.54-2PZZ-Y | Alt 3 | Compatibility / risk |
|---|---|---|---|---|---|
| Family | EH Series | XH Series | XH Series (clone) | XH Series / XH Series (clone) — Different housing dimensions and mating interface.; ZX-XH2.54-2PZZ-Y: Different housing dimensions and mating interface. | |
| Package | Through Hole, Straight | Through Hole, Straight | - | Through Hole, Straight — Orientation matches, but footprint may differ. | |
| Pitch Mm | 2.5mm | 2.5mm | 2.5mm | 2.5mm — Pitch is identical.; ZX-XH2.54-2PZZ-Y: Pitch is identical. | |
| Current | 3A | 3A | - | 3A — Current rating matches. | |
| Manufacturer Name | JST | - | Megastar | Megastar — Cross-vendor alternative. | |
| Voltage | 3A / 250V | - | 3A / 250V | 3A / 250V — Ratings match. |
The best alternative is another 2-position header from the JST EH series. While parts from other series like JST XH exist with similar electrical ratings, they have different physical dimensions and are not drop-in replacements.