[Playlist Merger](https://codoplayer.com/tools/merger)

# M3U Playlist Merger

Load several playlists — links, Xtream logins or files — and download them as one, with duplicate channels removed.

## How it works

1. Load the first playlist.
2. Add the others, one by one (up to 6).
3. Download one combined playlist.

## What the results mean

Up to six playlists are combined into one file without duplicates, so one link or file carries everything.

## Common problems

If two playlists list the same channel from different providers, the merged file keeps one of them; if you want both, add the playlists separately to a player that merges them itself.

## Example result

Produced by this tool's own code from a small invented example. Both lists in one file, a repeated address kept once.

**Example input** (invented, example.com addresses):

```
# first.m3u
#EXTM3U x-tvg-url="http://example.com/guide.xml"
#EXTINF:-1 tvg-id="news.one" tvg-logo="http://example.com/logos/news-one.png" group-title="News",UK: News One HD
http://example.com/live/user/pass/1001.m3u8
#EXTINF:-1 tvg-id="Sports.Two" group-title="Sports",Sports Two [FHD]
http://example.com/live/user/pass/1002.m3u8
#EXTINF:-1 group-title="Kids",Kids Three
http://example.com/live/user/pass/1003.m3u8
#EXTINF:-1 group-title="News",News One
http://example.com/live/user/pass/1001.m3u8
#EXTINF:-1 tvg-id="film.nine" group-title="Movies",Example Film (2020)
http://example.com/movie/user/pass/2001.mp4
#EXTINF:-1 group-title="Music",Music Four
http://example.com/live/user/pass/1004.m3u8
#EXTINF:-1 group-title="Music",
not-a-link

# second.m3u
#EXTM3U
#EXTINF:-1 tvg-id="cook.five" group-title="Lifestyle",Cooking Five
http://example.net/live/user/pass/3001.m3u8
#EXTINF:-1 group-title="Lifestyle",Garden Six
http://example.net/live/user/pass/3002.m3u8
```

**Result**

```
#EXTM3U url-tvg="http://example.com/guide.xml"
#EXTINF:-1 tvg-id="news.one" tvg-logo="http://example.com/logos/news-one.png" group-title="News",UK: News One HD
http://example.com/live/user/pass/1001.m3u8
#EXTINF:-1 tvg-id="Sports.Two" group-title="Sports",Sports Two [FHD]
http://example.com/live/user/pass/1002.m3u8
#EXTINF:-1 group-title="Kids",Kids Three
http://example.com/live/user/pass/1003.m3u8
#EXTINF:-1 group-title="Music",Music Four
http://example.com/live/user/pass/1004.m3u8
#EXTINF:-1 group-title="Music",Unnamed
not-a-link
#EXTINF:-1 tvg-id="cook.five" group-title="Lifestyle",Cooking Five
http://example.net/live/user/pass/3001.m3u8
#EXTINF:-1 group-title="Lifestyle",Garden Six
http://example.net/live/user/pass/3002.m3u8

In: 9 entries from 2 playlists, written: 7, duplicates removed: 1
```

## Messages this tool can show

| Message | What it means | What to do |
| --- | --- | --- |
| A merge takes up to 6 playlists. | More than 6 playlists were added. | Merge in steps. |
| Paste the playlist link. | The playlist field was empty. | Paste the link, or choose an Xtream login or a file. |
| The link must start with http:// or https:// | The address is not a web link. | Copy the whole link from your provider, including the first part. |
| That server address isn’t right — it looks like http://example.tv:8080 | The Xtream server address could not be read. | Type the address with its port, as your provider gave it. |
| The provider says this username or password is wrong, or the line has been cancelled. | The provider refused the login. | Check the details with your provider; the line may have expired. |
| That server didn’t answer like an Xtream panel — check the server address (and its port) with your provider. | The address answered, but not as an Xtream server. | Ask your provider for the right address and port. |
| This provider has been refusing our server, so we’re giving it a break — try again in N minutes. | The provider keeps refusing requests, so the tool stops asking for a while. | Wait, and do not keep retrying. The provider may block some networks. |
| That file isn’t a playlist we can read. | The file is not M3U, M3U8, Enigma2, Neutrino WebTV, XSPF, PLS or WPL. | Check that you chose the playlist file. |
| This playlist has more than the most entries our tools read. | The playlist is too large for the tools. | Use a smaller list, for example live channels only. |
| This playlist is no longer loaded on our server (we keep a loaded playlist for 4 hours) — load it again. | The loaded copy has expired. | Load the playlist again. |

## Questions about the Playlist Merger

### What if two playlists have the same channel?

With “remove duplicates” on, a channel with exactly the same link is kept once. Copies with different links are both kept — they are different streams.

## More playlist tools

- [Playlist Splitter](https://codoplayer.com/tools/splitter): Split one big playlist into live, films and series, one file per group, or by size.
- [Playlist Cleaner](https://codoplayer.com/tools/cleaner): Remove duplicates and tidy names: country prefixes, HD tags, symbols, ALL CAPS.
- [Subtitle Converter](https://codoplayer.com/tools/subtitle-converter): Convert SRT, WebVTT and ASS, shift or stretch the timing, fix the encoding.
- [Playlist Converter](https://codoplayer.com/tools/converter): Xtream login ↔ M3U link, and M3U ↔ JSON, CSV, VLC, PLS, WPL, Enigma2 and Neutrino lists.
- [JSON / CSV Export](https://codoplayer.com/tools/export): Every channel’s name, group, logo and link as JSON, CSV (Excel) or a plain list of links.
- [Playlist QR Code](https://codoplayer.com/tools/qr): Turn a playlist or guide link into a QR code to scan with a phone or TV app.

### Related

- [How to watch channels from different playlists side by side](https://codoplayer.com/guides/multi-view-different-playlists)

Source: https://codoplayer.com/tools/merger
