keepcalculator

06 Numbers and Powers

Export Playlists from iTunes for Mac: 4 Ways

Card No. 06·76021 · Updated · Standard formula, shown below

If you need to move your iTunes playlists to another computer, share them with a friend, or back them up, you can export them directly from iTunes on your Mac. The method you use depends on what you want the playlist to do: a simple text list, a file another Apple device can read, or a transfer that includes the actual music files. This guide covers the four main ways to export playlists from iTunes for Mac, with step-by-step instructions for each.

What an iTunes Playlist Export Actually Is

An iTunes playlist is a reference file—it lists songs by their file paths and metadata, but it does not contain the audio itself. When you export a playlist, you are saving that list of references in a specific format. The three formats you will encounter are:

  • XML – A plain-text format that iTunes and many third-party apps can read. It contains song titles, artists, album names, and file locations.
  • M3U / M3U8 – A simple text file with one file path per line. Most media players (VLC, Windows Media Player, etc.) can open these.
  • Copy to folder – Not a single file, but a folder containing the actual audio files plus an XML playlist. This is the only method that moves the music itself.

Knowing which format you need is the first step. If you just want a list of song names for a document, XML or plain text works. If you want to play the playlist on another device, M3U is more portable. If you want to move the music to another Mac or PC, you need the copy-to-folder method.

Method 1: Export as XML (For Backup or Moving to Another Mac)

This is the most common export method because it preserves all playlist metadata (ratings, play counts, dates added). Here is how to do it in current versions of iTunes (12.x) on macOS:

  1. Open iTunes and select Music from the library dropdown in the top-left corner.
  2. Click on Playlists in the sidebar to see all your playlists.
  3. Select the playlist you want to export by clicking it once.
  4. Go to the menu bar and click File > Library > Export Playlist…
  5. In the save dialog, choose a location, and set the Format dropdown to XML.
  6. Click Save.

The resulting .xml file contains every song in that playlist with its full file path. To import it on another Mac, open iTunes, go to File > Library > Import Playlist… and select that XML file. The playlist will appear, but the songs will only play if the audio files are in the same locations as listed in the XML (i.e., you also copied the music folder).

Method 2: Export as M3U (For Other Media Players)

If you want to play your iTunes playlist in VLC, Windows Media Player, or on a car stereo that supports USB drives, M3U is the better choice. The steps are nearly identical:

  1. Select the playlist in iTunes.
  2. Go to File > Library > Export Playlist…
  3. In the Format dropdown, choose M3U or M3U8 (M3U8 is the UTF-8 encoded version, which handles non-English characters better).
  4. Save the file.

One important caveat: the M3U file contains absolute file paths (e.g., /Users/yourname/Music/iTunes/iTunes Media/Music/Artist/Album/Song.mp3). If you move the music files to a different folder or drive, the M3U will break unless you edit the paths or keep the same folder structure. Some players can handle relative paths, but iTunes always writes absolute ones.

Method 3: Copy Music to a Folder (Includes the Audio Files)

This is the only export method that actually copies the song files themselves. It is ideal for moving your entire library or a specific playlist to an external drive or another computer.

  1. Select the playlist you want to copy.
  2. Go to File > Library > Organize Library…
  3. Check the box for Consolidate files – this copies all the music into the iTunes Media folder (so the paths in the XML will be correct).
  4. Click OK and wait for the consolidation to finish.
  5. Now, with the playlist still selected, go to File > Library > Export Playlist… and choose XML. Save it.
  6. In Finder, navigate to ~/Music/iTunes/iTunes Media/Music and copy the entire Music folder to your external drive or new computer.
  7. On the new computer, copy that Music folder to the same location (~/Music/iTunes/iTunes Media/), then import the XML playlist.

This method preserves the file paths, so the playlist will work without re-linking songs. It is the most reliable way to move a playlist with its music intact.

Method 4: Share via iCloud or AirDrop (Without Exporting)

If you just want to get a playlist onto another Apple device (iPhone, iPad, another Mac) and you use iCloud Music Library or Apple Music, you do not need to export at all. Simply enable Sync Library in iTunes > Preferences > General. Your playlists will appear on all devices signed into the same Apple ID. This is not an export in the file sense, but it achieves the same result for personal use.

For a quick one-off transfer to a friend’s Mac, you can AirDrop the XML file, but they will still need the actual audio files to hear the songs.

Common Problems and Fixes

Here are the issues people run into most often when exporting playlists:

  • “Export Playlist” is greyed out. This happens when you have not selected a specific playlist—click the playlist name in the sidebar first. It also happens if you are viewing the “Songs” view instead of the Playlists view.
  • The XML file is huge. That is normal—it lists every song’s metadata and file path. A 100-song playlist can be 100–200 KB.
  • Imported playlist shows “!” next to songs. This means iTunes cannot find the audio file. The file path in the XML does not match the current location. Use the File > Library > Import Playlist method, then manually locate the files by right-clicking a song and choosing Show in Finder.
  • M3U does not work in my car. Many car stereos require the M3U file to be in the same folder as the music files, with relative paths. iTunes writes absolute paths, so you may need to use a text editor to change /Users/name/Music/... to just Song.mp3 (or use a tool like Playlist Editor).
  • I exported a playlist but it is empty when I import it. This usually happens if you exported a smart playlist. Smart playlists are dynamic—they do not export the current song list, only the rules. Export a regular playlist instead.

Comparison: XML vs M3U vs Copy Folder

To help you choose, here is a quick comparison:

  • XML – Best for iTunes-to-iTunes transfers, preserves metadata, but only works with Apple software or XML-aware apps.
  • M3U – Best for third-party players, lightweight, but loses metadata and breaks if file paths change.
  • Copy folder – Best for moving music to a new computer, includes audio files, but takes up disk space and requires manual file management.

There is no “best” format—it depends on your goal. For most users, the XML export plus a manual copy of the music folder is the safest bet.

Frequently Asked Questions

Can I export all my playlists at once?

No, iTunes only allows exporting one playlist at a time. To export all, you would need to repeat the process for each playlist, or use a third-party tool like iMazing or Senuti that can batch-export playlists.

Does exporting a playlist include the songs?

No. Exporting a playlist only saves the list of song references. To include the audio files, you must use the “Consolidate files” and copy the Music folder method described above.

Will the exported playlist work on Windows?

Yes, if you use the M3U format, Windows Media Player and most other players can open it. The XML format is also readable by iTunes for Windows, but the file paths will need to match the Windows drive structure (e.g., C:\Users\...).

My playlist has DRM-protected songs. Will they play after export?

If the songs are DRM-protected (old iTunes Plus purchases), the exported playlist will list them, but they will only play on a device authorized with the same Apple ID. Apple stopped selling DRM-protected music in 2009, so this only affects very old purchases.

Can I export a playlist as a PDF or text file?

Not directly. But you can export as XML, then open that XML in a text editor and copy-paste the song titles. Or, you can select all songs in a playlist, copy them (Cmd+C), and paste into a text document—this gives you a simple list of song names.

What happens if I use Apple Music instead of iTunes?

In macOS Catalina and later, iTunes was replaced by the Music app. The export options are the same: select a playlist, then go to File > Library > Export Playlist… and choose XML or M3U. The steps are identical.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →