M3U merger: combine and clean playlists
Open two or more M3U playlists to combine them into one file, remove duplicate channels by stream URL or tvg-id, and leave out the groups you never watch. Then download the merged playlist. Free, no sign-up.
Runs entirely in your browser. Your playlists are never uploaded, and stream addresses are not shown.
How merging works
An M3U playlist is a text file: an #EXTM3U line, then one entry per channel, film or episode. Each entry is an
#EXTINF line with the name and attributes such as tvg-id,
tvg-logo and group-title, sometimes option lines like
#EXTVLCOPT, and then the stream address. Merging takes the entries of every file in the order you set and
writes them one after another under a single header. Nothing inside an entry is rewritten, so options, logos and catch-up attributes survive.
The header matters for the TV guide. Many playlists name their guide in the first line with url-tvg or
x-tvg-url. The merged file keeps the first file's header and adds the guide addresses that only the later files
name, separated by commas, which is how most players read more than one guide.
Choosing how to remove duplicates
| Option | Two entries are duplicates when… | Use it for |
|---|---|---|
| Same stream URL | they play the same address (letter case ignored) | Two exports of the same list, or a list with repeats |
| Same tvg-id | they carry the same guide id; entries without one are kept | One stream per channel when several lists or qualities overlap |
| URL or tvg-id | either of the above | The smallest result |
| Keep everything | never | Joining files without changing what is in them |
The first copy always wins, so the order of the files is your priority list. If one provider's streams are more reliable, put that playlist first and its entries are kept when the same channel turns up again later. Group filtering runs before the duplicate check: an entry in a group you leave out never blocks a copy of it in a group you keep.
Leaving out groups
Large playlists often have hundreds of groups: countries, sports packages, film collections. Untick the ones you never watch and they are not written to the merged file. The list counts entries across every file, largest group first, and the search box with "Keep shown" and "Drop shown" handles many at once, such as every group with a country prefix you do not need. Entries with no group-title are listed as "(no group)".
Before and after
- Run the M3U checker on the merged file to see broken entries and the tvg-id coverage.
- To rename groups or remove single channels by hand, open the result in the M3U editor.
- If the guide stops matching after a merge, the EPG mapper suggests tvg-ids from a guide file.
- For a spreadsheet of what you kept, convert it with M3U to CSV.
A merged file lives on your computer. A player that only takes a playlist link needs the file hosted somewhere you control. Players that accept several playlists do not need a merge at all: in IPFlix, for example, more than one playlist can be added and managed in Settings.
Questions
Are my playlists uploaded?
Which copy of a duplicate is kept?
Should I remove duplicates by URL or by tvg-id?
What happens to the EPG links in the files?
Will a merged playlist work in my player?
How big can the playlists be?
Watch it on your TV
IPFlix Pro Player for Android TV, Google TV and Fire TV plays your provider's M3U link or Xtream login, with a TV Guide grid and playlists of 180,000+ channels.
- Install IPFlix on the TV and open Add Playlist.
- Scan the QR code on the TV with your phone.
- On the phone, paste your provider's M3U link or type the Xtream login.
Free. No ads. Live TV and the TV guide are free. Pro unlocks movies, series, more playlists and profiles. IPFlix does not provide channels or content.
More free tools
- M3U playlist checker Find broken entries, duplicates and missing tvg-id; match an EPG
- M3U editor Keep or drop groups, rename, remove duplicates, merge two files
- M3U to CSV Channel list for Excel or Sheets: name, group, tvg-id, logo
- Xtream Codes to M3U converter Build the M3U and EPG links from a login, or read a link back
- EPG / XMLTV viewer Browse a guide file by channel and day, .xml or .xml.gz
- EPG / XMLTV checker Channels, date range, programmes per channel and errors, from a file or link
- EPG mapper Suggest the tvg-id for each channel from a guide, with a confidence score
- EPG time shift Move a guide by hours or fix its time zone offset, then download
- M3U8 / HLS parser Variants, bitrates, resolutions, codecs and segments of an HLS playlist
- Internet speed for IPTV Mbps and data per hour by quality, codec and number of TVs
All tools run in your browser. Nothing you open or type is uploaded. See all free IPTV tools