Shanghai Visa and Residence Permit: A Step-by-Step Guide for Expats

Shanghai Visa and Residence Permit: A Step-by-Step Guide for Expats

Visa and residence permit issues are among the most common sources of stress for expats moving to Shanghai. The rules are complex, change frequently, and vary depending on your nationality, occupation, and family situation. Get it wrong, and you could face fines, deportation, or being barred from re-entering China.

In this guide, we'll break down the major visa pathways for expats moving to Shanghai, walk you through the residence permit application process step by step, explain the 24-hour registration rule, and answer the most frequently asked questions about visas in Shanghai.

Understanding Your Visa Options

Shanghai offers several visa pathways depending on your situation. Here are the most common ones for expats and their families:

1. Work Visa (Z Visa / 工作签证) The work visa is for foreigners who will be employed in China by a Chinese company or a foreign company with a Chinese entity. This is the most common visa for expats moving to Shanghai for work.

  • Eligibility: You need a job offer from a Chinese employer, a valid passport (6+ months validity), a degree certificate, and relevant work experience (typically 2+ years).
  • Application process: Your employer applies for a Work Permit Notice (工作许可通知) through the Shanghai Foreign Experts Bureau. Once approved, you apply for the Z visa at a Chinese embassy/consulate in your home country. After arriving in China, your employer applies for the Work Permit (工作许可证), and then you apply for the Residence Permit (居留许可) at the Exit-Entry Administration.
  • Validity: The Z visa itself is valid for 30 days from entry. During those 30 days, you must complete the Work Permit and Residence Permit applications. The Residence Permit is typically valid for 1 year (renewable).
  • Family: Spouses and children of work visa holders can apply for Dependent Visas (S1/S2 visas).

