Convert mp4 to m3u8

Convert MP4 to M3U8

Explains why MP4 becomes HLS output and how to create M3U8 with FFmpeg.

Convert MP4 files online

We don’t have a dedicated online converter for MP4 to M3U8 yet, but you can convert MP4 files online to these and more formats:

How to convert mp4 to m3u8 file

Mp4 to m3u8 file conversion

Converting MP4 video files directly to M3U8 playlists is not a simple file-format conversion. An .mp4 file is a multimedia container that stores audio and video, while an .m3u8 file is a UTF-8 text playlist used by HLS (HTTP Live Streaming) to reference media segments.

Important: An M3U8 file does not contain the video itself. It contains text entries that point to segment files such as .ts or .m4s.

Because of this, you usually cannot just rename or directly convert an MP4 file into an M3U8 file. Instead, you must package or encode the video into HLS segments and generate an .m3u8 playlist that points to those segments.

How to create m3u8 output from mp4

The most common way is to use FFmpeg. For example, you can create an HLS playlist and segments from an MP4 file with:

ffmpeg -i input.mp4 -c copy -start_number 0 -hls_time 6 -hls_list_size 0 -f hls output.m3u8

This works best when the input codecs are already compatible with HLS. If not, FFmpeg may need to re-encode the video and/or audio.

Example with re-encoding:

ffmpeg -i input.mp4 -c:v libx264 -c:a aac -hls_time 6 -hls_list_size 0 -f hls output.m3u8

The command creates the playlist file and the segment files in the same folder unless you specify a different output path or segment naming pattern.

When conversion is not enough

If your goal is to stream video over the web, creating an M3U8 playlist is only one part of the process. You may also need:

  • multiple quality variants for adaptive streaming
  • proper segment hosting on a web server or CDN
  • correct MIME types for .m3u8 and segment files
  • HTTPS, since many players require secure delivery

If you only need to play an MP4 file locally, converting it to M3U8 is usually unnecessary.

Software options

Most video editors do not export directly to M3U8, but some streaming tools and encoders can create HLS output. In many cases, the workflow is:

File → Export → HLS or File → Encode → HLS, depending on the software.

FFmpeg remains the most common command-line option for creating M3U8 playlists from MP4 files.

Summary

MP4 to M3U8 conversion is really a process of creating HLS output, not converting one file type into another. The MP4 is used as the source video, and the resulting M3U8 playlist references the generated media segments.

Simply put, it is impossible to convert MP4 to M3U8 directly.
Thus, there is no so-called mp4 to m3u8 converter or a free online .mp4 to .m3u8 conversion tool.

MP4 vs M3U8: format comparison

How the MP4 and M3U8 formats compare on the properties that matter most for this conversion.

Comparison of the MP4 and M3U8 file formats
Property .MP4 MPEG-4 Part 14 .M3U8 HTTP Live Streaming playlist
Open standard Yes Partly open
Compression Both Uncompressed
Typical file size Small Very small
Opens in a web browser Yes, natively No
Further editing Limited Easy
Metadata support Extensive Basic
Plain-text readable No Yes
Best used for Sharing and distribution Streaming
Introduced 2001 2009
Developer Moving Picture Experts Group (ISO/IEC) Apple Inc.
MIME type video/mp4 application/vnd.apple.mpegurl