What Is a .M3U8 File? (.m3u8, .m3u)

A .m3u8 file is a UTF-8 text playlist that lists media files or stream segments. It is best known as the playlist for HLS (HTTP Live Streaming), the format most online video uses. An M3U8 contains no video itself, only links; players like VLC and Safari read it and stream the pieces.

Extension
.m3u8, .m3u
Full name
UTF-8 M3U Playlist (HLS Playlist)
Type
Video file
MIME type
application/vnd.apple.mpegurl, audio/mpegurl
Developed by
Apple (HLS)

About M3U8 files

M3U began as a simple music playlist, one file path per line; M3U8 is the same thing saved as UTF-8. Apple's HTTP Live Streaming, published as RFC 8216, adopted M3U8 for its playlists: a master playlist lists versions of a stream at different resolutions and bitrates, and each media playlist lists short segments, usually .ts or fragmented MP4 files a few seconds long.

That design lets players switch quality as your connection changes. It also explains a common confusion: downloading an M3U8 file gives you a few kilobytes of text, not the video. Opening it later fails if the links expired or the site requires a login, and many streams are encrypted with DRM.

For your own streams or content you have rights to, ffmpeg can save an HLS stream to a single MP4 (ffmpeg -i URL -c copy output.mp4). Music M3U8 playlists are portable lists of song paths; they break when the songs move, unless the paths are relative.

What M3U8 files are used for

  • Live and on-demand video streaming (HLS)
  • IPTV channel lists
  • Music playlists in players like VLC, Winamp and foobar2000
  • Adaptive bitrate video on websites and apps

How to open a .m3u8 file

Windows

Open it in VLC (Media > Open File, or Open Network Stream for a URL). Notepad shows the list of links.

Mac

Safari plays HLS streams natively; VLC or IINA open M3U8 files and URLs. TextEdit shows the contents.

iPhone and iPad

Safari plays M3U8 stream URLs; VLC for Mobile opens playlist files and stream links.

Android

VLC for Android opens M3U8 files and network streams.

How to convert a .m3u8 file

To save a stream you are allowed to download as MP4, run ffmpeg -i playlist.m3u8 -c copy video.mp4; this copies the segments into one file without re-encoding.

Renaming .m3u8 to .mp4 does not work; the file is a text list of links, not video.

To convert a music M3U8 to another player's playlist format, open it in that player (VLC, foobar2000) and save the playlist again.

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming M3U8 files

  • For HLS output, use clear names for variants (index.m3u8 for the master, 720p.m3u8 and 1080p.m3u8 for renditions) and keep segments in matching folders.
  • Name music playlists after the mood or event (road-trip-2025.m3u8) and use relative paths so the playlist travels with the music folder.
  • Do not rename segment files after generating a playlist; the M3U8 lists them by name.

Renaming lots of .m3u8 files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

How do I play an M3U8 file?

Open it in VLC or, for stream URLs, in Safari. The file is a playlist, so the linked streams must still be online.

Why is my downloaded M3U8 file so small?

It is only a text playlist pointing to video segments on a server; the video itself was not downloaded.

How do I convert M3U8 to MP4?

For streams you have rights to, ffmpeg -i URL -c copy output.mp4 saves them as one MP4. DRM-protected streams cannot be converted.

What is the difference between M3U and M3U8?

M3U8 is an M3U playlist saved in UTF-8 text encoding, so it handles non-English characters reliably.

More video file extensions · all file extensions