Territorial spatial planning is crucial for fostering green production and lifestyles, contributing to ecological civilization, and shaping a beautiful China. However, evaluations of China’s territorial spatial planning at a global level are scant. This study constructs a self-assessment tool for territorial spatial planning, anchored in the Sustainable Development Goals (SDGs). Initially, it develops an indicator system to assess provincial territorial spatial planning, tailored to the specificities of Chinese provinces. Subsequently, this study formulates problem guidance and performs a match analysis. The tool is then applied to assess the preparation of territorial spatial planning in Shaanxi Province, yielding visualized results. These results correlate the content of planning documents with the questions in the tool, ensuring alignment. Findings indicate that Shaanxi Provincial Territorial Spatial Planning (2021–2035) largely aligns with the SDGs’ framework, while Shaanxi Province Land Space Ecological Restoration Planning (2021–2035) shows partial alignment. Discrepancies with global and national sustainability trends are noted, potentially linked to the unique role of ecological restoration in national spatial planning. By integrating SDGs, this study evaluates the rationality and potential for optimization in China’s provincial territorial spatial planning. This approach aims to enhance public well-being and offers actionable recommendations for incorporating sustainable development into provincial spatial planning strategies.