Objective: To analyze hepatitis B serologic tests and the current prevalence of hepatitis B virus (HBV) infection among pregnant and postpartum women in China from 2021 to 2023. Methods: Data on managing the prevention of mother-to-child transmission of HIV, syphilis, and hepatitis were retrieved from the National Information System. A positive serum HBsAg test was used to define HBV infection. The χ(2) test was used to compare the coverage rate of the hepatitis B serologic test across different years, in early-stage pregnancy, and the current HBV infection in pregnant and postpartum women. A two-sided P value of <0.05 was considered a statistically significant difference. Results: The coverage rate for hepatitis B serological detection in pregnant (including intrapartum) and postpartum women and early-stage pregnancy rose from 99.68% (10 463 059/10 496 883) and 82.96% (8 707 765/10 496 883) to 99.94% (8 678 777/8 684 387, P < 0.001) and 88.87% (7 717 857/8 684 387, P < 0.001) in China between 2021 and 2023. The current prevalence rate of HBV infection decreased from 4.98% (521 479/10 463 059) in 2021 to 4.56% (396 148/8 678 777) in 2023 among pregnant and postpartum women (P < 0.001). The current prevalence rate of HBV infection ranged from 1.53% to 10.39% among pregnant and postpartum women in various provinces of China in 2023. Conclusion: The coverage rate for hepatitis B serologic tests in China increased significantly between 2021 and 2023 in pregnant and postpartum women. Therefore, the current prevalence rate of HBV infection has decreased significantly in pregnant and postpartum women, but a regional difference still exists.