Objective: To understand HIV self-testing and related factors in men who have sex with men (MSM) in Shijiazhuang. Methods: From August to September 2020, convenient sampling was used to recruit MSM in Shijiazhuang. Online questionnaires were used to collect information about their demographic characteristics, sexual behaviors and HIV self-testing. logistic regression model was used to analyze the related factors associated with HIV self-testing. Results: In the 304 MSM respondents, 52.3% (159/304) had HIV self-testing in the past 6 months, and 95.0% (151/159) used fingertip blood HIV detection reagent. Self-purchase was the main way to obtain HIV testing reagents (45.9%, 73/159), followed by supply from MSM social organization (44.7%, 71/159). The reasons for having HIV self-testing were non-specific testing time (67.9%, 108/159) and privacy protection (62.9%,100/159), the reasons for having no HIV self-testing included inability of using (32.4%, 47/145), being unaware of HIV self-testing reagent (24.1%, 35/145), and worry about inaccurate self-testing results (19.3%, 28/145). Multivariate logistic regression analysis showed that being 18-29 years old (aOR=2.68, 95%CI: 1.20-5.94), obtaining free HIV self-testing kits in recent 6 months (aOR=8.61, 95%CI: 4.09-18.11) and making friends through Internet and social software (aOR=2.68, 95%CI: 1.48-4.88) were positive factors for having HIV self-testing. Conclusion: HIV self-testing is a more flexible and convenient way to detect HIV in MSM, and the promotion of HIV self-testing in MSM should be strengthened to further increase the HIV detection rate in this population.