BackgroundElimination of mother-to-child transmission of hepatitis B virus (HBV) requires infant immunoprophylaxis and antiviral prophylaxis for pregnant women with high viral loads. Since real-time polymerase chain reaction (RT-PCR), a gold standard for assessing antiviral eligibility, is neither accessible nor affordable for women living in low-income and middle-income countries (LMICs), rapid diagnostic tests (RDTs) detecting alternative HBV markers may be needed. To inform future development of the target product profile (TPP) for RDTs to identify highly viremic women, we used a discrete choice experiment (DCE) and elicited preference and trade-off of healthcare workers (HCW) in Africa between the following four attributes of fictional RDTs: price, time-to-result, diagnostic sensitivity, and specificity.MethodsThrough an online questionnaire survey, we asked participants to indicate their preferred test from a set of two RDTs in seven choice tasks with varying levels of the four attributes. We used mixed multinomial logit models to quantify the utility gain or loss generated by each attribute. We attempted to define minimal and optimal criteria for test attributes that can satisfy ≥ 70% and ≥ 90% of HCWs, respectively, as an alternative to RT-PCR.ResultsA total of 555 HCWs from 41 African countries participated. Increases in sensitivity and specificity generated significant utility and increases in cost and time-to-result generated significant disutility. The size of the coefficients for the highest attribute levels relative to the reference levels were in the following order: sensitivity (β = 3.749), cost (β = -2.550), specificity (β = 1.134), and time-to-result (β = -0.284). Doctors cared most about test sensitivity, while public health practitioners cared about cost and midwives about time-to-result. For an RDT with 95% specificity, costing 1 US$, and yielding results in 20 min, the minimally acceptable test sensitivity would be 82.5% and the optimally acceptable sensitivity would be 87.5%.ConclusionsAfrican HCWs would prefer an RDT with the following order of priority: higher sensitivity, lower cost, higher specificity, and shorter time-to-result. The development and optimization of RDTs that can meet the criteria are urgently needed to scale up the prevention of HBV mother-to-child transmission in LMICs.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12916-023-02939-y.