How to transfer song ratings FROM iphone 5 TO itunes?

Without downloading software.
I KNOW I have done it before but can't remember how. I think it's something in how, and maybe even what order, it gets synced but I'm scared to try and loose everything on my phone cause that's where All my ratings are of the songs I want to delete. Please only reply if you have an answer that doesn't require an outside download (I know it can be done in iTunes) and know for SURE I won't loose my ratings.

Use Window Explorer and DRAG them to the iTunes Music folder (or in my case, Podcasts, since that is what I often am moving). I do this all the time.