What Is an M3U8 File? Understanding HLS Streaming

Discover what M3U8 files are, how HLS streaming works, and how compatible video downloaders handle supported streams.

What Is an M3U8 File?

M3U8 is a plain text playlist format used with HTTP Live Streaming (HLS). Unlike a traditional MP4 file that contains all video frames in one place, an M3U8 file only holds a list of web addresses pointing to smaller media segments.

Because it is a UTF-8 encoded text index, opening an `.m3u8` file on its own without downloading the referenced segments will not play a video offline.

How Does M3U8 Work?

An HLS video typically follows four clean steps from the moment you press Play:

  1. A website provides a master M3U8 playlist listing available quality tiers and audio tracks.
  2. The player selects a media playlist matching your screen and internet speed.
  3. The playlist identifies sequential media segments, usually 2 to 6 seconds long.
  4. The video player requests and plays those segments smoothly in order.

Can M3U8 Be Converted Into MP4?

Yes. Compatible HLS streams can be processed and assembled into a single MP4 video file, depending on their structure and supported codecs.

Snagly identifies supported HLS resources on a page, displays the available quality levels, fetches the segments in parallel, and combines them into a single local file without needing command line software.

Frequently Asked Questions

Why is a saved .m3u8 file only a few kilobytes?

Because `.m3u8` is only a text index listing remote segment links. You need an HLS downloader like Snagly to fetch and combine the video segments into an MP4.

Is HLS used for both live streams and recorded videos?

Yes. On-demand HLS playlists list every segment upfront, while live HLS playlists continuously append new segments during a broadcast.