How to transfer music on my iPhone to my itunes library?

I got a new laptop and would like to transfer all my music on my iPhone to iTunes.but, i downloaded all my music online somewhere, not from iTunes. And the music i downloaded online is not syncing. How do i transfer it?

Added (1). Transferring them from my itunes account only syncs my itunes purchases, not the music i downloaded online.

File --> devices ---> transfer purchases

Try

1. Download a program call iExplorer -> http://www.macroplant.com/iexplorer/ and install
2. Turn off auto sync in iTunes, go to Preferences > Devices > check "Prevent iOS hardware from syncing automatically", then quit iTunes
3. Connect your iPhone to your computer using the supplied USB cable
4. Launch iExplorer and click the arrow next to the iOS devices name, then click the arrow next to "Media" and then again next to "iTunes_Control"
5. Drag the entire "Music" folder to a known location like on the desktop, it will begin to transfer your music from the iPhone to your computer.
6. Once finished, disconnect your iPhone and launch iTunes
7. Copy your music by dragging it from your desktop into the iTunes window to import

  • 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.
  • 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?
  • How to transfer music from my iphone's music library to my itunes library? How do you take the music from your Iphone's music tab and put it on a playlist outside of the iphone section? My iphone broke and I need to transfer my music.