You signed up with an IPTV provider, they sent you a URL, a username, and a password — that is Xtream Codes format. Then you tried to load it into VLC or some smart TV app and it asked for an M3U file instead. Sound familiar?
The conversion is genuinely simple once you know the URL pattern. Here is the explanation, plus the easy way using our free converter tool.
What Are Xtream Codes?
Xtream Codes is a panel system many IPTV providers use to manage subscribers. Instead of giving you one giant M3U file, they give you three pieces:
- Server URL — usually looks like
http://example.com:8080orhttp://example.com:25461 - Username — typically a string of letters and numbers
- Password — same format as username
This format is more efficient because the server can update channels without you re-downloading anything, and your credentials are easier to manage than a long URL.
The Conversion Formula
An Xtream login converts to an M3U URL like this:
http://SERVER:PORT/get.php?username=USERNAME&password=PASSWORD&type=m3u_plus&output=ts
So if your provider gave you:
- Server:
http://example.com:8080 - Username:
abc123 - Password:
xyz789
Your M3U URL becomes:
http://example.com:8080/get.php?username=abc123&password=xyz789&type=m3u_plus&output=ts
Paste that into any M3U-compatible player and you are done.
The Easy Way (Our Free Tool)
If you do not want to mess with URL formatting, just use our Xtream to M3U Converter. Paste your three credentials, click convert, and copy the result. Takes about 10 seconds.
The tool also lets you choose between two output formats:
- m3u_plus — Includes channel logos, EPG IDs, group titles. Use this one.
- m3u — Plain format, smaller file, no extra metadata
And two stream formats:
- ts — MPEG-TS, works in almost every player. Default choice.
- m3u8 — HLS, better for web players and iOS, slightly more bandwidth-friendly
How to Use the Generated M3U URL
In VLC
- Open VLC → Media → Open Network Stream
- Paste the URL → Play
- To browse channels: View → Playlist
In Tivimate / Smart IPTV / etc.
Most players have an "Add Playlist" → "M3U URL" option. Paste it there. Some players might cache the playlist — refresh manually if channels seem outdated.
Save as a File
If you need an actual .m3u file (some smart TV apps require an upload), open the URL in your browser and choose "Save As". Most browsers will save it as get.php — rename it to playlist.m3u.
Going the Other Direction (M3U to Xtream)
You can also do the reverse. If you have an M3U URL that follows the Xtream pattern (starts with get.php?username=), our M3U to Xtream Converter can extract the server, username, and password back out for you. Useful when a player only accepts Xtream login.
Security Note
Your Xtream credentials are essentially your subscription. Do not share the URL publicly — anyone with it can use your account. If you accidentally posted it somewhere, contact your provider and ask them to reset your password.
Same applies to the converted M3U URL — it contains your username and password in plain text in the URL itself.
Why Do Some Players Only Accept One Format?
Honestly, no good reason. Older players were built around M3U files, newer ones added Xtream support. There is no real technical barrier — the developers just did not implement it. The conversion tools exist because we are stuck supporting both.