What is the M3U file format?
.m3u (short for MP3 URL) is a file extension used by playlist files. .m3u files are supported by many multimedia players and do not store actual multimedia data - they hold only references to media in the form of file lists and file locations. .m3u files typically contain references to audio files, although they can also hold references to video files and internet radio streams.
.m3u file structure
.m3u files store data in plain text format. A basic .m3u file is simply a list of file paths or URLs, one entry per line. The Extended M3U variant begins with the literal header line #EXTM3U and uses #EXTINF: directive lines to supply per-track duration and title metadata immediately before each entry. File references can be relative or absolute paths, or full remote URLs pointing to live streams.
Additional information
.m3ufiles are used for queuing media to be played by a given multimedia player in a particular order.- The format was originally developed for the Winamp media player, but is now widely supported by other players and streaming software.
- The sibling format .m3u8 is identical in structure but saved as UTF-8, making it better suited for filenames containing non-ASCII characters;
.m3uuses the local system codepage. - Common alternatives include .pls and .xspf playlists.
Security & safety
RISK: MEDIUMThe M3U file itself is harmless text. The real risks are contextual: (1) IPTV M3U lists frequently point to pirated/illegal streams - loading an unknown M3U can expose you to copyright issues and to malicious or fake stream URLs; (2) entries are arbitrary URLs, so a malicious M3U could point a vulnerable player at a crafted stream - keep your player updated; (3) 'M3U converter/IPTV' searches surface adware-laden downloaders. Inspect an unfamiliar M3U in a text editor before loading it, and only use channel lists from sources you trust.
Format details
in a nutshellPrograms that open M3U files
Technical details
deep spec| File type | Plain-text playlist - contains file paths or URLs pointing to media, not the media data itself |
| MIME type | audio/x-mpegurl (also recognized as audio/mpegurl) |
| Character encoding | Local/ANSI system codepage; the sibling .m3u8 format uses UTF-8 instead |
| Extended M3U header | #EXTM3U on the first line signals the Extended M3U variant with per-track metadata support |
| Per-track metadata directive | #EXTINF:<duration_seconds>,<title> placed on the line immediately before each media entry |
| Comment and directive marker | Lines beginning with # are treated as directives or comments and are not interpreted as media entries |
| Supported entry types | Relative file paths, absolute file paths, and full remote URLs (HTTP, HTTPS, RTSP, MMS) |
| Line endings | Both LF (Unix-style) and CRLF (Windows-style) are accepted by compliant players |
| Originating application | Nullsoft Winamp; no formal standards body has ever ratified the format |
| Sibling format | .m3u8 - structurally identical to Extended M3U but saved as UTF-8, required by HLS streaming |
| HLS (HTTP Live Streaming) | Apple's HLS adaptive-bitrate streaming protocol uses .m3u8 files built on the Extended M3U structure |
| Typical use cases | Ordered local music queues, internet radio playlists, IPTV channel lists |
| File size | Usually a few bytes to a few kilobytes - stores text references only, not audio or video data |
| Common alternatives | .pls (Shoutcast), .xspf (XML-based), .wpl (Windows Media), .asx (Windows Media) |
| Released | Late 1990s (Winamp) |
| Specification | en.wikipedia.org |
M3U conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about M3U files.