Identifying chemical regulators of biological pathways is currently a time-consuming bottleneck in developing therapeutics and small-molecule research tools. Typically, thousands to millions of candidate small molecules are tested in target-based biochemical screens or phenotypic cell-based screens, both expensive experiments customized to a disease of interest. Here, we instead use a broad, virtual screening approach that matches compounds to pathways based on phenotypic information in public data. Our computational strategy efficiently uncovered small molecule regulators of three pathways, containing p38ɑ (MAPK14), YAP1, or PPARGC1A (PGC-1α). We first selected genes whose overexpression yielded distinct image-based profiles in the Cell Painting assay, a microscopy assay involving six stains that label eight cellular organelles/components. To identify small molecule regulators of pathways involving those genes, we used publicly available Cell Painting profiles of 30,616 small molecules to identify compounds that yield morphological effects either positively or negatively correlated with image-based profiles for specific genes. Subsequent assays validated compounds that impacted the predicted pathway activities. This image profile-based drug discovery approach could transform both basic research and drug discovery by identifying useful compounds that modify pathways of biological and therapeutic interest, thus using a computational query to replace certain customized labor- and resource-intensive screens.