Preparation of single atom catalysts (SACs) is of broad interest to materials scientists and chemists but remains a formidable challenge. Herein, we develop an efficient approach to synthesize SACs via a precursor-dilution strategy, in which metalloporphyrin (MTPP) with target metals are co-polymerized with diluents (tetraphenylporphyrin, TPP), followed by pyrolysis to N-doped porous carbon supported SACs (M
1
/N-C). Twenty-four different SACs, including noble metals and non-noble metals, are successfully prepared. In addition, the synthesis of a series of catalysts with different surface atom densities, bi-metallic sites, and metal aggregation states are achieved. This approach shows remarkable adjustability and generality, providing sufficient freedom to design catalysts at atomic-scale and explore the unique catalytic properties of SACs. As an example, we show that the prepared Pt
1
/N-C exhibits superior chemoselectivity and regioselectivity in hydrogenation. It only converts terminal alkynes to alkenes while keeping other reducible functional groups such as alkenyl, nitro group, and even internal alkyne intact.