Shanghai is about 24 times bigger than Edinburgh.

Edinburgh (map shows its 30 named neighbourhoods; the area covers the whole city) is approximately 259 sq km, while Shanghai is approximately 6,341 sq km, making Shanghai 2,348% larger than Edinburgh.
Tip: This to-scale comparison of Edinburgh vs. Shanghai uses the Mercator projection, which distorts the size of regions near the poles.
Our free app, MapSize by MyLifeElsewhere — compare any two places, to scale on your mobile device.