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
- Rating: 4.0/5
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.
- Copy the complete M3U8 URL, or place the local playlist and its referenced files where FFmpeg can access them.
- 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:
- For a URL, choose Media → Open Network Stream; for a local playlist, choose Media → Open File.
- Choose Media → Convert/Save, confirm the input, and select Convert.
- 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.
| 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 |
Suggested software and links: m3u8 to mp4 converters
Additional formats for
m3u8 file conversion
Reverse conversion
Convert to mp4 from
other formats
- cda to mp4
- text to mp4
- xspf to mp4
- txt to mp4
- sfk to mp4
- mp3 to mp4
- mpdp to mp4
- m4a to mp4
- fla to mp4
- flac to mp4
- 3ga to mp4
- aa to mp4
- aax to mp4
- ac3 to mp4
- aif to mp4
- amr to mp4
- ape to mp4
- apl to mp4
- au to mp4
- br25 to mp4
- br28 to mp4
- br3 to mp4
- br4 to mp4
- br5 to mp4
- caf to mp4
- cpa to mp4
- dmse to mp4
- doc to mp4
- docx to mp4
- dsm to mp4
- m4r to mp4
- midi to mp4
- mka to mp4
- mmf to mp4
- mobi to mp4
- mp1 to mp4
- mp2 to mp4
- mpa to mp4
- mpc to mp4
- ogg to mp4
- sd2 to mp4
- sesx to mp4
- sfl to mp4
- voc to mp4
- vox to mp4
- wave to mp4
- wma to mp4
- wv to mp4
- wvc to mp4
- xkr to mp4
- zab to mp4