Certain environmental factors can impact fertility and reproductive parameters such as the number and quality of sperm and eggs. One possible mechanism is the perturbation of epigenetic landscapes in the germline. To explore this possibility, we conducted a CRISPRi screen of epigenetic-related genes to identify those that specifically perturb the differentiation of embryonic stem cells (ESCs) into primordial germ cell-like cells (PGCLCs), exploiting a highly scalable cytokine-free platform. Of the 701 genes screened, inhibition of 53 decreased the efficiency of PGCLC formation. NCOR2, a transcriptional repressor that acts via recruitment of Class I and Class IIa histone deacetylases (HDACs) to gene targets, was particularly potent in suppressing PGCLC differentiation. Consistent with evidence that histone deacetylation is crucial for germline differentiation, we found that the HDAC inhibitors (HDACi) valproic acid (VPA; an anti-convulsant) and sodium butyrate (SB; a widely-used dietary supplement) also suppressed ESC>PGCLC differentiation. Furthermore, exposure of developing mouse embryos to SB or VPA caused hypospermatogenesis. Transcriptome analyses of HDACi-treated, differentiating ESC>PGCLC cultures revealed suppression of germline-associated pathways and enhancement of somatic pathways. This work demonstrates the feasibility of conducting large-scale functional screens of genes, chemicals, or other agents that may impact germline development.