HLS tag reference

Every tag an .m3u8 playlist can contain, explained in plain English, with syntax, attributes and examples from RFC 8216.

An HLS playlist, the .m3u8 file behind many video streams, is plain text. Lines that start with #EXT are tags: they tell a player how long each segment is, which qualities exist, whether the stream is live and more. The tags are defined in RFC 8216, the HTTP Live Streaming specification published in August 2017, and this reference covers all 22 tags it defines. A second edition is being written as the RFC 8216bis draft; where it adds attributes that are already widely used, the reference says so.

HLS uses two kinds of playlist. A master playlist (the draft calls it a multivariant playlist) lists the available qualities, audio tracks and subtitles, and points to a media playlist for each. A media playlist lists the segments themselves, the short pieces of video a player downloads one after another. Each tag page says which kind of playlist the tag belongs in and shows its syntax, attributes and an example, with the rules from the RFC and how m3u8.cloud treats it. To see which tags a real stream uses, open its link in the m3u8 inspector.

Basic tags

Media segment tags

Media playlist tags

Master playlist tags

Master or media playlist tags

Check the tags in any playlist

Open the m3u8 inspector