100% Client-Side Privacy
Adawaty Pro • adawaty-pro.com
48+ Offline Client-Side Converters & Technical Guides
Home / Subtitles, IPTV & Media / M3U / M3U8 to TXT / JSON / CSV / XML
Read Technical Guides →

M3U / M3U8 to TXT / JSON / CSV / XML

Parse IPTV playlists and extract channel names, groups & stream URLs — 100% private client-side processing.

100% Client-Side JS

Active Converter

Smart Auto-Fix:
1. Source File(s) or Paste Input: No file selected
2. Live Output (Editable):
Extended M3U / HLS Playlist Auditing & Deduplication

M3U / M3U8 Cleaner & Converter: Parsing #EXTM3U Channels to JSON, CSV, XML & TXT

Technical Anatomy of Extended M3U & M3U8 Playlists

An Extended M3U playlist begins with the mandatory directive #EXTM3U on line 1, followed by paired channel entries. Each entry consists of an #EXTINF:<duration> [attributes],<Channel Title> metadata line immediately above the stream URI (http://, https://, rtmp://, or .m3u8 HLS segment manifest).

Modern IPTV bouquets enrich #EXTINF lines with key-value attributes—most notably tvg-id (for XMLTV EPG matching), tvg-logo (channel icon URL), and group-title (bouquet folder such as Sports HD or News). Because large playlists frequently balloon to 20,000+ entries filled with duplicate streams and malformed lines, parsing them locally into a searchable Interactive Table, CSV, JSON, or XML lets you audit and prune channels in seconds without exposing private Xtream credentials to any remote server.

Raw #EXTM3U Playlist Input vs. Structured JSON / CSV Output

# Input: Extended IPTV Playlist (sports_channels.m3u8)
#EXTM3U
#EXTINF:-1 tvg-id="beIN1.qa" group-title="Sports HD",beIN Sports 1 HD
http://stream.example.net/live/1042.m3u8
#EXTINF:-1 tvg-id="beIN1.qa" group-title="Sports HD",beIN Sports 1 HD (Duplicate)
http://stream.example.net/live/1042.m3u8

# Converted .JSON Output (Duplicate URL Automatically Removed):
[
  { "name": "beIN Sports 1 HD", "group": "Sports HD", "url": "http://stream.example.net/live/1042.m3u8" }
]

Real-World Software & Hardware Ecosystem

Cord-cutters, broadcast engineers, and media-server administrators manage .m3u and .m3u8 lists across VLC Media Player, TiviMate, Kodi (PVR IPTV Simple Client), IPTV Smarters, Jellyfin, Enigma2 receivers, and HLS.js web players.

Troubleshooting & Edge Cases

  • HLS Master Manifest vs. Channel Playlist: An Apple HLS stream manifest uses #EXT-X-STREAM-INF and #EXTINF:6.000,segment01.ts rather than live channel bouquets. Use TXT or JSON export to inspect HLS bitrate variants cleanly.
  • Commas Inside Channel Names: If a channel title contains a comma (e.g., News, UK HD), our parser locates the final attribute quote before splitting the display name so metadata fields never bleed into the title.
  • Rebuilding a Trimmed M3U: Filter out unwanted groups in Interactive Table mode, export CSV, and drop that CSV straight into our TXT / CSV to M3U tool to generate a lightweight custom playlist.

Extended #EXTINF Attribute Reference Table

Attribute Key Example Value Function in TiviMate, Kodi & VLC
tvg-id"BBC1.uk"Links the channel to matching XMLTV Electronic Program Guide (EPG) listings.
tvg-logo"https://.../logo.png"Displays channel picon artwork in TV guide grids.
group-title"Sports 4K"Groups channels into navigable category folders on Smart TVs.
catchup-days"7"Signals timeshift/replay archive retention supported by the stream server.

Testing Individual Stream Health Locally via FFprobe

After deduplicating your playlist and exporting a trimmed channel list to CSV or TXT, broadcast engineers often verify live codec bitrates and audio tracks (AAC vs. AC-3) on individual HLS/TS URLs using ffprobe from FFmpeg:

# Inspect resolution, FPS & audio codec of an extracted M3U8 stream URL:
ffprobe -v error -show_entries stream=codec_name,width,height,r_frame_rate -of default=noprint_wrappers=1 "http://stream.example.net/live/1042.m3u8"

Optimizing Large IPTV Playlists for Low-RAM Smart TVs & Firestick

Provider-generated M3U files routinely exceed 25 MB and list 40,000+ live channels and VOD titles across dozens of languages. Budget Android TV sticks and older LG webOS / Samsung Tizen TVs struggle to parse 25 MB playlists into RAM, causing 30-second startup freezes and EPG sync timeouts. By running your playlist through our client-side M3U cleaner—deduplicating identical stream URLs, switching to Interactive Table view to filter only your preferred language or sports bouquets (e.g., Sports HD, News), and exporting a lean sub-500-channel list—you cut player load times down to under two seconds while keeping your private provider credentials strictly on your local computer.

For multi-device households running Kodi on a living-room box and VLC on laptops, maintaining one master CSV spreadsheet and regenerating fresh UTF-8 .m3u8 playlists on demand guarantees identical channel numbering, clean tvg-id EPG alignment, and zero broken legacy streams across every screen.

Frequently Asked Questions

How does the M3U / M3U8 Smart Auto-Fix detect and remove duplicate IPTV channels?

When 'Remove Duplicate & Broken Channels' is checked, the parser tracks every unique stream URL (http://, https://, rtmp://) in a hash map. If a massive provider playlist repeats the same sports channel URL across multiple bouquets, only the first valid #EXTINF + URL pair is retained.

What metadata attributes are parsed from #EXTINF lines when exporting M3U to CSV or JSON?

The parser extracts tvg-id, tvg-name, tvg-logo, group-title (category/bouquet), channel display title after the comma, and the underlying stream URL—letting you search, sort, or delete entire country groups in Excel or our Interactive Table.

What is the difference between .M3U and .M3U8 playlist files?

The structure is identical, except .M3U8 explicitly mandates UTF-8 character encoding (preventing Arabic, Cyrillic, or Turkish channel names from breaking) and is also used by Apple HTTP Live Streaming (HLS) adaptive manifests.

Can I convert a cleaned M3U channel list into XML for Enigma2 or Kodi TV plugins?

Yes. Select Export .XML (or .JSON / .CSV / .TXT) to transform raw #EXTINF pairs into structured XML channel elements ready for set-top boxes, custom web players, or database ingestion.