Access to electricity (the proportion of the population with access to electricity) is a key indica for of the United Nations’ Sustainable Development Goal 7 (SDG7), which aims to provide affordable, reliable, sustainable, and modern energy services for all. Accurate and timely global data on access to electricity in all countries is important for the achievement of SDG7. Current survey-based access to electricity datasets suffers from short time spans, slow updates, high acquisition costs, and a lack of location data. Accordingly, a new method for identifying the electrification status of built-up areas based on the remote sensing of nighttime light is proposed in this study. More specifically, the method overlays global built-up area data with night-time light remote sensing data to determine whether built-up areas are electrified based on a threshold night-time light value. By using our approach, electrified and unelectrified built-up areas were extracted at 500 m resolution on a global scale for the years 2014 and 2020. The acquired results show a significant reduction in an unelectrified built-up area between 2014 and 2020, from 51,301.14 km2 to 22,192.52 km2, or from 3.05% to 1.32% of the total built-up area. Compared to 2014, 117 countries or territories had improved access to electricity, and 18 increased their proportion of unelectrified built-up area by >0.1%. The identification accuracy was evaluated by using a random sample of 10,106 points. The accuracies in 2014 and 2020 were 97.29% and 98.9%, respectively, with an average of 98.1%. The outcomes of this method are in high agreement with the spatial distribution of access to electricity data reported by the World Bank. This study is the first to investigate the global electrification of built-up areas by using remote sensing. It makes an important supplement to global data on access to electricity, which can aid in the achievement of SDG7.