← Back to all articles

How to Ride the Metro in China (2026) — Alipay QR Code, Tap-to-Ride Visa/Mastercard or Cash

How to Ride the Metro in China (2026) — Alipay QR Code, Tap-to-Ride Visa/Mastercard or Cash

On a trip to China, the transport you'll use most is almost certainly the metro 🚇

It's cheap (fares start at 2–3 yuan, well under half a US dollar), fast, immune to traffic jams, and it reaches nearly every major sight. I live in Shenzhen, and the metro is the first thing I think of for getting around town.

Still, the first ride can feel intimidating. The ticket machines look Chinese-only, the gates work differently from what you're used to, and you might not even know how to pay.

Right now there are three ways to ride the metro in China:

Method Difficulty Recommendation
📱 Alipay's metro QR code Easy ⭐ My top pick
💳 Tap your Visa / Mastercard Easy ⭐ Rolled out widely in 2025–2026
💵 Buy a ticket from a machine Moderate Your backup if the first two fail

Based on my own rides on the Shanghai and Shenzhen metros, this guide covers all three. By the end, you should be able to walk through the gates in any Chinese city without hesitating 😊

🧳 First stop: the security check

The metro platform at Shanghai Railway Station. Fares start at 2–3 yuan and the network reaches most major sights

Before we get to tickets, one thing that surprises nearly every visitor.

Every metro station in China has a bag check before the gates. In Shanghai, Shenzhen and everywhere else, you'll find an X-ray machine near the entrance — put your bag on the belt and walk through.

It's standard across the whole country, and once you're used to it, it takes about ten seconds. If you're carrying a drink, staff may ask you to take a sip to show it's harmless.

💡 The order is: security check → gates → platform. At rush hour there can be a queue at security, so give yourself a few extra minutes ⏰

📱 Method 1: Alipay's metro QR code — my top pick

My favorite method: generate a metro QR code inside Alipay and scan it at the gate.

No tickets, no machines. The fare is calculated automatically when you exit and charged to the card you've linked to Alipay. You never have to stand at a ticket machine — for visitors, that's hard to beat.

Before you start: link a card to Alipay

You'll need Alipay set up with a foreign credit or debit card first. Foreigners can now link a Visa or Mastercard and pay with Alipay just like locals.

💡 I explain sign-up and card linking step by step, with screenshots, in How to Use Alipay in China as a Foreigner.

Getting your metro QR code

Here's the flow from opening Alipay to walking through the gate. (Some of these menu names stay in Chinese even when the app is set to English, so I've included the characters to look for.)

1Open Alipay
2If you see a "出行" icon on the home screen ("Transport", literally "going out"), tap it
3If not, type "出行" (or "Transport") into the search bar at the top and choose the first result
4Tap the 出行 mini-app with the arrow-shaped icon to open the transport menu
5⚠️ Most important step — check the city shown at the top right. Make sure it's the city you're actually in, such as 深圳 (Shenzhen) or 上海 (Shanghai)
6Choose "地铁" (metro) in the middle
7Tap the blue button. Sometimes there are two — either one is fine
8The first time, you need to activate the service: tick the round checkbox, then tap the blue button
9Confirm with your fingerprint or passcode
10Done — your metro QR code appears 🎉

After the first time, just open 出行 → 地铁 and the code is there.

Scanning at the gate

A QR code reader on a Chinese metro gate, labeled "二维码扫描 / QR CODE" — hold your phone screen over it

Each gate has a reader marked "二维码扫描 / QR CODE". Hold your phone screen over it.

1Entering: hold the QR code over the reader. When the gate opens, walk through
2Exiting: exactly the same — open the same screen, scan, and the gate opens
3When you exit, the fare is calculated automatically and charged to the card linked to Alipay 💳

My ride in Shenzhen cost 3 yuan. Cheap!

💡 The QR code refreshes every few seconds. Don't bother taking a screenshot — it won't work. Just open the screen at the gate and a fresh code appears each time.

⚠️ It doesn't work in every city

I want to be honest about this one.

In some cities, Alipay's metro QR code doesn't work for foreigners. Chinese users with a national ID card can use it nationwide, but those of us registered with a passport can find that some cities don't support our accounts.