2. Dependent Visa (S1/S2 Visa / 家属签证) The dependent visa is for spouses and children (under 18) of foreigners working or studying in China.

  • S1 Visa: For long-term stays (more than 180 days). Applied for at a Chinese embassy/consulate before arrival. After arrival, you apply for a Residence Permit (typically valid for the same duration as the working spouse's permit, up to 5 years).
  • S2 Visa: For short-term visits (up to 180 days). No residence permit required, but you cannot work or study on this visa.
  • Eligibility: You need proof of relationship (marriage certificate, birth certificate) and the working spouse's valid residence permit.
  • Note: Dependent visa holders cannot work in China. If you want to work, you'll need to switch to a work visa.

3. Student Visa (X1/X2 Visa / 学习签证) For foreigners studying in China at a Chinese university or language school.

  • X1 Visa: For long-term study (more than 180 days). Requires admission letter from a Chinese university and JW201/JW202 form. After arrival, apply for a Residence Permit (valid for the duration of study).
  • X2 Visa: For short-term study (up to 180 days). No residence permit required.

4. Visa-Free Entry / 免签入境 As of 2025, China offers visa-free entry for passport holders from 55 countries (including the US, UK, Canada, Australia, France, Germany, Japan, South Korea, Singapore, and many European countries). Visa-free entry is valid for up to 30 days.

  • Eligibility: Passport holders from the 55 eligible countries, with passports valid for 6+ months.
  • Validity: Up to 30 days per entry. You can leave and re-enter for another 30 days, but frequent border runs may raise suspicion.
  • Limitations: You cannot work or study on visa-free entry. If you plan to stay long-term or work, you'll need to switch to a work or student visa.
  • Important note: The list of eligible countries and the duration of visa-free entry can change. Always check the latest information from the Chinese embassy or consulate before traveling.

5. Other Visa Types

  • Business Visa (M Visa): For short-term business trips (up to 180 days). Requires an invitation letter from a Chinese company.
  • Tourist Visa (L Visa): For tourism (up to 90 days). Less common now that visa-free entry covers most tourist nationalities.
  • Private Affairs Visa (Q1/Q2): For family visits to Chinese citizens or permanent residents.

The Residence Permit Application Process (Step by Step)

If you're arriving on a Z (work) or S1 (dependent) visa, you'll need to apply for a Residence Permit (居留许可) within 30 days of arrival. Here's the step-by-step process:

Step 1: Complete the Work Permit application (for work visa holders only). Before applying for the Residence Permit, your employer must first apply for your Work Permit (工作许可证) through the Shanghai Foreign Experts Bureau (上海市外国专家局). This typically takes 5–15 business days and requires:

  • Passport and Z visa
  • Work Permit Notice (from the pre-arrival application)
  • Degree certificate (notarized and authenticated)
  • Employment contract
  • Medical examination certificate (from a designated hospital in Shanghai)
  • Passport photos

Step 2: Get a medical examination (if required). All work visa applicants and some dependent visa applicants need a medical examination at a designated hospital in Shanghai (e.g., Shanghai International Travel Healthcare Center, 上海国际旅行卫生保健中心). The exam includes blood tests, chest X-ray, ECG, and general physical exam. Bring your passport, 3 passport photos, and the medical form from your home country (if you had one). Cost is approximately 500–800 RMB.

Step 3: Gather required documents. For the Residence Permit application, you'll need:

  • Passport (valid for 6+ months) with valid Z/S1 visa
  • Residence Permit Application Form (available at the Exit-Entry Administration or online)
  • 1 recent passport photo (white background, 33×48mm)
  • Work Permit (for work visa holders) or proof of relationship (for dependent visa holders: marriage certificate, birth certificate — notarized and translated if necessary)
  • Proof of accommodation (rental contract + landlord's ID, or hotel registration slip)
  • Medical examination certificate (if required)
  • For dependent visa holders: the working spouse's valid Residence Permit and Work Permit

Step 4: Submit the application at the Exit-Entry Administration. The main Exit-Entry Administration in Shanghai is at:

  • Shanghai Public Security Bureau Exit-Entry Administration (上海市公安局出入境管理局): No. 1500, Minsheng Road, Pudong (浦东新区民生路 1500 号)
  • There are also district-level offices in each district (e.g., Xuhui, Jing'an, Changning) — check which one serves your residential address.

You can submit the application in person (the applicant must be present for fingerprinting and photo). Some districts allow online appointments through the Shanghai Police app or website — we recommend making an appointment to avoid long waits.

Step 5: Wait for processing. Residence Permit applications typically take 7–15 business days to process. You can check the status online or by phone. During processing, your passport is held by the Exit-Entry Administration — if you need to travel during this time, you can apply for a temporary passport return or expedited processing (for an additional fee).

Step 6: Collect your Residence Permit. Once approved, you'll receive a notification (by SMS or phone). Return to the Exit-Entry Administration to collect your passport with the Residence Permit sticker inside. The Residence Permit is typically valid for 1 year (for work visa holders) or the same duration as the working spouse's permit (for dependent visa holders, up to 5 years).

The 24-Hour Registration Rule (临时住宿登记)

One of the most important — and most frequently violated — rules for foreigners in China is the 24-hour registration rule. Here's what you need to know:

What is it? All foreigners staying in China must register their temporary residence within 24 hours of arrival (or within 72 hours if staying in a rural area). This is required regardless of your visa type.

How to register:

  • If staying in a hotel: The hotel automatically registers you when you check in. Just make sure they scan your passport correctly.
  • If staying in a private residence (friend's apartment, short-term rental, or your own rented apartment): You must register in person at the local police station (派出所) within 24 hours. Bring your passport, rental contract (or proof of residence), and the landlord's ID (if renting).
  • Online registration: Some districts in Shanghai now allow online registration through the Shanghai Police app (上海公安) or WeChat mini-program. Check if your district offers this option.

Why it matters:

  • You'll need the registration slip (临时住宿登记单) for your Residence Permit application, bank account opening, school enrollment, and other official procedures.
  • Failure to register can result in a warning or fine (up to 2,000 RMB).
  • If you move to a new address, you must re-register within 24 hours.

Pro tip: Keep multiple copies of your registration slip. You'll need it for various official procedures, and it's easy to lose. Take a photo of it and save it on your phone.

Frequently Asked Questions

Q: Can I work on a visa-free entry or tourist visa? A: No. Working in China without a valid work visa and work permit is illegal and can result in fines, detention, and deportation. If you plan to work, you must apply for a work visa before starting employment.

Q: Can I switch from a visa-free entry to a work visa without leaving China? A: In some cases, yes. If you've already secured a job offer and your employer has applied for a Work Permit Notice, you may be able to apply for a work visa and residence permit within China without leaving. However, this depends on your nationality and the specific circumstances. Consult your employer or a visa agent for guidance.

Q: How long does the entire work visa + residence permit process take? A: From start to finish, the process typically takes 2–3 months:

  • Work Permit Notice application (pre-arrival): 2–4 weeks
  • Z visa application at embassy/consulate: 3–7 business days
  • Work Permit application (post-arrival): 5–15 business days
  • Residence Permit application: 7–15 business days Start the process as early as possible — ideally 3 months before your planned move.

Q: Can my spouse work on a dependent visa? A: No. Dependent visa holders cannot work in China. If your spouse wants to work, they'll need to find a job and switch to a work visa (which requires the employer to sponsor their work permit).

Q: What happens if my residence permit expires? A: You must renew your residence permit before it expires. The renewal process is similar to the initial application and typically takes 7–15 business days. If your permit expires while you're still in China, you could face fines or be required to leave the country. Start the renewal process at least 30 days before expiration.

Q: Do I need a visa for my pet? A: Yes. Bringing a pet to China requires a rabies vaccination certificate, health certificate, and microchip. Pets must enter through designated ports (including Shanghai Pudong International Airport). There may be a quarantine period depending on the pet's origin country. Check the latest requirements from the Shanghai Customs before traveling.

Final Thoughts

Navigating Shanghai's visa and residence permit system doesn't have to be overwhelming — the key is to start early, understand your visa pathway, and follow the process step by step. The most common mistakes we see are: not starting the work permit process early enough, skipping the 24-hour registration, and not reading the residence permit application requirements carefully. Avoid these, and you'll be settled in Shanghai before you know it.

Want a more detailed visa guide?

Our Shanghai First 30 Days — Enhanced Relocation Guide includes a complete visa & residence permit walkthrough: step-by-step instructions for work visas, dependent visas, and visa-free entry; the residence permit application process; the 24-hour registration rule; required document checklists; and answers to common visa questions. It's part of our complete 80+ page relocation guide, available now for HK$549.

Back to blog

Leave a comment