China Hong Kong, Macau and Taiwan Permit Number Validator (港澳台通行证)
Paste permit numbers to identify the type, check the format, and for residence permits verify the check digit and read the region, birth date and sex.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste numbers
Type or paste one permit number per line.
- 2Read the type
See which document each number matches.
- 3Check residence permits
See the check digit result, region, birth date and sex.
- 4Fix errors
Correct numbers marked as not valid.
About this tool
People travelling between mainland China, Hong Kong, Macao and Taiwan use several different documents, each with its own number format. Hong Kong and Macao residents use the Mainland Travel Permit, known as the Home Return Permit (回乡证), with numbers starting with H or M. Taiwan residents use the Mainland Travel Permit for Taiwan Residents (台胞证), with an eight-digit number. Mainland residents use the Exit-Entry Permit for travelling to Hong Kong and Macao, starting with C, or to Taiwan, starting with L. Since 2018, Hong Kong, Macao and Taiwan residents living in the mainland can also hold a residence permit with an 18-digit number in the same format as a mainland ID card, starting with 810000, 820000 or 830000, with a check digit. Booking systems, hotels, banks and HR departments often need to check these numbers. This validator identifies the type from the pattern, checks the format, and for residence permits verifies the check digit and reads the region, date of birth and sex.
Who this is for
HR staff onboarding employees from Hong Kong, Macao or Taiwan, hotel and travel agents, developers building forms, and holders checking that a number was typed correctly.
The formats checked
- Home Return Permit: H or M followed by 8 digits (older permits had 10 digits). - Taiwan Compatriot Permit: 8 digits on the card version. - Mainland residents' permit to Hong Kong and Macao: C followed by a letter or digit and 7 digits. - Mainland residents' permit to Taiwan: L followed by 8 digits. - Residence permit: 18 characters, 810000 for Hong Kong, 820000 for Macao, 830000 for Taiwan, then the date of birth, a sequence number and a check digit.
The check digit
Residence permit numbers use the same check digit as mainland resident identity cards, calculated with weights over the first 17 digits modulo 11. A wrong digit anywhere usually changes the expected check digit. The validator shows when it fails.
What the result means
A valid format does not prove that the document exists or belongs to the person. Only the issuing authority or official verification services can confirm that. For simple format errors, the validator helps catch typing mistakes early.
Using residence permits
Residence permits let holders use many services like mainland residents: transport bookings, bank accounts, social insurance and some online services. Some systems still accept only Home Return Permit numbers; check which number a form wants.
Privacy
Permit numbers are personal data. The validator runs in your browser; do not paste lists into tools you do not trust.
Worked example
810000199001011230 is a Hong Kong residence permit number with a valid check digit, for a man born on 1 January 1990. H12345678 has the format of a Home Return Permit for a Hong Kong resident, and 12345678 the format of a Taiwan Compatriot Permit.
Limits
A format check, not legal advice or official verification.
Worked example
810000199001011230 → Hong Kong residence permit, born 1 January 1990, male, check digit valid.
Quick facts
- Category: Legal & Government
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: National Immigration Administration formats for exit-entry permits and residence permits for Hong Kong, Macao and Taiwan residents
Frequently asked questions
What does a Home Return Permit number look like?
H or M followed by eight digits for current cards.
What is the Taiwan Compatriot Permit number?
An eight-digit number on the card version.
How are residence permit numbers structured?
Like ID card numbers: 810000, 820000 or 830000, birth date, sequence and a check digit.
Does a valid format mean the permit is real?
No. It only checks the pattern and check digit.
Can I check many numbers?
Yes, paste one per line.
Are numbers uploaded?
No. Checks run in your browser.
