How to Convert Xtream Codes to M3U URL
Xtream Codes is a popular IPTV panel used by many IPTV providers to manage their streams, while M3U is a playlist file format used to organize multimedia files.
After subscribing to an IPTV service, your provider will send you either an M3U URL or an Xtream Codes API, but some applications (such as IPTV Smarter, XCIPTV Player, and Xtreme IPTV) can only input the Xtream Codes API in their settings on certain devices. Meanwhile, other IPTV players such as Flix IPTV, Smart IPTV, Ottplayer, and VLC Media Player require the use of an M3U URL playlist.
Therefore, you may want to know how to convert M3U URL to Xtream Codes API or Xtream Codes to M3U URL.
In this article, I will show you how to convert M3U URL to Xtream Codes API or Xtream Codes to M3U URL, as well as how to get EPG from an M3U file.
How to Convert Xtream Codes to M3U URL
To convert Xtream Codes to M3U URL, you need to extract three parts from your Xtream Codes: the Server URL, Username, and Password.
Let’s assume the following is your Xtream Codes API information:
- Server URL: https://iptvfav.com:8080/
- Username: 1234
- Password: ABCD
Now, we can insert this information into the template of an M3U URL. The template is as follows:

http://Server.Address/get.php?username=ABCD&password=EFGH&type=m3u_plus&output=ts
By inserting your IPTV provider’s Xtream Codes information into the template, we get the following M3U URL:
https://iptvfav.com:8080/get.php?username=1234&password=ABCD&type=m3u_plus&output=ts
So, to convert Xtream Codes to M3U URL, simply follow the above steps and insert the Server URL, username, and password into the template.
Now, you can start streaming IPTV on an IPTV player that supports M3U URL.
How to Converter M3U to Xtream Codes
If your IPTV provider has only given you an M3U URL, such as:
https://iptvfav.com:8080/get.php?username=1234&password=ABCD&type=m3u_plus&output=ts
Converting the M3U playlist to Xtream Codes is a simple process. The first part of the M3U URL is the server name that you need (before the “/”).
Here are the details required for IPTV settings:
- Server URL: https://iptvfav.com:8080/
- Username: 1234
- Password: ABCD
How to Get EPG from M3U File
If you’re using IPTV players like Smart IPTV, TiviMate, or Perfect Player, you’ll need to add an EPG URL to display a TV guide on live channels.
Assuming your M3U URL is:
https://iptvfav.com:8080/get.php?username=1234&password=ABCD&type=m3u_plus&output=ts
You can quickly extract the EPG URL from the M3U URL or Xtream Codes using the following method.
EPG URL template:
http://Server.Address/xmlt.php?username=ABCD&password=EFGH
So, your EPG link would be:
https://iptvfav.com:8080/xmlt.php?username=1234&password=ABCD
Best IPTV Player
Best M3U IPTV Players
- VLC Media Player
- TiviMate
- Flix IPTV
- Smart IPTV
- Perfect Player
- Net IPTV
- SET IPTV
- IPTV Smarters Pro
- GSE Smart IPTV
- OttPlayer
Best Xtream Codes Players
- IPTV Smarters Pro
- GSE Smart IPTV
- XCIPTV Player
- Xtreme IPTV
- IPTVX
- TiviMate
- IPTV Extreme