Barcelona
101 km²
Shanghai
6,341 km²
Spain
China
Area Comparison
Barcelona is 62.8x smaller than Shanghai
Population Comparison
Barcelona has 15.0x fewer people than Shanghai
In terms of area, Shanghai is 62.8x the size of Barcelona. Shanghai spans 6,341 km² (2,448 mi²) while Barcelona covers 101 km² (39 mi²) — a difference of 6,240 km². You could fit Barcelona inside Shanghai approximately 62 times.
To put Barcelona's size in perspective, its area of 101 km² is roughly the same size as Paris (city proper). Meanwhile, Shanghai at 6,341 km² is about 1.5x the size of Los Angeles metro.
Picture Barcelona another way: its area is large enough to fit about 14,000 American football fields, 50 times the area of Monaco, or 30 times the area of Central Park. Shanghai works out to about 888,000 American football fields, 110 times the area of Manhattan, or 60 times the area of Paris.
Barcelona is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain. With a population of 1.7 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.7 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid and Milan.
Known as "Ciutat Comtal", Barcelona covers 101 km² with a population of 1.7 million. The city was founded around 230 BC. Barcelona is known for Sagrada Familia, Park Güell, La Rambla, among other attractions. The city's main transit system is the Barcelona Metro (TMB).
Barcelona is the second-most populous municipality in Spain and the capital of the autonomous community of Catalonia.
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.
Often called "Pearl of the Orient", Shanghai has an area of 6,341 km² and is home to 24.9 million people. It was established in 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 Shanghai metropolitan area covers 6,341 km², which is 7.9x larger than greater Barcelona at 803 km². The Shanghai metro area is also more populous, with 28.5 million people compared to 5.6 million.
Barcelona has a population density of 16,436 people per km² — an extremely dense urban environment. Shanghai, with 3,922 people per km², is a moderately dense city. Barcelona is dramatically more crowded, with 4.2x the population density.
This comparison spans continents — Barcelona in Europe versus Shanghai in Asia. Despite the geographic distance, comparing their sizes reveals surprising insights about how cities grow worldwide.
Barcelona has a Mediterranean climate while Shanghai experiences humid subtropical conditions. When it's noon in Shanghai, it's 5:00 AM in Barcelona — a 7-hour time difference.
Size Ratio
Barcelona fits inside Shanghai ~62 times
Density Gap
Barcelona is 4.2x more densely populated
Time Difference
7 hours apart
History
Barcelona is ~1,521 years older
Barcelona covers 101 km². Cities with a similar urban footprint include Lisbon (100 km²), Paris (105 km²), Copenhagen (91 km²), Vancouver (115 km²), or Zurich (88 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 Barcelona to Shanghai is 9,824 km (6,104 miles), with an estimated flight time of ~12h 3m.
Want to explore more? Compare city sizes for any two cities worldwide, or share your location live with friends.