Metabolites, lipids, and other small molecules are key constituents of tissues supporting cellular programs in health and disease. Here, we present METASPACE, a community-populated knowledge base of spatial metabolomes from imaging mass spectrometry data. METASPACE is enabled by a high-performance engine for metabolite annotation in a confidence-controlled way that makes results comparable between experiments and laboratories. By sharing their results publicly, engine users continuously populate a knowledge base of annotated spatial metabolomes in tissues currently including over 3000 datasets from human cancer cohorts, whole-body sections of animal models, and various organs. The spatial metabolomes can be visualized, explored and shared using a web app as well as accessed programmatically for large-scale analysis. By using novel computational methods inspired by natural language processing, we illustrate that METASPACE provides molecular coverage beyond the capacity of any individual laboratory and opens avenues towards comprehensive metabolite atlases on the levels of tissues and organs.