What is an M3U file
The format, what each line means, and what a playlist file does not contain.
Plain-language guides to M3U and M3U8 files: what the format is, how a file is laid out, and what to check when one will not open.
Start with what an M3U file is if you have never opened one. Read the anatomy guide if you want to understand each line of a file. If a file will not open in your player, go to the not-opening guide. To check the structure of your own file, use the inspector.
The first guides follow the order most readers need. The first explains the format itself:
a plain text file that lists media addresses, usually with a .m3u or
.m3u8 extension, and the difference between the two extensions. The second walks
through a complete example line by line, so you can match each part of a real file to what it
does. The third covers the failures that come up most often when a player or editor will not
open a playlist.
Each guide links to the others where a reader would need the next step, and each one states what it does not cover. None of them explains how to find or obtain media. They describe the file format only, and they assume you already have a file you are entitled to open.
Keep a copy of any playlist before you edit it. Most problems come from a small change, such as a line break saved in the wrong encoding or a missing header, so a copy makes it easy to compare. The inspector reads a file in your browser and reports the header, the entries and any line that does not follow the structure, which is often the quickest way to find the cause.
The format, what each line means, and what a playlist file does not contain.
A worked example, line by line: the header, the metadata line and the address.
The usual causes when a player or editor will not open a playlist file.
The encoding difference, the HLS tags, and why renaming a file changes nothing.
Line-by-line list versus INI-style keys, and why internet radio still ships PLS.
Flat text versus XML: escaping, URIs and millisecond durations.