Introduction
M3U is a plain text playlist: one track per line, given as a file path or a web address. It was first developed by Fraunhofer for its WinPlay3 player, around 1996, became popular with Winamp and is now read by almost every media player. An extended form adds a title and a length for each track. There is no formal specification.
A plain .m3u file uses the system’s local text encoding. The
.m3u8 extension marks the same format in UTF-8. Apple’s HTTP Live
Streaming also uses M3U8 files, with many extra tags, for video and audio
streams.
Structure
Each line is either a track or a comment. A track line is a path, relative to the
playlist or absolute, or a URL. Lines starting with # are comments, which
players skip, except for the extended directives. An extended M3U file begins with
#EXTM3U, and each track line is preceded by #EXTINF: with
the length in seconds (-1 when unknown), a comma and a display
title.
#EXTM3U
#EXTINF:215,Artist Name - First Song
Music/First Song.mp3
#EXTINF:-1,Internet Radio
https://radio.example.com/stream
The reference pages cover the file structure and the directives of an extended playlist.
Not described
M3U has no formal specification; these pages follow Wikipedia’s directive table, RFC 8216 and the behaviour of mpv. The explorer has no M3U plugin, so a dropped file shows as bytes.
Known, not yet covered
- Viewer: the simple and extended forms and their directives are not read.
- Reference: the
#EXT-X-tags of HLS belong to the M3U8 pages and are not repeated here.
Unknown
- Reference: how relative paths are resolved, and the text encoding of a
.m3ufile. - Reference: M3A (M3U Album) and the Album List for Winamp, named only in Wikipedia’s footnotes.
Also used for
- HTTP Live Streaming playlist – The HLS playlist: text tags listing stream versions and the segments to fetch.
Links
Software
- VLC media player – free player for almost any audio or video file, which opens and saves M3U playlists (Windows, macOS, Linux, mobile)
- Winamp – the music player that made M3U popular (Windows)
- foobar2000 – free music player and converter (Windows, macOS, mobile)
- MusicBee – free music player and library manager (Windows)
- mpv – free command-line media player (Windows, macOS, Linux)
Reference
- RFC 8216 – HTTP Live Streaming, which defines the extended M3U tags it uses