Transport

China Metro QR Codes for Foreigners: Every City's Best Method (2026)

Short answer

Foreign visitors have three routes into China's metros. In Beijing, Shanghai, Guangzhou and Chengdu you can tap a Visa, Mastercard, AmEx or UnionPay bank card directly at the gates — no app, no ticket. Everywhere else, activate the ride code inside Alipay (Transport → your city), or use the local metro app like Shanghai's Metro大都会. Single-ride tickets from machines and staffed counters also accept cash and foreign cards.

The three methods, ranked

City-by-city: the best method for each of the 10 metro cities

Guilin and Zhangjiajie — two of China's most-visited scenic areas — have no metro at all. City buses take cash or Alipay, and for the scenic areas themselves you are dealing with shuttle buses and park tickets, not metro gates; see our Guilin-Yangshuo and Zhangjiajie booking guides for those.

CityBest method for foreignersNotes
BeijingTap card at gateForeign cards work on subway lines and the S2 suburban line; Alipay ride code also fine
ShanghaiTap card at gate, or Metro大都会 appAll station service centers take foreign cards for tickets; maglev gates accept tapped cards too
GuangzhouTap card at gateAlipay ride code covers buses as well
ChengduTap card at gateCity buses also accept tapped cards on POS readers
ShenzhenAlipay ride codeFastest setup — activate in under a minute with a passport
ChongqingAlipay ride codeDeep valley lines with long escalators; allow transfer time
Xi'anAlipay ride codeLines 2/3 cover the Bell Tower and Terracotta Army connections
HangzhouAlipay ride codeAlso valid on Shaoxing and Huzhou connected lines
NanjingAlipay ride codeLine to the high-speed south station runs late
SuzhouAlipay ride codeConnects with Shanghai metro network transfers at border stations

Activating the Alipay ride code, step by step

When the QR route fails, fall back to tickets

Related questions

Can foreigners use the metro in China without a Chinese phone number or bank card?

Yes. Alipay registers with an overseas number and a linked foreign card, and the ride code works the same as for locals. In Beijing, Shanghai, Guangzhou and Chengdu you can skip the app entirely and tap a foreign Visa/Mastercard/AmEx/UnionPay card at the gate.

Which cities let foreigners tap a bank card on the metro?

Beijing, Shanghai, Guangzhou and Chengdu accept tapped foreign bank cards at metro gates, per the official 2026 guidance for foreign business travelers, plus Beijing's S2 line and Shanghai's maglev and city rail lines. Other cities still need a ride code or a ticket.

Is the Alipay ride code more expensive than a metro ticket?

No — same fare as a single-ride ticket, and in Shanghai riders get the same local discounts, including 10% off after spending ¥70 on metro in a month. The 3% foreign-card service fee only applies to Alipay purchases over ¥200, which a metro ride never is.

Do I need to activate a new ride code in every city?

Yes — the code is city-specific. Open Alipay → Transport and select the new city; activation takes seconds since your identity is already verified. Your previously activated cities stay one tap away.

What if the gate shows an error when I scan?

Stand back and regenerate the code, then try the same lane again. If it fails twice, walk to the staffed counter — they will let you through with a paper ticket after a quick check. Do not tailgate through a gate; fines run 5–10× the fare.

Related guides

Verified September 11, 2026. Policies and booking channels change — check the official channel before you rely on it.

Official sources

Get ChinaPass — these answers offline, with the phrase cards that work at the counter when your data does not.