Ecosystems depend on biodiversity; therefore, protecting biodiversity is beneficial for the development of ecosystems. Butterflies are indicator species that respond quickly to environmental changes and reflect environmental conditions. Butterfly diversity is a crucial evaluation indicator of habitat quality in green spaces. We used CiteSpace and Bibliometrix to conduct a bibliometric analysis of research relating to butterfly diversity in green spaces. Based on 538 papers published from 2002-2022, we systematically reviewed the status, frontiers, and hotspots for research on butterfly diversity in green spaces. Our results showed that: (1) Research on butterfly diversity in green spaces has consistently demonstrated an upward trend between 2002-2022. Studies on this subject have garnered attention from researchers worldwide, with notable interest and contributions from scholars in the United States. (2) Early studies focused on butterfly habitat preferences and extinction concerns, and later articles appeared on the influence of external environmental factors (land use, climate change, plants, etc.). (3) Three main research topics received much attention between 2002 and 2022: biodiversity conservation, butterfly habitats, and the relationship between butterfly diversity and its influencing factors. (4) The relationship between green spaces and butterfly diversity (landscape features, vegetation features, and human activities) was discussed; these factors on butterfly communities should be considered in the planning and constructing of future green spaces. (5) Two significant future directions have been identified: more research on the impact of external factors and a need for more technical integration with the big data field. Future research on butterfly diversity in green spaces should adopt a more multi-scale, multi-disciplinary approach and aim to enhance the practicality and guidance of research findings.