Classifying and quantifying small molecules on‐site with a rapid and cost‐effective operation are essential for pharmaceutical manufacturing, healthcare, hazardous risk control, and other applications. However, traditional molecular detection and identification methods like chromatography often involve expensive and bulky equipment and are required to be operated by trained professionals, which severely hinders the further development of small molecule‐based applications. Herein, a novel molecular detection platform is introduced by imaging a spatial gradient metasurface consisting of millions of different unique atoms and following with deep learning modeling to classify and quantify small molecules from mixed solutions accurately. The metasurface has a circular gradient geometry, which changes its transmittance intensity pattern based on the surrounding molecules under narrow‐band illumination. A convolutional neural network trained on the monochromatic images of the metasurface is employed. The results demonstrate a recognition rate of 96.88% for classification and a mean absolute error of 16.23% for quantification. This novel platform enables label‐free, sensitive, and rapid molecular classification and quantification, which opens a new avenue for small molecule classification and quantification and enables possibilities for real‐time, on‐site, and label‐free applications, including environmental monitoring, drug screening, and early diagnosis.