Home / Knowledge / Basics

What Is M3U8? A Playlist You Can Actually Read

Many people first meet M3U8 when a link ending in .m3u8 turns out not to be a video file at all, but a piece of text. That's the key: an M3U8 file is a playlist, not the video itself.

Where it comes from

M3U8 derives from the M3U playlist format and is encoded in UTF-8 — hence the "8". It is the core of Apple's HTTP Live Streaming (HLS) protocol. The playlist lists the URLs of short video segments (usually .ts files) along with metadata such as bitrate and resolution.

What's inside a playlist

Open an M3U8 file and you'll see lines starting with # and lines that don't. The former are tags (for example, segment duration #EXTINF or variant stream info #EXT-X-STREAM-INF); the latter are actual media segment URLs or nested playlist URLs.

A master playlist lists several quality variants and lets the player pick one based on bandwidth; a media playlist lists the segments for a specific variant. This two-level structure is the secret behind adaptive bitrate streaming.

Why it's designed this way

Slicing video into small chunks and serving them over plain HTTP brings two big advantages: you can reuse existing CDNs and web servers instead of a dedicated streaming protocol, and the player can switch quality at any segment boundary. That's why HLS is everywhere, from live platforms to on-demand sites.

How HLS Works: From Slicing to Playback →