What Is an M3U Playlist? M3U and M3U8 Explained

M3U files are just text lists of stream links, but they power most IPTV setups. Here's what's inside one, how M3U differs from M3U8, and how players use them.

Get IPTV Player

If you've looked into IPTV at all, you've seen "M3U" everywhere. Providers send M3U links, players ask for M3U URLs, and forums are full of M3U questions. It sounds technical, but an M3U playlist is one of the simplest file formats there is.

The short answer

An M3U file is a plain text list of media links. Each entry points to an audio or video stream, usually with a name and some extra information. A player reads the list, shows you the channel names, and plays the stream you pick.

That's it. The playlist doesn't contain any video itself. It's like a list of addresses, not the houses.

Where M3U came from

The format dates back to the 1990s, when it was used for MP3 music playlists in desktop media players. The name comes from "MP3 URL". Because it was simple and widely supported, it was later adopted for internet radio and then for streaming video and IPTV.

The M3U playlist file format

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

#EXTM3U
#EXTINF:-1 tvg-id="news1" tvg-logo="https://example.com/logo.png" group-title="News",Example News
https://example.com/live/news1/index.m3u8
#EXTINF:-1 tvg-logo="https://example.com/logo2.png" group-title="Music",Example Music TV
https://example.com/live/music/stream.ts

Line by line:

  • #EXTM3U is the header that marks the file as an "extended" M3U playlist.
  • #EXTINF:-1 starts the information for one entry. The -1 means the length is unknown, which is normal for live streams.
  • tvg-logo is a link to the channel's logo image.
  • group-title puts the channel in a category, like News, Sports or Music.
  • The text after the comma is the channel's display name.
  • The next line is the actual stream address.

Players like IPTV Smart Player read these tags to show channel logos, sort channels into groups, and let you search by name.

M3U vs M3U8

You'll see both extensions. The difference is small but worth knowing.

M3U M3U8
Text encoding Not specified (often older encodings) UTF-8
Handles non-English characters Sometimes garbled Reliably
Common use IPTV channel lists IPTV lists and HLS streams

M3U8 is simply an M3U file saved in UTF-8 encoding, which handles every language's characters properly. Channel names in Arabic, Hindi, Chinese or with accented letters display correctly.

There's a second meaning that confuses people: M3U8 is also the playlist format behind HLS (HTTP Live Streaming), the most common way live video is delivered online. In that case, the M3U8 file lists small video segments that the player downloads one after another. So an IPTV channel list (an M3U8) might link to channels whose streams are themselves M3U8 files. Both are text playlists; they're just used at different levels. Our M3U8 playlist guide covers M3U8 in more depth, including how to play an M3U8 link.

How you get an M3U playlist

Usually in one of three ways:

  1. As a URL from a provider or service, something like https://provider.example/playlist.m3u. The player downloads the list from that address, and it can be refreshed when the provider updates it.
  2. As a file you've downloaded or been sent, saved on your device.
  3. Generated from an Xtream Codes login, where you enter a server address, username and password instead. See Xtream Codes vs M3U for the difference.

Playing an M3U playlist

You need a player that understands the format. On Android, IPTV Smart Player accepts M3U and M3U8 URLs, files from your device, Xtream Codes logins and single stream links. Our step-by-step guide on adding an M3U playlist on Android walks through it.

It's worth repeating: a player is just a player. It doesn't come with channels. You need a playlist from a source you're entitled to use. If you're not sure where to find legitimate ones, see free and legal IPTV playlists and is IPTV legal?

Frequently asked questions

Can I edit an M3U file?

Yes. An M3U file is plain text, so you can open it in any text editor to rename channels, remove ones you don't watch, or reorder them. Save it with UTF-8 encoding to keep special characters intact.

Why don't some channels in my M3U playlist work?

The playlist is only a list of links. If a stream's server is down, has moved, is geo-restricted or needs a login, that channel won't play. Only the playlist's source can fix that.

Is an M3U file safe to open?

The file itself is just text and can't do anything harmful. The risk is in where the links point, so only use playlists from sources you trust and are entitled to use.

What app do I need to play an M3U playlist?

Any IPTV or media player that supports M3U. On Android, IPTV Smart Player accepts M3U and M3U8 links and files, Xtream Codes logins and single stream URLs.

IPTV Smart Player icon
IPTV PlayerPlay your own M3U, M3U8 and Xtream playlists.
More about IPTV Player

Keep reading

All posts
IPTV Player

IPTV Keeps Buffering? 10 Fixes That Actually Work

Buffering is the top IPTV complaint. Find out whether your Wi-Fi, device, internet provider or the stream itself is to blame, and how to fix each one.

IPTV Player

Xtream Codes vs M3U: What's the Difference and Which Should You Use?

Many IPTV services offer both an M3U link and Xtream Codes login details. Here's how they differ, the pros and cons of each, and which to choose.

IPTV Player

Best M3U8 Players: How to Play M3U8 on Windows, Mac, Android and Online

The best free M3U8 players for Windows, Mac, Android, iPhone and the browser, with steps to open an M3U8 link in each, find a stream's URL and fix errors.