Skip to content
Vikings IPTV
Streaming Technology

What Is an M3U File? How to Open and Use One

An M3U file is a plain text playlist of media addresses. Learn what it contains, how M3U and M3U8 differ, how to open one and how IPTV uses the format.

By Vikings IPTV Editorial TeamUpdated 6 min read

A laptop showing code beside a book
Photo: Ehud Neuhaus / Wikimedia Commons · CC0 · cropped

M3U files turn up in two very different places. One is a music folder, where a small file keeps your tracks in order. The other is IPTV, where an M3U link is how a television service hands its entire channel list to a player app. It is the same simple format in both cases, and understanding it removes a lot of the mystery from IPTV setup.

What is an M3U file?

An M3U file is a plain text file that lists the locations of media files or streams, one per line. It contains no audio or video itself. A media player reads the list and plays each item from the address given. In IPTV, an M3U playlist lists TV channels and their stream addresses.

Because it is only text, an M3U file is tiny, opens in any text editor and can be created by hand.

Where the name comes from

M3U stands for MP3 URL. The format began in the 1990s as a way for music players to store playlists of MP3 files. It caught on because it was so simple, and it was later adopted for video streaming and then for television.

What is inside

There are two versions.

A basic M3U is just a list of addresses:

https://example.com/stream1
https://example.com/stream2

An extended M3U adds information about each item, and is what IPTV uses:

#EXTM3U
#EXTINF:-1 tvg-id="news.example" group-title="News",Example News
https://example.com/live/news
LinePurpose
#EXTM3UHeader that identifies an extended playlist
#EXTINFInformation about the next item: name, group, logo, guide ID
The addressWhere the stream or file is

Lines starting with # are instructions or information. Everything else is an address. That is the whole format. A fuller walkthrough of the tags is in how to create your own IPTV playlist.

M3U vs M3U8

This is the question people ask most, and the answer has two parts.

As a file format, the difference is text encoding. An M3U8 file is an M3U file saved in UTF-8, the encoding that handles accented letters and non-Latin alphabets correctly. Older M3U files could use other encodings. In practice, nearly every M3U file made today is UTF-8 anyway, so for an IPTV playlist the two extensions are interchangeable.

In streaming, .m3u8 also has a specific job. HLS, the streaming method used by most internet video, delivers each stream as a small M3U8 playlist that lists short video segments. So you meet M3U8 at two levels:

LevelWhat the playlist lists
Your IPTV playlistChannels: a name and an address for each
An HLS streamA single channel's video segments, updated every few seconds

That is why the address of a channel inside your playlist often ends in .m3u8. It is a playlist pointing to playlists. You do not need to do anything about this; the player handles it. How segments work is covered in how IPTV streaming works.

M3UM3U8
FormatText playlistText playlist
EncodingHistorically variedUTF-8
Used for IPTV playlistsYesYes
Used inside HLS streamsNoYes
Opens in the same playersYesYes

In IPTV you will usually be given a link rather than a file.

M3U fileM3U link (URL)
What it isA saved text file on your deviceA web address that returns the playlist
UpdatesNever; it is a snapshotEvery time the player reloads it
Contains your loginIf it came from a subscription, yesYes, in the address itself
Best forEditing, testing, offline listsEveryday use on TV devices

A typical subscription link contains your username and password within the address. Treat it like a password: anyone who has it can use your connections.

How to open an M3U file

To play it

  • VLC on Windows, Mac, Linux, Android and iPhone: open the file, or use the network stream option for a link. See how to watch IPTV on VLC.
  • IPTV players on TV devices: add the link in the playlist option.
  • Most media players open music M3U files directly.

To read or edit it

Open it in a plain text editor: Notepad on Windows, TextEdit on Mac in plain-text mode, or any code editor. You will see the lines described above.

If double-clicking opens the wrong program, right-click the file and choose Open with.

How IPTV uses M3U

When you subscribe to an IPTV service you receive login details in one of two forms.

  • An M3U link: one address. The player downloads the playlist and shows the channels.
  • An Xtream Codes login: a server address, username and password. The player asks the server for channels, films, series and guide data separately.

Both lead to the same service. The Xtream Codes login is usually the better experience because on-demand content is organised properly and the programme guide arrives automatically. The M3U link is the more universal: almost every player accepts it. Our guide to M3U vs Xtream Codes compares them in detail.

An M3U playlist carries no programme guide. Guide data comes from a separate XMLTV source, matched to channels by ID; see EPG sources for IPTV.

Loading a link in each major app is covered in how to use an M3U link for IPTV.

Are M3U files safe?

The file itself is harmless text. It cannot contain a virus in the way a program can. The risks are indirect:

  • Where it came from. Sites offering "free IPTV M3U" downloads are a common source of malicious adverts and bundled software.
  • What it points to. A playlist can link to unreliable or unlicensed streams.
  • What it reveals. A subscription playlist contains your login. Do not post it or upload it to websites you do not trust.

Yes. M3U is a file format, as neutral as a spreadsheet. What matters is the streams listed in it, which need the rights holder's permission. See our overview of IPTV legality.

Common problems

ProblemLikely causeFix
File opens as text instead of playingNo player associated with .m3uOpen it from within VLC or your player
Player rejects the fileMissing #EXTM3U header or wrong encodingRe-save as UTF-8 with the header on line one
Names show strange charactersEncoding mismatchSave as UTF-8, or rename to .m3u8
Link will not loadMistyped, incomplete or expiredPaste it again in full; request a new one
Channels listed, none playExpired subscription or connection limitCheck your plan
List is out of dateYou are using a saved fileUse the link instead

Frequently asked questions

What does M3U stand for?

MP3 URL. The format was created for music playlists and later adopted for video and IPTV.

How do I open an M3U file?

To play it, open it in VLC or an IPTV player. To read or edit it, open it in a plain text editor such as Notepad.

What is the difference between M3U and M3U8?

M3U8 is an M3U file encoded in UTF-8. For IPTV playlists they work the same way. The .m3u8 extension is also used for the segment playlists inside HLS streams.

Does an M3U file contain video?

No. It only lists addresses. The player fetches the audio or video from those addresses.

Is an M3U file the same as an IPTV subscription?

No. The file is a list. The subscription is the service behind the addresses, and the list stops working if the subscription ends.

Summary

An M3U file is a plain text playlist of media addresses. Extended M3U adds names, groups and guide IDs, which is how IPTV channel lists are delivered. M3U8 is the UTF-8 version and is also used inside HLS streams. Open one with VLC to play it or a text editor to read it, and keep any subscription link private.

Our plans provide both an M3U link and an Xtream Codes login.

Streaming Technology

M3U vs Xtream Codes: Which IPTV Login Should You Use?

M3U playlists and Xtream Codes logins compared — what each one is, how they differ for live TV, films, series and the guide, and which to choose in your player app.

Updated · 3 min read

Streaming Technology

How to Use an M3U Link for IPTV (Every Major App)

Learn how to use an M3U link for IPTV: what the URL contains, how to add it in VLC, TiviMate, Smarters, Kodi and smart TV apps, and how to fix one that fails.

Updated · 7 min read

Need a hand with setup?

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