China First Timer

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.

Journey times are typical for the fastest common services; check your own train or flight. Updated 23 October 2026.

Short answer: By high-speed train or a short flight, about 6 to 7.5 hours by train, around 2.5 hours flying.

Plan Xi'an and Shanghai day by day

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

Other direction: Shanghai to Xi'an. All connections: between cities.

Something wrong or out of date on this page? Tell us

Don't include personal details. A link to the official source helps us check quickly.