Endometriosis (EMS) is a chronic inflammatory disease frequently associated with infertility. N6-methyladenosine (m6A) methylation, the most common form of methylation in eukaryotic mRNAs, has gained attention in the study of female reproductive diseases, including EMS and infertility. This study aimed to investigate the role of m6A regulators in EMS-related infertility. To begin, specific m6A regulators were identified by analyzing the GSE120103 dataset, followed by receiver operating characteristic (ROC) curve analysis. A nomogram model was then constructed, and unsupervised clustering of m6A regulators was performed to identify distinct m6A molecular clusters. Functional enrichment analysis of differentially expressed genes (DEGs) between these clusters, along with immune cell infiltration analysis, was subsequently conducted. In addition, the single-cell dataset GSE214411 was analyzed to explore the role of m6A regulators in various cell types. Finally, clinical samples were collected, and immunohistochemistry analysis was performed. The study identified seven key m6A regulators with significant diagnostic value for EMS-related infertility and two distinct m6A molecular clusters. Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) analyses of DEGs between the clusters revealed that m6A clustering was strongly associated with immune pathways. Immune cell infiltration analysis further demonstrated that the expression levels of m6A regulators had a notable impact on immune cell infiltration. Single-cell analysis revealed that HNRNPA2B1 and HNRNPC were significantly elevated in endometrial immune cells from infertile EMS patients but notably decreased in stromal cells. Immunohistochemical staining confirmed that HNRNPA2B1 and HNRNPC expression levels were significantly higher in the eutopic endometrium of fertile women compared to ovarian EMS patients. These findings suggest that m6A regulators play critical roles in the development and progression of EMS-related infertility. Notably, HNRNPA2B1 and HNRNPC may serve as potential biomarkers for this condition.