Transfer Iphone songs to another computer?

Is there a way to transfer songs on my Iphone 5 to another itunes library on a different computer? Is there a program I could use? I remember using one similar about a year ago, but I can't remember the name of it. I plan on buying a new computer and wiping and selling my macbook pro which my iphone is currently synced to, but I don't want to lose my 500+ songs on there. I know apps are just transfered as purchases and my photos are already saved to an external, so its just the songs i'm worried about.

It's easy. Just copy the songs onto the new computer then do as follows:
1. Open iTunes
From the File menu, choose one of the following choices:

2a. Mac: Add to Library
2b. Windows: Add File to Library or Add Folder to Library

3. Navigate to and select the file or folder that you want to add

1. Connect your iPhone to computer.
2. Install and run iPhone Transfer software http://www.video-dvd-ripper.com/iphone-transfer/ on your computer.
3. Your iPhone files will be displayed on its main interface. Ticket music files and click export to computer button.

  • Transfer iPhone to another computer? Going to college, need to transfer and sync iPhone from a Windows Vista pc to a Windows 8 laptop. Can this be done without restoring to factory settings?
  • How to transfer songs from one iTunes account to another? I have an iPod nano that is connected to an iTunes account on the computer my entire family uses. Today, I got an iPhone 4 and I had to start a new iTunes account with a new email and Apple ID. Is there any way I can transfer the songs and TV shows from my old account to the new one on my phone?
  • How to transfer songs from my iPhone to my iTunes on my computer? A while a go I did a transfer of iTunes between two computers, and about 200 songs got lost along the way, but they are still on my iPhone. Is there a way of syncing all these songs onto iTunes? (these songs weren't bought on iTunes though, so don't tell me to 'transfer purchases')
  • How to transfer songs from another apple ID into your iTunes? I want to have the songs that I downloaded on my iPhone from my other apple ID account I want it in my other account on my computer how do I transfer them? I have them in my music but not in my iTunes on my computer