Skip to content
XCodes IPTV
IPTV Basics & Technology

What Is an M3U Playlist? The .m3u File Format Explained

What an M3U playlist is, how .m3u files are structured, how extended M3U tags work for IPTV, and how M3U compares with other formats like WPL and PLS.

By XCodes IPTV 4K Editorial TeamUpdated 4 min read

An M3U playlist is a plain-text file that lists media to play, one item per line, usually with the extension .m3u (or .m3u8). Each entry points to a song, video file or stream address. In IPTV, an M3U playlist lists every channel: its name, group, logo and stream URL. A player app reads the file and turns it into a channel list. You can open one in any text editor to see exactly what's inside.

This guide explains the format, the extended tags IPTV uses, and how M3U compares with other playlist formats.

Where the M3U format comes from

M3U started as a simple playlist format for music players in the 1990s. Because it's just a list of file paths or web addresses, it was easy for other software to support, and it became one of the most widely recognised playlist formats. Today it's used for music, internet radio, video streaming and IPTV.

  • .m3u files traditionally use the system's default text encoding.
  • .m3u8 files are M3U files saved in UTF-8, which handles accented characters and other alphabets. Apple's HLS streaming also uses the .m3u8 extension for a different purpose; see what an M3U8 file is.

What's inside a basic M3U file

At its simplest, an M3U file is a list of locations:

C:\Music\track01.mp3
C:\Music\track02.mp3
http://example.com/stream/radio

A player reads it from top to bottom and plays each item in turn.

Extended M3U: the version IPTV uses

IPTV playlists use extended M3U, which adds information lines starting with #:

#EXTM3U
#EXTINF:-1 tvg-id="news.example" tvg-logo="http://example.com/logo.png" group-title="News",Example News HD
http://example-server.com:8080/live/user/pass/1001.ts
#EXTINF:-1 tvg-id="movies.example" group-title="Movies",Example Movie Channel
http://example-server.com:8080/live/user/pass/1002.ts
Line or tagWhat it means
#EXTM3UHeader: tells the player this is an extended M3U file
#EXTINF:-1Information about the next entry; -1 means "live, no fixed length"
tvg-idThe channel's ID, used to match TV guide data
tvg-logoAddress of the channel's logo image
group-titleThe category the channel appears under
Text after the commaThe channel name shown in the app
Next lineThe stream address the player opens

The extended format is also the basis of HLS playlists, which are specified in RFC 8216 (opens in a new tab), though HLS uses different tags.

M3U file vs M3U URL

You'll meet M3U playlists in two forms:

  • A file (playlist.m3u) that you download and open in a player.
  • A URL (a web address) that returns the playlist when an app requests it. IPTV services usually provide this, because it updates automatically when the channel line-up changes.

Our guide to what an M3U URL is explains links in detail, including how to keep yours private.

How to open an M3U file

DeviceEasiest optionGuide
Windows, Mac, LinuxVLC media playerWatch IPTV in VLC
Android, Fire TVAn IPTV player such as TiviMate or IPTV SmartersIPTV players
Samsung, LG TVsA TV-store player that accepts playlist uploadsSmart IPTV playlist upload
Any deviceAny app that lists "M3U" supportBest M3U player apps

To just inspect a file, open it in a text editor such as Notepad or TextEdit.

M3U vs other playlist formats (WPL, PLS, XSPF)

FormatStructureTypical useIPTV support
M3U / M3U8Plain text, one entry per lineMusic, radio, IPTV, HLSUniversal
WPLXMLWindows Media Player playlistsRare
PLSINI-style textInternet radioLimited
XSPFXMLOpen-source music playersRare

M3U or WPL? For IPTV, always M3U: IPTV players don't read WPL. WPL is only useful inside Windows Media Player for local music.

M3U vs Xtream Codes

Many IPTV services offer both an M3U link and an Xtream Codes login. Both give access to the same content, but Xtream Codes keeps films, series and the guide better organised. See M3U vs Xtream Codes and what Xtream Codes is.

Common M3U problems

  • Playlist won't load: check the link, account status and file size. See IPTV playlist not loading.
  • Channels have no TV guide: the tvg-id values don't match the EPG source, or no EPG link was added.
  • Strange characters in names: the file isn't UTF-8. Use the .m3u8 version, or re-save it as UTF-8.

Frequently asked questions

What is an M3U file?

A plain-text playlist that lists media files or stream addresses, one per line. IPTV uses an extended version with channel names, logos and groups.

Is an M3U file safe?

The file itself is just text and can't run code. The streams it points to can be anything, though, so only use playlists from services you trust and that are licensed in your country.

Can I edit an M3U playlist?

Yes. It's plain text, so you can delete groups or rename channels in a text editor. Keep the #EXTINF line and its stream address together.

Where can I get an M3U playlist?

From your IPTV service, usually in your account area or activation email. Avoid "free M3U lists" shared online: they're typically unlicensed and unreliable.

Conclusion

An M3U playlist is a simple text list of streams. That simplicity is why almost every media player can read it. For IPTV, the extended format adds names, logos, groups and guide IDs. Open it in VLC to test, use a dedicated player for everyday viewing, and keep your playlist link private. For the bigger picture, see IPTV technology explained.

Need a hand with setup?

Tell us your device and app — we'll walk you through it.