What Is an M3U Playlist? Format, Tags and How to Use One

· 3 min read

An M3U playlist is a plain text file that lists streams. Your IPTV player reads it and builds a channel list. Once you know the handful of tags it uses, you can read, fix and trim any playlist yourself.

M3U started as a format for music playlists in the 1990s. IPTV adopted it because it's simple: a text file with one stream address per entry, plus a line of information about each one. M3U8 is the same thing saved as UTF-8 text, which matters for channel names with letters like č, ş or ß. (HLS video streams also use .m3u8 files internally, which is a different use of the same extension.)

What an M3U playlist looks like

Open one in a text editor and you'll see something like this:

#EXTM3U url-tvg="https://example.com/guide.xml"
#EXTINF:-1 tvg-id="news.example" tvg-name="Example News" tvg-logo="https://example.com/news.png" group-title="News",Example News HD
https://stream.example.com/live/news/index.m3u8
#EXTINF:-1 tvg-id="sport1.example" tvg-logo="https://example.com/sport1.png" group-title="Sports",Sport 1
https://stream.example.com/live/sport1/index.m3u8

Every playlist starts with #EXTM3U. After that, each channel is two lines: an #EXTINF line describing it and the stream URL below.

The tags that matter

TagWhat it does
#EXTM3UMarks the file as an extended M3U. Can carry url-tvg or x-tvg-url pointing to the XMLTV guide.
#EXTINF:-1Starts a channel entry. -1 means "live, no fixed length".
tvg-idThe ID used to match the channel to its TV guide entry. The most important tag for a working EPG.
tvg-nameAlternative name for guide matching.
tvg-logoURL of the channel logo.
group-titleThe category the channel appears in: News, Sports, Kids, a country, and so on.
catchup, catchup-daysTell players the provider keeps past programmes, and for how long.
Text after the last commaThe channel name shown in the list.

M3U link vs M3U file

Providers usually give you an M3U link, a URL that returns the playlist. It often looks like http://provider.example:8080/get.php?username=…&password=…&type=m3u_plus. A link is better than a file because the player fetches it again and picks up new channels automatically.

An M3U file is a saved copy. It's useful when you've edited a playlist by hand, but it won't update by itself.

A link with get.php?username=…&password=… is actually an Xtream Codes server. You'll often get a better experience entering it as Xtream Codes, which adds the movie and series libraries. See M3U vs Xtream Codes.

How to edit an M3U playlist

  • Use a plain text editor such as Notepad++, VS Code or TextEdit in plain text mode. Never Word.
  • Keep #EXTM3U as the first line.
  • To remove a channel, delete both its #EXTINF line and the URL below it.
  • To move channels between categories, change group-title.
  • Save as UTF-8.

Most players can hide categories without editing anything. In LUMA TV you choose categories per TV in the dashboard, so you rarely need to touch the file.

How to open an M3U playlist on a TV

Paste the link, or upload the file, in your IPTV player. With LUMA TV you do this in the web dashboard on your phone or computer, and the TV picks it up. Step-by-step instructions: how to add an M3U playlist on Android TV.

Want a legal playlist to test with? LUMA TV publishes a small demo playlist of public test streams.

Common M3U problems

  • "Playlist failed to load": a typo in the link, an expired subscription, or the provider blocking your country or IP.
  • No guide: missing or wrong tvg-id values, or no XMLTV link. See the EPG guide.
  • Strange characters in names: the file isn't UTF-8.
  • Some channels play, others don't: usually the provider's stream, not the playlist.

Frequently asked questions

Are M3U playlists legal?

The format is just a text file. Whether a playlist is legal depends on whether its streams are licensed. Free public lists online are often full of unlicensed or dead streams.

What's the difference between M3U and M3U8?

For IPTV playlists, only the text encoding. M3U8 is UTF-8. Players accept both.

Keep reading