San Francisco
121 km²
Shanghai
6,341 km²
USA
China
Area Comparison
San Francisco is 52.4x smaller than Shanghai
Population Comparison
San Francisco has 28.6x fewer people than Shanghai
Shanghai is significantly larger, covering 52.4 times the area of San Francisco. Shanghai spans 6,341 km² (2,448 mi²) while San Francisco covers 121 km² (47 mi²) — a difference of 6,220 km². You could fit San Francisco inside Shanghai approximately 52 times.
To put San Francisco's size in perspective, its area of 121 km² is about 1.2x the size of Paris (city proper). Meanwhile, Shanghai at 6,341 km² is about 1.5x the size of Los Angeles metro.
San Francisco's footprint is roughly about 17,000 American football fields, 60 times the area of Monaco, or 35 times the area of Central Park — pick whichever unit feels intuitive. For Shanghai, that's about 888,000 American football fields, 110 times the area of Manhattan, or 60 times the area of Paris.
San Francisco, officially the City and County of San Francisco, is the fourth-most populous city in California and the 17th-most populous in the United States, with a population of 826,079 in 2025. Among U.S. cities with a population of 300,000 or more, San Francisco is ranked first by per capita income, second by population density, and sixth by aggregate income as of 2023.
Known as "The City by the Bay", San Francisco covers 121 km² with a population of 0.9 million. The city was established in 1776. San Francisco is known for Golden Gate Bridge, Alcatraz Island, Cable cars, among other attractions. The city's main transit system is the BART & Muni.
San Francisco ranks first by per capita income among all US cities with 300,000+ residents as of 2023.
Shanghai is a direct-administered municipality and the most populous urban area in China. It has a population of 29,558,908 in the urban area as of 2025. The city is located on the Chinese shoreline on the southern estuary of the Yangtze River, with the Huangpu River bisecting the city. Shanghai is a global center for finance, business and economics, research, science and technology, manufacturing, transportation, tourism, and culture. The Port of Shanghai is the world's busiest container port.
Nicknamed "Pearl of the Orient", Shanghai has an area of 6,341 km² and is home to 24.9 million people. Its history stretches back to 1291. Visitors come for The Bund, Oriental Pearl Tower, Shanghai Tower, and much more. Getting around is easy with the Shanghai Metro.
Shanghai's urban population reached 29.5 million in 2025, making it the most populous urban area in all of China.
Looking beyond city limits, the San Francisco metropolitan area covers 6,984 km², which is 1.1x larger than greater Shanghai at 6,341 km². The Shanghai metro area is also more populous, with 28.5 million people compared to 4.7 million.
San Francisco has a population density of 7,190 people per km² — a densely populated city. Shanghai, with 3,922 people per km², is a moderately dense city. San Francisco is noticeably denser, packing 1.8 times more people per square kilometer.
This comparison spans continents — San Francisco in North America versus Shanghai in Asia. Despite the geographic distance, comparing their sizes reveals surprising insights about how cities grow worldwide.
San Francisco has a Mediterranean climate while Shanghai experiences humid subtropical conditions. Summers are notably different: Shanghai averages 28°C compared to 17°C in San Francisco. When it's noon in Shanghai, it's midnight in San Francisco — a 16-hour time difference.
Size Ratio
San Francisco fits inside Shanghai ~52 times
Density Gap
San Francisco is 1.8x more densely populated
Time Difference
16 hours apart
History
Shanghai is ~485 years older
San Francisco covers 121 km². Cities with a similar urban footprint include Vancouver (115 km²), Paris (105 km²), Miami (143 km²), Barcelona (101 km²), or Lisbon (100 km²).
Shanghai covers 6,341 km². Cities with a similar urban footprint include Perth (6,417 km²), Istanbul (5,461 km²), Guangzhou (7,434 km²), Wuhan (8,569 km²), or Dubai (4,114 km²).
The straight-line distance from San Francisco to Shanghai is 9,879 km (6,139 miles), with an estimated flight time of ~12h 7m.
Want to explore more? Compare city sizes for any two cities worldwide, or share your location live with friends.