
Dongguan Xingfei Connector Co., Ltd.
2.54mm RA cross-vendor header with higher ratings, but not a direct 2P match.
XY-XHB2.54-2A21 is a 2P 2.54mm right-angle wire-to-board header. No direct pin-compatible substitute is confirmed here.
Kept parts meet or exceed 250V and 2A.
All kept parts have different position counts.
Passive connector; no firmware impact.
Catalog indexed, but product URLs absent.
No confirmed pin-compatible replacement was found in these candidates.
Source the exact 2P part first; use same-pitch alternates only with board and harness review.
Pin count, footprint length, and mating housing mismatch.

Dongguan Xingfei Connector Co., Ltd.
2.54mm RA cross-vendor header with higher ratings, but not a direct 2P match.
| Feature / factor | XY-XHB2.54-2A21 | XY-XHB2.54-8A21 | M2545R-04P | M2553R-03P | Compatibility / risk |
|---|---|---|---|---|---|
| Package | TH RA | TH RA | TH RA | TH RA | TH RA — Mount style matches; M2545R-04P: Mount style matches; M2553R-03P: Mount style matches |
| Pinout | 2P,1-row | 8P,1-row | 4P,1-row | 3P,1-row | 8P,1-row / 4P,1-row / 3P,1-row — Position count differs; M2545R-04P: Position count differs; M2553R-03P: Extra position |
| Voltage | 250 V | 250 V | 250 V | 250 V | 250 V — Rating matches; M2545R-04P: Rating matches; M2553R-03P: Rating matches |
| Current | 2 A | 2 A | 4 A | 5 A | 2 A / 4 A / 5 A — Rating matches; M2545R-04P: Higher rating; M2553R-03P: Higher rating |
| Temperature | -25..85C | -25..85C | -40..130C | not keyed | -25..85C / -40..130C / not keyed — ES summary match; M2545R-04P: Wider range; M2553R-03P: Needs check |
The best path is the exact 2P part. XY-XHB2.54-8A21 is only a same-series redesign candidate.