Background To our knowledge, the prevalence, risk factors and distribution of C. trachomatis genotypes are rarely mentioned in Vietnam. This study aimed to find the prevalence, risk factors and distribution of C. trachomatis genotypes in infertile Vietnamese women. Methods Endocervical swabs were collected from infertile women at the National Hospital of Obstetrics and Gynecology, Vietnam, between January 2020 and December 2021. All samples were analyzed for C. trachomatis presence by Cobas 4800 CT/NG Test. Sequencing methods of ompA gene were used to determine the C. trachomatis genotypes. An approximately 1200 bp ompA fragment was aligned with reference sequences from GenBank to identify the corresponding genotype. Results The prevalence of endocervical C. trachomatis infection was 15.6% of 761 participants. Factors independently associated with CT infection among infertile women, obtained by multivariate analysis, included abnormal vaginal discharge, cervicitis, lower abdominal pain, a history of ectopic pregnancy, having more than one sex partner, and age at first intercourse. Among the samples, genotype E (25.93%) was most frequently found, followed by genotypes D/Da (22.23%), F (13.58%), G/Ga (12.35%), J (12.35%), H (6.17%), K (3.70%), B/Ba (2.47%), and I/Ia (1.23%), respectively. Genotype F was related to types of infertility, and genotype H was associated with a history of miscarriage. Conclusions The present study indicated a high prevalence of C. trachomatis in infertile Vietnamese women. The most common genotypes found in this population were E, D, and F. Our findings suggest that routine screening is necessary for early detection and performance of infection control methods.