Do I go through immigration on a layover if I stay in the airport?
On an international-to-international connection with bags checked through, staying airside, you generally need no visa and don't pass Chinese immigration, only security. To leave the airport within 24 h, get a temporary entry permit at immigration. Beijing Capital and Shanghai Pudong both offer 24-hour transit without border inspection.
Staying airside
- With a valid passport and a confirmed onward ticket to a third country/region, you can transit visa-free for up to 24 h as long as you don't leave the port. Leaving requires temporary entry procedures.
- On a single ticket with bags checked through, you stay in PEK's transit area without Chinese immigration, so no visa (security still applies). With separate tickets you must collect bags and re-check, which means entering China, so visa rules apply.
- The next leg must go to a different country/region: London→Beijing→Hong Kong works; London→Beijing→London does not.
- Not eligible: passports valid for under 3 months or carrying a visa-refusal stamp.
If you want to go out
- Under 24 h: 24-hour transit without visa (almost all nationalities). Citizens of 57 countries (since 20 Aug 2026) can use the 240-h transit.
- Taking Beijing Capital (PEK) as the example (check your airline for other airports): with ~20 hours you can leave PEK, sleep in a bed and see one attraction; on layovers under 8 h, stay in the airport. Air China offers free basic transit hotels for 8+ h layovers (e.g. Lanwan International Hotel): book through Air China's site or app, go to the Air China Transfer counter in T3, or call 95583 if it's closed. Be back at least 2 h before departure.