Cities where I've personally used it without any problems: Shanghai, Guangzhou, Shenzhen and Chongqing. You can rely on it in those four.

Heading somewhere else? If the QR code doesn't work, just tap your card or buy a ticket instead — see methods 2 and 3.

💳 Method 2: Tap your Visa or Mastercard — the big change of 2025–2026

This is the biggest change of the past year or two.

It used to be "Alipay or nothing" on China's metros. Now, in a growing list of cities you can simply tap the contactless card you already use at home — no app, no setup.

Tapping a Mastercard at a Shanghai metro gate. The reader shows Visa, Mastercard, AMEX, JCB, UnionPay and digital yuan logos

Which cities and cards work

Here's where the major cities stand:

City Launched Status
🇨🇳 Beijing Sept 2024 Whole network (29 lines / 523 stations, plus the S2 line, as of June 2025). Since June 2025 it accepts all five major brands — UnionPay, Visa, Mastercard, American Express and JCB — which Beijing says made it the first metro in the world to do so
🇨🇳 Shanghai June 2025 21 lines / 517 stations — the whole network
🇨🇳 Chengdu July 28, 2025 All stations. UnionPay, Visa, Mastercard and American Express
🇨🇳 Guangzhou Oct 2025 All lines
🇨🇳 Shenzhen June 30, 2026 Trial across all 17 lines / 432 stations; the city says every gate will accept foreign cards by the end of 2026, so for now look for the card logos on the gate

Supported brands are generally Visa, Mastercard, American Express, JCB and UnionPay (exact coverage varies by city), so most travelers' cards are covered. (Sources: Beijing / Shanghai / Shenzhen) Your card needs contactless payment switched on, and some banks require small no-PIN payments to be enabled.

📈 More cities are joining all the time. It started in Beijing in September 2024 and reached all five of these major cities in under two years. Even in a city not listed here, if the gate shows "Tap to Ride" or Visa/Mastercard logos, you can use it. Checking the gate itself is the most reliable test 👀

Hong Kong's MTR also accepts contactless Visa and Mastercard.

You can also tap a card stored in Apple Pay or Google Pay — just hold your phone to the reader.

How to use it

1Check that the gate shows Visa / Mastercard logos
2Entering: tap your card (or Apple Pay) on the reader. No top-up or registration needed
3Exiting: tap the same card again. This is when your fare is calculated

💡 "I was charged 20 yuan!" — don't worry, it comes back

This is the thing I most want you to know.

When you tap in with a card, you may see an unfamiliar charge of roughly 10–20 yuan on your banking app. In Shanghai, many people report a 15-yuan hold.

"Wait, isn't the metro 2–3 yuan? Did I just get scammed?" — No. It isn't a real charge.

It's a pre-authorization hold:

1When you enter: the system doesn't know where you'll get off yet, so it temporarily reserves around 15 yuan to check your card can cover a trip
2When you exit: your destination is known and the actual fare (e.g. 3 yuan) is calculated
3The 15-yuan hold is released automatically and only the real fare is charged. The difference comes back to you 👌

In other words, you only ever pay the actual fare. Depending on your bank, the hold may take a few days to disappear from your statement, but you won't be charged twice.

⚠️ If your card doesn't have enough available balance or credit, the gate won't open. If you're using a debit or prepaid card, keep a little extra money on it.

Tips for tapping in

  • 🔁 Use the same card to enter and exit — a different card won't let you out
  • 👤 One card, one person — you can't tap once for your whole family. Everyone needs their own card or a ticket
  • 🚪 If you forget to tap out, you may be charged the maximum fare. Always tap when you leave
  • ❌ Sometimes it just won't read — people have reported errors even in Beijing. If that happens, switch calmly to Alipay's QR code or the ticket machine

🎫 Method 3: Buy a ticket from a machine — cash or mobile payment

No phone or card that works? Prefer a paper ticket? The trusty ticket machine is always there.

An automatic ticket machine in a Chinese metro station, marked "售票 / Tickets". It accepts cash and mobile payments

Look for machines labeled "售票" / "自动售票" (Tickets / Automatic Ticketing). Most have an English option on the screen.

