Globally, Enterocytozoon bieneusi has been detected in humans and various animal hosts. Wild rats and shrews have the potential to act as carriers of E. bieneusi, facilitating the parasite’s transmission to humans and domestic animals. We aimed to investigate the prevalence of E. bieneusi in 652 wild rats and shrews from Zhejiang Province, China, by amplifying the internal transcribed spacer (ITS) region of rDNA through polymerase chain reaction (PCR). To determine animal species, we amplified the Cytochrome b (Cyt-b) gene in their fecal DNA using PCR. Furthermore, we determined the genotype of E. bieneusi by amplifying the ITS region of rDNA through PCR. Genetic traits and zoonotic potential were evaluated using similarity and phylogenetic analyses. Suncus murinus (n = 282) and five rat species, Rattus losea (n = 18), Apodemus agrarius (n = 36), Rattus tanezumi (n = 86), Rattus norvegicus (n = 155), and Niviventer niviventer (n = 75), were identified. The average infection rate of E. bieneusi was 14.1% (92/652) with 18.1% (51/282) in S. murinus and 11.1% (41/370) in rats (27.8% in R. losea, 22.2% in A. agrarius, 10.5% in R. tanezumi, 8.4% in R. norvegicus, and 8.0% in N. niviventer). Thirty-three genotypes were identified, including 16 known genotypes. The most commonly known genotypes were HNR-VI (n = 47) and Peru11 (n = 6). Type IV, KIN-1, SHW7, and HNPL-II were each found in two samples, while Macaque4, CH5, K, Henan-III, Henan-V, HNP-II, HNPL-I, HNPL-III, HNHZ-II, and HNHZ-III were each found in one sample. Additionally, 17 novel genotypes were discovered: WZR-VIII (n = 5), WZR-I to WZR-VII, WZR-IX to WZR-XII, and WZSH-I to WZSH-V (n = 1 each). Those 33 genotypes were divided into three groups: Group 1 (n = 25), Group 2 (n = 3), and Group 13 (n = 5). The initial report underscores the extensive occurrence and notable genetic diversity of E. bieneusi in wild rats and shrews from Zhejiang province, China. These results suggest that these animals play a pivotal role in the transmission of E. bieneusi. Furthermore, animals carrying the zoonotic genotypes of E. bieneusi pose a serious threat to residents.