TXT / CSV to M3U
Build a valid #EXTM3U IPTV playlist from text or CSV stream links — 100% private client-side processing.
Active Converter
TXT / CSV to M3U: Building Clean #EXTM3U Playlists from Spreadsheets & URL Lists
Technical Anatomy of Programmatic M3U Generation
Managing hundreds of live radio stations, security RTSP camera feeds, or IPTV channels by hand in a text editor is error-prone: one missing newline or malformed #EXTINF comma causes media players to skip an entire block. Storing your master channel directory in Excel or CSV and compiling it into .m3u lets you sort, tag, and filter streams in a spreadsheet while outputting a strictly compliant Extended M3U file.
The builder prepends #EXTM3U, reads each non-empty row, detects whether you supplied bare URLs or comma-delimited Title,URL[,Group] tuples, and formats every channel into a paired #EXTINF:-1 group-title="...",Title line followed by the exact stream URI.
Plain CSV / Text Input vs. Generated #EXTM3U Playlist
# Input: Spreadsheet Export (cameras_and_radio.csv)
Front Gate RTSP,rtsp://192.168.1.50:554/stream1,Security
Lo-Fi Radio Stream,https://radio.example.org/lofi.mp3,Music
# Generated .M3U Output:
#EXTM3U
#EXTINF:-1 group-title="Security",Front Gate RTSP
rtsp://192.168.1.50:554/stream1
#EXTINF:-1 group-title="Music",Lo-Fi Radio Stream
https://radio.example.org/lofi.mp3
Real-World Software & Hardware Ecosystem
CCTV installers, radio enthusiasts, and IPTV curators generate custom .m3u files for VLC, TiviMate, IPTV Smarters Pro, Kodi, mpv, Home Assistant camera dashboards, and Raspberry Pi digital signage kiosks.
Troubleshooting & Edge Cases
- Header Row Included as a Channel: If row 1 of your CSV says
Name,URL, remove the header line or verify in the editable right-hand preview that no dummy entry appears at the top of your playlist. - Spaces in Stream URLs: Unencoded spaces inside HTTP paths break strict players like Kodi and mpv; replace spaces with
%20before exporting. - RTSP Credentials with Special Characters: If an IP camera URI embeds a password containing
@or#, percent-encode those characters in the CSV cell so VLC parses the host IP accurately.
Supported CSV / TXT Column Layouts for M3U Generation
| Input Pattern | Generated #EXTINF Line | Best Use Case |
|---|---|---|
| URL only | #EXTINF:-1,Stream 1 | Quick VLC / mpv playback lists |
| Title,URL | #EXTINF:-1,Title | Internet radio & RTSP security camera feeds |
| Title,URL,Group | #EXTINF:-1 group-title="Group",Title | Categorized TiviMate / Kodi TV bouquets |
Building a Local RTSP CCTV Dashboard Playlist
Security installers routinely maintain an Excel inventory of Hikvision, Dahua, or Reolink IP camera RTSP streams (rtsp://user:pass@192.168.1.x:554/h264Preview_01_main). Converting that sheet into one cameras.m3u file lets any security desk cycle through all building cameras directly inside VLC or Home Assistant without proprietary NVR desktop software.
Frequently Asked Questions
You can paste simple 'Channel Name, http://stream-url' lines, upload a 2- or 3-column CSV (Name, URL, Group), or paste bare stream URLs one per line. The generator automatically emits the #EXTM3U header and properly formatted #EXTINF:-1 lines.
Include a third column in your CSV containing the bouquet name (e.g., Sports, Movies, Kids). The builder injects group-title="Sports" into each #EXTINF directive so IPTV players organize your channels into clean folders.
Yes. Instead of http:// links, list relative audio paths like Music/Album01/01_Track.flac alongside song titles; VLC, Foobar2000, and Winamp will play the generated .m3u playlist directly from disk.
Notepad often saves files with ANSI encoding or missing #EXTM3U headers, breaking Arabic/international channel titles. Generating UTF-8 M3U playlists here ensures clean compatibility across Android TV, Firestick, and LG/Samsung players.