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

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/stream2An 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| Line | Purpose |
|---|---|
#EXTM3U | Header that identifies an extended playlist |
#EXTINF | Information about the next item: name, group, logo, guide ID |
| The address | Where 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:
| Level | What the playlist lists |
|---|---|
| Your IPTV playlist | Channels: a name and an address for each |
| An HLS stream | A 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.
| M3U | M3U8 | |
|---|---|---|
| Format | Text playlist | Text playlist |
| Encoding | Historically varied | UTF-8 |
| Used for IPTV playlists | Yes | Yes |
| Used inside HLS streams | No | Yes |
| Opens in the same players | Yes | Yes |
M3U file or M3U link?
In IPTV you will usually be given a link rather than a file.
| M3U file | M3U link (URL) | |
|---|---|---|
| What it is | A saved text file on your device | A web address that returns the playlist |
| Updates | Never; it is a snapshot | Every time the player reloads it |
| Contains your login | If it came from a subscription, yes | Yes, in the address itself |
| Best for | Editing, testing, offline lists | Everyday 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.
Is using M3U legal?
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
| Problem | Likely cause | Fix |
|---|---|---|
| File opens as text instead of playing | No player associated with .m3u | Open it from within VLC or your player |
| Player rejects the file | Missing #EXTM3U header or wrong encoding | Re-save as UTF-8 with the header on line one |
| Names show strange characters | Encoding mismatch | Save as UTF-8, or rename to .m3u8 |
| Link will not load | Mistyped, incomplete or expired | Paste it again in full; request a new one |
| Channels listed, none play | Expired subscription or connection limit | Check your plan |
| List is out of date | You are using a saved file | Use 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.



