[JSON / CSV Export](https://codoplayer.com/tools/export)

# M3U to JSON or CSV

Extract everything in a playlist — names, groups, logos, guide IDs and stream links — as JSON for developers, CSV for Excel or Google Sheets, or a plain list of links.

## How it works

1. Load your playlist.
2. Choose JSON, CSV or a plain list, and what to include.
3. Download the file.

## What the results mean

Every channel's name, group, logo and link comes out as JSON, CSV for Excel or a plain list of links.

## Common problems

The export holds the links exactly as they are in the playlist, which may contain your login: keep the file private.

## Example result

Produced by this tool's own code from a small invented example. The entries as a table (CSV) you can open in a spreadsheet.

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

```
#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
```

**Result**

```
﻿number,name,group,type,url,tvg_id,tvg_name,logo,catchup_days
1,"UK: News One HD",News,live,http://example.com/live/user/pass/1001.m3u8,news.one,,http://example.com/logos/news-one.png,
2,"Sports Two [FHD]",Sports,live,http://example.com/live/user/pass/1002.m3u8,Sports.Two,,,
3,"Kids Three",Kids,live,http://example.com/live/user/pass/1003.m3u8,,,,
4,"News One",News,live,http://example.com/live/user/pass/1001.m3u8,,,,
5,"Example Film (2020)",Movies,movie,http://example.com/movie/user/pass/2001.mp4,film.nine,,,
6,"Music Four",Music,live,http://example.com/live/user/pass/1004.m3u8,,,,
7,Unnamed,Music,live,not-a-link,,,,
```

## Messages this tool can show

| Message | What it means | What to do |
| --- | --- | --- |
| 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 JSON / CSV Export

### Does the CSV open in Excel?

Yes — it’s UTF-8 with the marker Excel needs, so names in every language show correctly.

## More playlist tools

- [Playlist Converter](https://codoplayer.com/tools/converter): Xtream login ↔ M3U link, and M3U ↔ JSON, CSV, VLC, PLS, WPL, Enigma2 and Neutrino lists.
- [Playlist Editor](https://codoplayer.com/tools/editor): Choose, rename and reorder groups and channels, then download your own playlist.
- [M3U Validator](https://codoplayer.com/tools/validator): Find broken lines, bad links, duplicates and missing guide IDs, then download a fixed file.
- [Playlist Splitter](https://codoplayer.com/tools/splitter): Split one big playlist into live, films and series, one file per group, or by size.
- [Playlist Merger](https://codoplayer.com/tools/merger): Combine up to 6 playlists into one, without duplicates.
- [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

- [IPTV formats](https://codoplayer.com/formats)

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