Since the 20th century, the world has undergone climate change, population growth and population aging, which may result in alterations in the epidemiology of non-optimal temperature-associated strokes. We employed multiple methodologies and data from the global burden of disease 2019 to unveil the long-term curvilinear trends in strokes attributed to non-optimal temperature and the impact of aging and population growth on its changing epidemiology. From 1990 to 2019, the age-standardized DALYs rate (ASDR) of strokes attributable to low temperature had been decreasing, but from 2016, the continued downward trend in ASDR disappeared and began to remain stable. On the contrary, the ASDR of strokes attributable to high temperature continued to increase. The high socio-demographic index (SDI) region experienced the fastest decreased trend. The disease burden of stroke attributable to low temperature is increased by aging in 178 countries (87.25%), compared with 130 (63.73%) for high temperature. After excluding aging and population growth, the DALY rate for strokes attributed to high temperature was increasing in 87 countries and territories (42.64%). The disease burden of strokes attributed to low temperature is far greater than that of high temperature in absolute figures. However, globally, there is a significant trend toward an increase in strokes attributed to high temperature. Social development has largely offset the burden of strokes attributed to low temperature, but most regions of the world are equally affected by strokes attributed to high temperature. Simultaneously, in the framework of climate change, aging is also largely hindering stroke prevention efforts.