Xi'an to Shanghai: train or flight, time and tickets
How to travel from Xi'an to Shanghai on a first trip to China: by high-speed train or a short flight, how long it takes, where trains leave from and how to book.
Short answer: By high-speed train or a short flight, about 6 to 7.5 hours by train, around 2.5 hours flying.
Xi'an to Shanghai by high-speed train
High-speed trains (G and D numbers) link Xi'an and Shanghai, about 6 to 7.5 hours by train, around 2.5 hours flying. Book on Railway 12306 or Trip.com with your passport, which is also your ticket; tickets usually go on sale 15 days before departure, and verifying a foreign passport on 12306 usually takes 3 to 5 working days, so register early. See how to book a train ticket and Trip.com vs 12306.
Main stations: in Xi'an, Xi'an North Railway Station; in Shanghai, Shanghai Hongqiao Railway Station. Check which one your train uses: cities have several, and they are far apart.
Be at the station 45 to 60 minutes before departure: big stations have security checks, a passport check at the gates, and boarding closes a few minutes before the train leaves.
Xi'an to Shanghai by air
Flights between Xi'an and Shanghai save time over the train (about 6 to 7.5 hours by train, around 2.5 hours flying). Allow time to reach the airport and for security; book through the airline or a booking site with your passport details. Airports: Xi'an Xianyang International Airport; Shanghai Pudong International Airport, Shanghai Hongqiao International Airport. See high-speed train vs flying.
Planning Xi'an and Shanghai
- Xi'an city guide and Shanghai city guide: about 3 days in Xi'an and 3 in Shanghai make a good first visit.
- Ready-made route: China in 7 days: Beijing, Xi'an and Shanghai
- Ready-made route: China in 10 days: Beijing, Xi'an, Chengdu and Shanghai
- Getting around inside each city, by metro and Didi: Getting around.
Other direction: Shanghai to Xi'an. All connections: between cities.