The aim of this study was to assess the attitudes of Turkish pregnant women and antenatal health care providers towards prenatal HIV testing. A self-administered questionnaire was used. The relationships between the different groups' knowledge and attitudes were analysed by using the chi-squared statistic. A total of 494 pregnant women and 181 care providers participated. Forty-four per cent of the pregnant women thought that prenatal HIV testing should be mandatory, and 84% of the health care providers thought it should be performed routinely or be mandatory. The majority of the pregnant women (74%) and half of the care providers agreed that the test results should be disclosed first to the pregnant woman. The study results also revealed that most of the prenatal care providers would not protect pregnant women's autonomy and privacy, contrary to the pregnant women's own preferences. It is essential to establish national prenatal HIV testing policies in order to prevent unethical practices and ensure satisfaction for pregnant women and health care providers.