1Choose your destination station by tapping it on the route map
2Choose the number of tickets — press "2" for two people
3The total appears (6 yuan for two in Shanghai, 3 yuan for one in Shenzhen in my case)
4Insert your money. Notes and coins go in separate slots
5Collect your ticket and change. In Shanghai I got a card-type ticket 🎫

Which notes and coins are accepted

Each machine shows which notes and coins it takes. The one I used in Shanghai accepted:

  • 💵 Notes: 5, 10, 20 and 50 yuan
  • 🪙 Coins: 5 jiao (0.5 yuan) and 1 yuan

Large notes like 100 yuan often aren't accepted, so carry a few small notes once you arrive.

Machines take mobile payments too

In Shenzhen I noticed the machines also let you buy a ticket with mobile payment, not just cash. Press the right button on screen and you can pay with WeChat Pay or Alipay. The ticket machine is the backup that works for everyone.

⚠️ With a ticket, entering and exiting work differently

Metro gates at Shanghai Hongqiao Station. Tap the ticket to enter; insert it into the slot to exit

This catches almost everyone at the exit — it caught me in Shanghai.

1Entering: tap the ticket on top of the gate, like a contactless card
2Exiting: tapping won't open the gate. Insert the ticket into the slot (the gate keeps it)

Tap to enter, insert to exit. Remember that and you won't freeze at the gate 😊

🤔 So which should you use?

Alipay QR Contactless card Ticket machine
Setup Card linked to Alipay None None
Cities Confirmed: Shanghai, Guangzhou, Shenzhen, Chongqing Beijing, Shanghai, Chengdu, Guangzhou, Shenzhen (and growing) Everywhere
Groups One account per person One card per person Buy several at once
To exit Scan the QR code Tap the same card Insert the ticket

My recommendation: set up Alipay, and try tapping your card too.

You'll use Alipay for nearly everything on your trip — restaurants, convenience stores, ride-hailing — so it's worth having anyway. In cities that support contactless cards, tapping is even quicker.

And if both fail, the ticket machine is your safety net. With all three options, you won't get stuck in any Chinese city 👍

📌 Summary

  • 🧳 Security check first — standard nationwide; allow a few extra minutes
  • 📱 Alipay's QR code is the easiest — 出行 → check the city → 地铁 → activate
  • ✅ Confirmed working for foreigners in Shanghai, Guangzhou, Shenzhen and Chongqing; some cities don't support it, so have a backup
  • 💳 Contactless cards work in Beijing, Shanghai, Chengdu, Guangzhou and Shenzhen — Visa, Mastercard and more, plus Apple Pay. More cities keep joining
  • 💰 A 15–20 yuan hold when you tap in is normal — it's replaced by the actual fare after you exit
  • 🎫 Ticket machines take cash and mobile payments — tap to enter, insert to exit

With fares from 2–3 yuan, the metro is a traveler's best friend in China. Keep this guide handy and give it a go.

Have a great trip 🇨🇳

🎬 Watch the videos

I cover this in more detail on my YouTube channel, "4G's China Life" (the videos are in Japanese — English subtitles are on the way).

How to ride the metro in China: Shenzhen — YouTube video thumbnail

▶ Watch: How to ride the metro in China (Shenzhen)

And here's the Shanghai version:

How to ride the Shanghai Metro — YouTube video thumbnail

▶ Watch: How to ride the Shanghai Metro — cash or Alipay QR code

📚 Read next


Information current as of October 2026. Metro payment options change quickly — check the gate and the official metro website before you travel.

Image credits: Wikimedia Commons — cover (Chongqing Rail Transit Line 6): 珠城铁路迷 (CC BY 4.0) / Shanghai Railway Station platform: SCJiang (CC BY-SA 4.0) / ticket machine: Windmemories (CC BY-SA 4.0) / Shanghai Hongqiao gates: Kmchang28 (CC BY-SA 4.0) / QR code reader: Shwangtianyuan (CC BY-SA 4.0) / tap to ride: Painjet (CC BY-SA 4.0)

China metro Shanghai metro Shenzhen metro Alipay tap to ride China transport
4G
About the author
4GJapanese YouTuber living in Shenzhen, China

A Japanese YouTuber who lived in Guangzhou for about three years and has been living in Shenzhen since 2026. I share practical, first-hand information about traveling and living in China.