Lines of code on a computer screen

M3U and Xtream Codes, explained

Two ways of loading the same channels into an app. Knowing which is which prevents most of the login trouble people bring to the chat.

Short answer

An M3U playlist is one long link to a text file that lists every channel. An Xtream Codes login is a server address, a username and a password, which lets the app fetch the channels, the guide and the film library by itself. Use Xtream whenever the app offers it; use M3U in apps that accept nothing else.

Nordkanal editorial team · Published · 3 min read

What an M3U playlist is

M3U is a plain text format that dates back to early MP3 players. Each channel takes two lines: one describing it and one giving the address of its stream. A real playlist has thousands of these pairs and looks roughly like this:

#EXTM3U url-tvg="http://example.com/epg.xml"
#EXTINF:-1 tvg-id="channel1.se" group-title="Sweden",Channel One
http://example.com:8080/live/user/pass/1001.ts
#EXTINF:-1 tvg-id="channel2.no" group-title="Norway",Channel Two
http://example.com:8080/live/user/pass/1002.ts

tvg-id is what connects a channel to the programme guide, and group-title is the folder it appears in. M3U8 is the same format saved as UTF-8, which keeps letters like å, ø and æ intact in channel names.

What an Xtream Codes login is

Xtream Codes is a login scheme rather than a file. You give the app three things: the server address, a username and a password. The app then asks the server for the channel list, the programme guide, the films and the series, and keeps them up to date by itself.

The name comes from the panel software that introduced the scheme. The format outlived it and is now supported by almost every IPTV app.

Which one to use

M3U playlistXtream Codes login
What you enterOne long linkServer, username, password
Programme guideMany apps need a separate EPG linkLoads automatically
Films and seriesMixed into the list, or missingSeparate, sorted sections
UpdatesReload the playlistAutomatic
Works best inVLC, Kodi, simple playersTiviMate, IPTV Smarters, most TV apps

Why the login fails, and what the error means

What you seeWhat it usually meansFix
Invalid username or passwordA typo, or a space copied along with the textType it by hand; check upper and lower case
Cannot connect to serverAddress entered without http:// or without the portCopy the address exactly, including the :port
Login works, no channelsXtream details entered as M3U, or the reverseChoose the login type that matches what you were sent
Max connections reachedAnother device is already playing on the same loginStop the other stream, or check your plan's screens
Account expiredThe subscription period has endedCheck the end date and renew
Channels load, guide emptyNo EPG link, or channel ids that do not match the guideAdd the EPG link, wait two minutes and refresh

Habits that prevent most problems

  • Do not edit the playlist and load it from disk. The online list changes, and a saved copy goes stale.
  • Use https only if the server address you were given starts with https.
  • Some Smart TV apps struggle with very large playlists. If an app hangs while loading, choose fewer channel groups.
  • Keep your login details in one place. Many "it stopped working" cases are an old address still saved in one app.

Questions and answers

What is the difference between M3U and M3U8?

The text encoding. M3U8 is saved as UTF-8, which keeps Nordic letters such as å, ø and æ intact in channel names. Apps read both the same way.

Is Xtream Codes an app?

No. It is a login format: a server address, a username and a password. You enter it in an app such as TiviMate or IPTV Smarters.

Why does my M3U playlist have no TV guide?

Many apps need the guide as a separate EPG link. Add it in the app's EPG settings, or use the Xtream login, which loads the guide automatically.

Can I use the same login in two apps?

Yes, on as many devices as you like, but only as many can play at once as your plan has screens.

Related articles

All articles

  • A coastal town on the Spanish Mediterranean
    Blog

    Nordic TV in Spain: a practical guide

    Watching Swedish, Norwegian, Danish and Finnish TV from Spain: time zones, fibre and holiday-flat Wi-Fi, catch-up for the evening news, and what to bring.

  • Strands of fibre-optic cable carrying light
    Blog

    What is IPTV, and how does it work?

    IPTV explained without jargon: how live TV travels over the internet, what you need at home, and where it beats or loses to aerial, cable and satellite.

  • A Wi-Fi router with three antennas
    Blog

    IPTV keeps freezing: causes and fixes

    Why IPTV buffers and freezes, in the order the causes usually turn up: Wi-Fi, the device, evening congestion, the player buffer. Plus tests that pinpoint which.

Spend 3 € before you spend 80 €.

The test runs for 48 hours on one screen and stops by itself. Put it over a weekend with a match on, so you test the service at its busiest.