Can i transfer all my music from my iPhone to an empty iTunes library?

How do i do this? I've been trying and i need a way to get all music (not just what was bought on iTunes) into an empty library of iTunes
Phone-->computer

All you need is the USB cable for your phone and plug it into your computer. From there, the music off your phone will transfer to your computer and into the empty iTunes library

  • Transfer Music On Iphone To Itunes Library? I have almost 800 songs on my itunes library, and around 1000 songs on my iphone. I don't know what songs are missing from my itunes library, and really don't want to manually do it. (I'm transferring iphone music to Ipod). Is there any way to copy my iphone music to my itunes library? Thanks! PS. I have an Iphone 4 If I need some type of software, please cite it and include download link if possible.
  • My itunes library is empty but i have songs in my iphone. Um Hey okay so here's the problem. My desktop was sent to get repaired then when i got it back, itunes was gone so was all of my songs and all. So i installed iTunes back from the apple website then i logged into my apple ID and stuff. But all of my songs are well basically gone but iphone still do. So what I do? I tried backing it up but nothing happened.
  • I'm not able to transfer music from ITunes Library to IPhone 4? I have only recently bought IPhone 4, I have also done sync, but I'm not able to transfer. I have transferred songs from my PC to ITunes but from there I'm not able to transfer it to phone Pl.guide step by step thanks in advance
  • How to transfer my free music to my IPhone music library? I'm new to iPhones so bare with me. I downloaded an app to download music for free, and the music saves in that app. What I want to do is transfer those songs to my iPhone music library so I can just tap the music tab (iTunes I guess) and listen to my songs. How can I do that?