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
A .ts file is one of two unrelated things: an MPEG transport stream video, used for broadcast TV recordings, streaming segments and camcorders, or a TypeScript source code file used by web developers. You can tell them apart by size and content: video files are large binary data, TypeScript files are small readable text.
A .mp4 file is a video container defined by the MPEG-4 Part 14 standard. It usually holds H.264 or H.265 video with AAC audio, plus optional subtitles, chapters and metadata. MP4 is the most widely supported video format: phones, browsers, TVs, editors and social platforms all play it without extra software.
A .vtt file is a WebVTT subtitle or caption file: plain text with timed cues that web browsers display over HTML5 video. It starts with the word WEBVTT and supports styling, positioning and chapter or description tracks. YouTube, Vimeo, Zoom and most online video platforms use or export VTT captions.
A .mp3 file is a compressed audio file using MPEG-1 Audio Layer III, the lossy format that made digital music portable. It shrinks audio to roughly a tenth of CD size by discarding sounds the ear barely notices. MP3 plays on virtually every phone, computer, car stereo and browser.
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.