← Blog.backToBlog

M3U8 Is Just Text: How to Read Playlist Files

6 min read

M3U8 Files Are Plain Text

Despite the technical-sounding name, M3U8 files are plain UTF-8 text. Open them with Notepad, TextEdit, VS Code, or any editor. Example:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.000,
segment-0.ts
#EXTINF:10.000,
segment-1.ts
#EXT-X-ENDLIST

Reading the Key Information

  • ENDLIST present? Yes = VOD; No = live (or event) stream.
  • How many segments? Count EXTINF lines.
  • Segment duration? Number after each EXTINF.
  • Multiple STREAM-INF? Adaptive bitrate master playlist.
  • RESOLUTION / BANDWIDTH? Quality levels offered.
  • EXT-X-KEY? Stream is encrypted.

Troubleshooting by Reading the File

  • Relative segment URLs break if the playlist base path changes.
  • Very high TARGETDURATION means longer buffering.
  • Jumping MEDIA-SEQUENCE often means live segments expired.
  • Missing ENDLIST on a finished VOD confuses players.

Tag details: format explained and tags reference.

How to Open the File

Download the .m3u8 or open its URL in a browser (it may display or download). Then open with a text editor. Do not expect double-click to “play” video — for playback use a player instead.

Editing Safely

You can edit paths or tags, but invalid playlists break players. Keep a backup, stay UTF-8, and re-test after changes. Prefer generating playlists with FFmpeg for production rather than hand-editing large files.

Frequently Asked Questions

Can I open M3U8 in Notepad?
Yes — it is plain text.

Why do I only see URLs, not video?
Because M3U8 is a playlist, not a video container.

How do I know if it is live?
No #EXT-X-ENDLIST usually means live.

How do I play after reading?
Paste the playlist URL into an online player.