Convert m3u8 to mp4

Convert M3U8 to MP4

Convert an accessible HLS playlist into a compatible MP4 with FFmpeg, VLC, or an online service.

Convert M3U8 files online

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

How to convert m3u8 to mp4 file

  • Audio

Many phones, editors, televisions, and media players require one local MP4 rather than an HLS playlist. Saving the stream as MP4 also makes sharing, offline playback, and archiving possible when you have permission to download it.

What the M3U8 format is

An M3U8 file is a UTF-8-encoded text playlist, not normally a video file. In HLS delivery, it lists short media segments—usually MPEG-TS or fragmented MP4 files—and can also reference separate audio, video, subtitle, and quality variants.

An M3U8 may be a local file, a master playlist containing several quality levels, or a media playlist containing the segments for one stream. Streaming servers, content-delivery networks, web players, IPTV applications, and Apple platforms commonly use it. A browser’s network panel may show an M3U8 URL while a live or on-demand video is playing.

What the MP4 format is

MP4 is a multimedia container that stores complete audio and video tracks in one file. It is widely supported by Windows, macOS, Android, iOS, browsers, televisions, video editors, and social platforms.

MP4 is convenient for local playback, editing, and archiving because it does not depend on a playlist server or remote segment URLs. H.264 video with AAC audio provides broad compatibility. H.265/HEVC and AV1 can reduce file size at similar quality, but older devices and applications may not support them.

Convert with FFmpeg

FFmpeg is the most flexible desktop option for local playlists and accessible HLS URLs. Install it from ffmpeg.org or your operating system’s package manager, then run the command in Terminal, Command Prompt, or PowerShell.

  1. Copy the complete M3U8 URL, or place the local playlist and its referenced files where FFmpeg can access them.
  2. Try remuxing the existing streams without re-encoding:
ffmpeg -i "https://example.com/path/stream.m3u8" -map 0:v:0 -map 0:a:0? -c copy -movflags +faststart "output.mp4"

Replace the URL with input.m3u8 for a local playlist. The optional ? prevents failure when the playlist has no audio track. -c copy changes the container without recompressing the streams, so it preserves source quality and is usually fast.

If the source codecs are unsuitable for the target device or MP4 workflow, transcode them:

ffmpeg -i "input.m3u8" -map 0:v:0 -map 0:a:0? -c:v libx264 -preset medium -crf 20 -c:a aac -b:a 192k -movflags +faststart "output.mp4"

For H.264, CRF values around 18–23 are common; lower values produce larger files and generally higher quality. Re-encoding takes longer and cannot restore quality already lost in the source.

If a server requires a request header, FFmpeg may need options such as -user_agent or -headers. Expiring URLs, cookies, and authentication may require obtaining a fresh authorized URL rather than copying a playlist file by itself.

Convert with a graphical application

VLC can handle straightforward, accessible streams:

  1. For a URL, choose Media → Open Network Stream; for a local playlist, choose Media → Open File.
  2. Choose Media → Convert/Save, confirm the input, and select Convert.
  3. Choose an MP4 profile using H.264 video and AAC audio when available, specify a destination ending in .mp4, and select Start.

VLC profiles and HLS support vary by version, and it offers less control over variant selection, authentication, subtitles, and failures than FFmpeg. Shutter Encoder is another desktop interface built around FFmpeg and is suitable when you prefer menus to commands.

Use an online converter

Online conversion is appropriate only for a public, non-DRM stream that contains no confidential material. A service such as CloudConvert can be considered if its current import options explicitly accept an M3U8 or HLS URL; verify this before uploading or submitting the link. Many online converters accept ordinary MP4, MOV, or MKV files but do not process playlists.

Uploading the M3U8 text file alone often fails because it contains references rather than media, and its segment URLs may be relative, private, geo-restricted, or expired. An online service must be able to fetch every required segment and key from its own servers.

Quality and compatibility limits

A live playlist may never finish. FFmpeg records the segments available while it runs; stop it with Ctrl+C when the desired duration has been captured. A master playlist can contain multiple resolutions and bitrates, and the selected variant determines the output quality. Inspect the FFmpeg log or use a media player to confirm which variant was selected.

Remuxing does not improve quality. Use -c copy when the source already uses compatible codecs, especially H.264 and AAC. Transcode when the source uses unsupported codecs, when the target application requires a particular profile, or when the original segments cannot be placed in a compatible MP4 container.

Accessible HLS may use ordinary AES-128 segment encryption, which FFmpeg can process when the playlist and key are authorized and available. DRM systems such as Widevine, FairPlay, and PlayReady are different; do not attempt to bypass them. HTTP restrictions, missing permissions, geo-blocking, discontinuities, damaged segments, and unavailable encryption keys can also prevent a complete file.

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

M3U8 vs MP4: format comparison

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

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