Free online XML to M3U converter
Convert media paths and stream URLs from application-specific XML playlists to editable M3U files.
Convert XML to M3U online - free
Your file is processed automatically and deleted right after you download the result, or after 3 hours at the latest.
Import a file from a URL
Paste a direct link to the file. We download it to our server and it is converted exactly like an upload.
How it works
-
1/3
Upload your .xml file
Click to browse to select your file you want to convert or simply drag & drop your file into selected area.
-
2/3
Perform .xml to .m3u conversion
After successful file upload, click to convert when you are ready.
-
3/3
Download converted .m3u file
Conversion result is ready to download.
Conversion statistics: XML to M3U
Most common problem with uploaded files: The file content is invalid or malformed. Please check your XML file and try again.
Updated November 21, 2026, from conversions on 101convert.com
How to convert xml to m3u file
- Text files
- No ratings yet.
A media player, IPTV application, or portable device may require an M3U playlist even when a library or playlist was exported as XML. This conversion transfers media paths or stream URLs and optional titles; it does not convert the audio or video files.
What the XML format is
XML is a human-readable markup format that stores data in nested elements and attributes. Music managers, media players, podcast tools, IPTV systems, and library applications use it for catalogs, metadata, saved searches, and playlists.
XML has no universal playlist structure. A media location may appear in an element such as <location>, <path>, or <file>, or in an attribute such as url. Open the file in a code editor and identify the element or attribute containing each playable file path or URL. XML that contains only settings, ratings, artwork references, or catalog metadata cannot be converted into a useful playlist without additional media-location data.
What the M3U format is
M3U is a plain-text playlist format supported by VLC, foobar2000, Winamp, Kodi, many IPTV applications, and portable media devices. A basic playlist contains one local filename or URL per line:
#EXTM3U
/music/song-one.mp3
https://example.com/stream
Extended M3U adds an optional #EXTINF line containing the duration and display title:
#EXTM3U
#EXTINF:-1,Song title
/music/song-one.mp3
M3U is smaller and easier to edit than most XML exports, but it normally preserves only media locations and limited per-entry display metadata. M3U8 is an M3U playlist encoded as UTF-8; some older players require the .m3u8 extension, while others accept UTF-8 content in a file named .m3u. M3U8 is also used by HTTP Live Streaming, whose playlists contain additional directives and are not interchangeable with every ordinary media playlist.
How to convert XML to M3U
Use the source application first. If the XML came from a music manager, DJ program, IPTV system, or media library, check that application's playlist export function and select M3U or Extended M3U. A schema-specific export preserves more information and avoids guessing which XML elements contain playable entries. For example, an application that imports its own XML library may be able to save the imported playlist directly as M3U.
Use VLC for a desktop conversion after identifying the entries. Add the referenced files or stream URLs to VLC's playlist, then choose Media → Save Playlist to File and select M3U or Extended M3U. VLC does not parse arbitrary XML schemas, so it cannot directly convert every XML file; the media entries must already be open in VLC or added manually.
Use a local script for an XML schema that has no export tool. Save the following as xml_to_m3u.py. Adjust the entry names and location names to match the source file:
import sys
import xml.etree.ElementTree as ET
def local_name(tag):
return tag.rsplit('}', 1)[-1].lower()
def value(node, names):
wanted = {name.lower() for name in names}
for child in node.iter():
if child is node:
continue
if local_name(child.tag) in wanted and child.text and child.text.strip():
return child.text.strip()
for key, text in node.attrib.items():
if local_name(key) in wanted and text.strip():
return text.strip()
return ''
source, output = sys.argv[1], sys.argv[2]
root = ET.parse(source).getroot()
entry_names = {'track', 'item', 'media'}
location_names = {'location', 'path', 'file', 'url'}
title_names = {'title', 'name'}
with open(output, 'w', encoding='utf-8', newline='\n') as playlist:
playlist.write('#EXTM3U\n')
for entry in root.iter():
if local_name(entry.tag) not in entry_names:
continue
location = value(entry, location_names)
if not location:
continue
title = value(entry, title_names) or location
playlist.write(f'#EXTINF:-1,{title}\n{location}\n')
Run it in a terminal with:
python xml_to_m3u.py library.xml playlist.m3u
Change entry_names when the source uses another record element, such as song or channel. Change location_names when paths or URLs use different element or attribute names. The script handles ordinary XML namespaces by comparing local element names, but entries nested in an unusual structure still require inspection and adjustment.
Open the generated file in a text editor and test several entries before importing it. An online XML editor or validator can help inspect an unfamiliar file, but generic online converters cannot reliably map arbitrary XML playlist schemas to M3U. Do not upload library files containing private paths, stream credentials, or subscription URLs unless the service's privacy and retention terms are acceptable.
Compatibility and quality limitations
- Absolute paths such as
C:\Music\song.mp3work only where that drive and directory exist. Relative paths are more portable, but players differ in how they resolve them; store the playlist in a predictable location and test it on the target device. - Use UTF-8 for non-ASCII filenames and titles. Some older devices require
.m3u8; others support only legacy encodings or plain M3U, so follow the target software's documentation. - Preserve valid HTTP or HTTPS stream URLs exactly. A playlist cannot repair an expired URL, a restricted stream, an unsupported codec, or missing authentication.
- Convert file URLs such as
file:///C:/Music/song.mp3only when the target player supports them; otherwise change them to the local path format expected by that player. - Album art, ratings, cue points, authentication data, nested playlist structure, and application-specific XML fields are generally lost. M3U provides only limited per-entry metadata through directives such as
#EXTINF. - Validate XML before parsing it. Malformed XML, encrypted exports, compressed files, and XML that stores database identifiers instead of paths require the originating application or a custom parser.
XML vs M3U: format comparison
How the XML and M3U formats compare on the properties that matter most for this conversion.
| Property | .XML Extensible Markup Language | .M3U M3U playlist |
|---|---|---|
| Open standard | Yes | Partly open |
| Compression | Uncompressed | Uncompressed |
| Typical file size | Small | Very small |
| Opens in a web browser | Yes, natively | Partial |
| Further editing | Easy | Easy |
| Metadata support | Basic | Basic |
| Plain-text readable | Yes | Yes |
| Best used for | Data exchange | Music |
| Introduced | 1998 | 1996 |
| Developer | W3C | — |
| MIME type | application/xml | audio/x-mpegurl |
Information about file extensions and file types is provided by File-Extensions.org
The database currently does not contain any direct xml file converter links.
Frequently asked questions
Is the XML to M3U converter free?
Yes, converting XML to M3U on 101convert.com is completely free. No registration, email address or installation is required. If you need a higher file size limit or want to convert more files at once, see our plans.
How large can my XML file be?
You can upload XML files up to 3 MB and convert up to 3 files at once in a single batch. With a paid plan the limit is up to 200 MB per file and 100 files at once, see our plans.
What happens to my uploaded files?
Files are processed automatically. Your upload is deleted from our servers right after you download the result, or after 3 hours at the latest. We never view or share your files.
Do I need to install any software to convert XML to M3U?
No. The XML to M3U conversion runs entirely online in your browser and works on Windows, Mac, Linux, Android and iPhone.
Did the conversion fail?
In most cases, the cause is an incorrect file format. Please upload a valid XML file for this XML to M3U conversion. Occasionally, the issue may be on our side. We analyze recurring conversion failures and disable or fix the converter if we detect a defect.
Will all my XML playlist information be preserved in M3U?
No, only media paths or stream URLs and supported playlist details can be represented reliably in M3U. XML elements such as nested structures, application-specific metadata, artwork, and custom settings may be omitted or flattened.
Will an XML to M3U conversion keep the playlist order?
Yes, the recognized media entries normally remain in their original order. Entries stored in an XML structure that is not recognized as a playlist may be skipped or appear without their original grouping.
Why are some XML files empty or missing tracks after conversion to M3U?
XML is a general-purpose format, so it is not automatically a playlist unless its structure matches a supported media-list format. Invalid XML, unsupported element names, missing path or URL values, and nested playlist data can prevent entries from being recognized.
Will the M3U file still be editable, and will the media files be copied?
The resulting M3U is editable plain text and contains references to media locations rather than the media files themselves. Relative paths and application-specific locations may stop working if the M3U file is moved or opened in a different environment.