Step 1: Log In To The Website
Here's the link: Self-Help Declaration System For Overseas Personnel's Accommodation Registration. This website is only valid for people registering at an address in Shanghai. Assuming you don't have an account, make one. It takes two seconds and doesn't require an email verification (but you might want that email for later).

Step 2: Fill In Your Details
Next step is to fill in your info, once you click off the thoughtful "you don't need to register if you stay in a hotel" tip. This might be the most foreign user-friendly website the government has ever made.

Just upload an image of the photo ID page in your passport. It'll pick the details out automatically, but you can add or correct anything that wasn't right.

Don't mind the "with your certificate" bit, just upload a passport photo or a clean, passport-style selfie. I did it at my desk.
The address system is a slight pain in the butt, owing to the interminable difficulty in translating sometimes complex Chinese address into English ones. Do your best. Trust us. We know all about that.
Note: the "Date of Departure" info doesn't appear on your final certificate, just put the last date you left China. [Update: or, if it's your first time, the day you plan to leave the country, for example when your visa ends.]
Step 3: Wait For Processing
Now you just wait!

Processing can take five to ten minutes. [Update: apparently it can take much longer sometimes.] You'll get an email confirmation when it's done, and it might show up in your spam folder.
Step 4: Download Your Registration Form Of Temporary Residence

Back on the website, select the QR code that's replaced the "processing" bit and you'll have the option to "preview" (download), email or share a PDF of your form, with chop, filled in for you. Magic!

Whoops. Sorry, officer! Next time I will!
*
Here's the website for the Self-Help Declaration System For Overseas Personnel's Accommodation Registration: https://crjzndg.gaj.sh.gov.cn/24hr/
Thanks to reader Dan for assisting with this article. Love you! <3
11 comments.
More useful content like this plz ~ less about terrible tacos
Love the Taco article!
Why not both? What's the beef with the Taco article? :D
Isn't it the date of departure the date of when you are leaving china? what if it is your first time to come to china?
I am confused with "the day you left china"
Maybe this is too obvious, but does this only work for Shanghai residents or will it work anywhere in China? I really can't tell from looking at the website.
Excuse me, Is this online registration for the whole of China or just for shanghai.?
@SmartNanning @Jejeokoca this website is a Shanghai website (indicated by the "sh" in the URL https://crjzndg.gaj.sh.gov.cn/), and it only seems to work for people registering at addresses in Shanghai. If other cities have their own portal, we don't know about it!
Thanks for the comments, we've clarified a bit.
the link is not valid any more. Do you have a new one?
Yeah, nice idea to have this registration online. However in my case it fails and gives me the great tip “you need to go to police station and register”.
Thanks for nothing
Super helpful! Just registered following the instructions with mei wentis. Thanks a lot!
"Yeah, nice idea to have this registration online. However in my case it fails and gives me the great tip “you need to go to police station and register”.
Thanks for nothing"
If you face that issue, you just hwve to indicate an Adress that the program knows.
Just type in your street and choose a location that is on your street. Then you indicate your number and buipding and room number. That worked for me.