What is an M3U file?
M3U is a plain-text playlist format. It stores paths or URLs to media rather than the media itself, which is why the same simple format can organise music files, radio stations and live IPTV streams.
M3U in one sentence
An M3U file is a text file containing an ordered list of media locations. Each location can point to a local file or a remote URL.
Basic M3U syntax
#EXTM3U
#EXTINF:-1,Example Channel
https://example.org/live/stream.m3u8#EXTM3U marks an extended M3U playlist. #EXTINF can provide metadata such as a channel name and, in IPTV playlists, attributes for logos, groups or EPG mapping. The next line is normally the actual media URL.
How IPTV uses M3U
For IPTV, an M3U playlist acts as a channel directory. Each entry can point to an HLS stream, MPEG-TS stream or another format supported by the player. Dedicated IPTV apps parse the metadata to build channel groups and menus.
Common extended IPTV attributes
| Attribute | Purpose |
|---|---|
tvg-id | Identifier used to match a channel with EPG data. |
tvg-name | Alternate channel name for guide matching. |
tvg-logo | URL of a channel logo. |
group-title | Category or channel group shown by the player. |
Is M3U the same as M3U8?
They are closely related playlist formats. In everyday use, the main distinction is encoding: M3U8 is explicitly UTF-8. M3U8 is also commonly used as a manifest extension for HTTP Live Streaming (HLS). See M3U vs M3U8 for the full comparison.