Shanghai, China's financial hub, and Beijing, the capital city, claimed the first and second positions in the rankings, with respective GDPs of 5.39 trillion yuan and 4.98 trillion yuan in 2024.