12306 Train Tickets: The MRZ Name Hack

Last Updated: Jan 2026 Author: TechDadShanghai

Problem

Foreign tourists often face “Identity Verification Failed” errors on the 12306 app, even when they think they’ve entered their names correctly.


The “Single String” Logic (Crucial)

The 12306 backend does not distinguish between “First,” “Middle,” and “Last” names the same way Western systems do. It checks a single consolidated string.

The Fix: Match the MRZ Code

The system cares about only one thing: The string of letters must exactly match the MRZ code (the two lines of text at the very bottom of your passport photo page).

  1. Use ALL CAPS.
  2. Include every space exactly as it appears in those two lines.
  3. If your name is long and has symbols like <<, ignore the symbols but keep the letter sequence.

Verification Latency


The “Green Channel” for Parents

If you are traveling with a stroller or young children:


TechDad’s Tips (Technical HSR Hacks)

Local Hacks / Money-saving Tips