How to sync music from iphone to computer?

My computer broke and my hard drive got wiped out. I got a new computer and i'm just wondering how i transfer my music from my iphone 5s to my computer.

Any music purchased through iTunes will automatically be downloaded when you install iTunes and sign in with your apple ID. For other songs you will need to buy some third party software to copy your music back from your iPhone to your PC. Just google iPhone to PC transfer and you will get many hits

  • Why won't my iPhone sync music from my computer? Every time I plug my iPhone in to sync it only adds songs purchased from iTunes to my phone. I have a lot of old music from CD's and whatnot that I'd really like on my phone. There's plenty of room on my phone, and I've configured the syncing to only add checked songs, but it still only has purchased music. Any advice? Should I turn my iCloud off?
  • New computer old iphone, how do i sync my music, apps and photos? Recently bought a new computer because my last computer failed on me, deleting all my programs from my computer, so I downloaded iTunes but I'm not sure how to put all of my files from my iPhone to my new iTunes on my new computer without completely wiping out everything. Any help will be much appreciated!
  • Music won't sync to iphone when i sync itunes? I plug my iphone 4 into my computer, and sync my itunes stuff. It syncs the contacts, calendars, apps, everything except my music.
  • Iphone 6 plus. Can't sync music from MAC computer? I have the iphone 6 plus and have been trying to sync music from my pc which is also an apple product but when i plug it in iphoto automatically opens up but its not recognizing itunes. I had a tech to look at it but he couldnt figure it out either. I tried everything i could think of including contacting apple. I find it weird that it recognizes iphoto but not itunes.