CRISPR/Cas9 is an efficient customizable nuclease to generate double-strand breaks (DSBs) in the genome. This process results in knockout of the targeted gene or knock-in of a specific DNA fragment at the targeted locus in the genome of various species. However, efficiency of knock-in mediated by homology-directed repair (HDR) pathway is substantially lower compared with the efficiency of knockout mediated by the nonhomologous end-joining (NHEJ) pathway. Suppressing NHEJ pathway or enhancing HDR pathway has been proven to enhance the nuclease-mediated knock-in efficiency in cultured cells and model organisms. We here investigated the effect of small molecules, Scr7, L755507 and resveratrol, on promoting HDR efficiency in porcine fetal fibroblasts. Results from eGFP reporter assay showed that these small molecules could increase the HDR efficiency by 2-3-fold in porcine fetal fibroblasts. When transfecting with the homologous template DNA and CRISPR/Cas9 plasmid and treating with small molecules, the rate of knock-in porcine fetal fibroblast cell lines with large DNA fragment integration could reach more than 50% of the screened cell colonies, compared with 26.1% knock-in cell lines in the DMSO-treated group. The application of small molecules offers a beneficial approach to improve the frequency of precise genetic modifications in primary somatic cells.