How to Create and Edit an M3U Playlist

M3U is a file format for multimedia playlists. This file points to streams on the net for watching TV channels or listening to radio stations. If you have a good M3U playlist, you can have your free IPTV. In this tutorial, you will learn how to create a new M3U playlist based on an existing one, and how to edit it.

M3U playlist


First, you need to learn the structure of an M3U playlist

The M3U playlist is a file in textual format, meaning you can open and edit it with a text editor. We recommend using Notepad++ that you can download from here.

This M3U file is composed of multiple lines, each line representing a channel. A line is composed of tags. However, different M3U files may have some variations in the format and may use different tags. We will discuss one of those variations, but the concept is the same.

Here is an example of a line from an M3U file:

#EXTINF:-1 tvg-id=”” tvg-country=”US” tvg-language=”English” tvg-logo=”” group-title=”News”,CNN USA (720p) [Geo-blocked]


The line starts with #EXTINF:-1 and ends with the name of the channel, which is CNN USA (720p) [Geo-blocked], and then the URL of the channel, which refers to M3U8 file (the Unicode version of M3U). In between, you find the different tags:

  • tag-id – The ID of the channel. In our example, the ID is
  • tvg-country – The country where the channel originated. In our example, the country is US
  • tvg-language – The language spoken in the channel. In our example, the language is English
  • tvg-logo – The URL of the logo of the channel, which refers to an image file
  • group-title – The group the channels belong to. In our example, the channel CNN belongs to the group News

The tags don’t affect the playback of the channels themselves but only affect the playlist.

Here is how to create your M3U playlist:

An M3U playlist may contain thousands of channels, and from there, you may want only a few. By creating your playlist, you eliminate the need to load many redundant channels you don’t need.

  • Click here to download the M3U file we will use in this tutorial
  • Open the file with Notepad++
  • Create a new file named iptv.m3u
  • Copy the lines of the channels you want from the original file to the new file and save it

Here is how to edit your M3U playlist:

  • Change the country by changing the value for the tvg-country tag
  • Change the language by changing the value for the tvg-language tag
  • Change the logo by providing a different URL for the tvg-logo tag
  • Change the group by changing the value for the group-title tag
  • Change the name of the channel
  • Change the URL of the channel

Kodi is an excellent player for M3U playlists, and you can use the PVR IPTV Simple Client add-on to play your playlists.

Now to can create and edit M3U playlists and enjoy your collection of channels.

Leave a Reply

Your email address will not be published. Required fields are marked *