Contents

Learning how to make M3U file playlists is simpler than it looks. An M3U file is a plain-text playlist that lists media addresses, so any text editor can create one. This guide shows how to create an M3U file for IPTV line by line, with an example, the guide tags players read, and the mistakes that stop a file from loading.
Do you need to make an M3U file for IPTV?
Often, no. An M3U link is a web address that returns the playlist; if you have an IPTV subscription, your provider gives you one, and it is better than a file you build yourself.
A link is reloaded by your player, so new or moved channels reach you on their own. A file you save is a frozen copy that never changes. Our M3U playlist guide explains the difference.
Making your own file is useful when you want a short list of specific streams, or when you want to understand what your player reads. The format is not limited to television: the Library of Congress’s description of the MP3 format notes that m3u files contain playlists, and that each playlist format works well with some players and not with others.
How to make M3U file playlists in 5 steps
#EXTM3U← first line#EXTINF:-1,Example News 1← namehttp://example.com/news1.m3u8← stream#EXTINF:-1,Example Movies 1 http://example.com/movies1.m3u8
- #EXTM3UAlways the first line
- #EXTINF lineThe channel name
- Stream URLOn the next line
- Open a plain-text editor. On Windows, Notepad works. On a Mac, TextEdit works once you choose Format > Make Plain Text, as Apple’s TextEdit guide describes.
- Type the header. The first line must be #EXTM3U.
- Add one entry per channel. Each entry has two lines: an #EXTINF line with the name, then the stream address on the next line.
- Save in UTF-8 with the .m3u8 extension. If your editor offers an encoding option when you save, choose UTF-8. TextEdit saves plain text as .txt, so rename the file afterward.
- Open the file in your player and check that each channel plays.
M3U file example for IPTV
Here is a complete file with two channels. The addresses use example.com, a domain reserved for examples, so replace them with real stream addresses you are allowed to use.
#EXTM3U
#EXTINF:-1 tvg-id="news1" tvg-logo="https://example.com/logos/news1.png" group-title="News",Example News 1
https://example.com/live/news1.m3u8
#EXTINF:-1 tvg-id="movies1" group-title="Movies",Example Movies 1
https://example.com/live/movies1.m3u8
Each channel takes exactly two lines, and the order matters: information first, address second.
What each line means
Extended M3U is the version of the format that adds information lines, such as channel names and logos, above each address. The M3U article on Wikipedia documents its directives and the tags IPTV players use:
| Part | What it does |
|---|---|
| #EXTM3U | File header; must be the first line |
| #EXTINF:-1 | Starts an entry; -1 means a live stream with no fixed length |
| tvg-id | Channel ID that TV guide data can match (see our EPG guide below) |
| tvg-logo | Address of the channel logo image |
| group-title | Puts the channel in a group, such as News |
| Text after the comma | The channel name shown in your player |
| Next line | The stream address itself |
The same structure appears in RFC 8216, the August 2017 RFC that describes HTTP Live Streaming, where a playlist starts with #EXTM3U and lists media addresses line by line. If your channels need a TV guide, our EPG guide explains how tvg-id connects to guide data.
How to create an M3U file from a URL
To turn a single stream URL into an M3U file, use the same template with one entry: the header, one #EXTINF line and the URL. Wikipedia names a single-entry playlist pointing to a stream on the internet as a common use of the format.
If the URL you have is already a playlist link from your provider, don’t convert it. Paste it into your player instead; our page on the IPTV playlist URL shows where.
Free M3U editors and online makers
You don’t need special software. Any plain-text editor is a free M3U editor, because the file is only text.
Online M3U playlist makers and generators exist too. They produce the same text you would type by hand, so check the result before you use it, and don’t paste a private playlist link into a site you don’t trust: anyone who has that link can open your channels.
Common mistakes that stop an M3U file from loading
- The header isn’t on line 1. #EXTM3U must be the very first line, so put nothing above it.
- The file is saved as rich text. Players expect plain text, and a rich-text file adds formatting codes around your lines.
- The extension is wrong. A file named playlist.m3u8.txt won’t be recognized; check that file extensions are visible.
- Lines are out of order. Each #EXTINF line must sit directly above its address.
- The line breaks don’t suit the device. Wikipedia notes that some devices only accept CR LF line breaks, the Windows style.
- The comma is missing. The channel name goes after a comma, at the end of the #EXTINF line.
Want a working playlist without building one? Our IPTV free trial gives you an M3U link and an Xtream Codes login for 24 hours on one screen, ready to add to TiviMate or another player. Questions about a playlist from our service go to our support by email through the contact page.
Checked on by Evans George Franklin. Sources: Wikipedia, M3U; RFC 8216; Apple TextEdit User Guide; Library of Congress.
M3U file questions
How do I get my M3U URL?
From your IPTV provider. With our service, it is in the Account active email you receive after you order or start a trial. Our page on the IPTV playlist URL explains where to paste it.
What is the difference between .m3u and .m3u8?
The content is the same kind of list. According to the M3U article on Wikipedia, the .m3u8 extension marks a file encoded in UTF-8, while .m3u is used for the computer’s local default encoding.
Do I need #EXTM3U at the top?
For an extended M3U file, yes. Wikipedia lists #EXTM3U as the required header of the extended format, on the first line, before the #EXTINF lines that carry channel names and guide tags.
Compare the two plans
3 months, 1 screen. Nothing renews automatically.
- Card, Apple Pay, Google Pay or crypto
- Refund if it doesn’t work (email us within 48 hours)
- Login by email in under 5 minutes


