4 Practical Ways to Convert M3U8 to MP4

M3U8 is a playlist file used by HLS (HTTP Live Streaming). It’s not a video container itself, but a pointer to a series of .ts segments. To get a complete MP4, you need to merge and remux these segments. Below are 4 proven methods—from command-line to GUI—suitable for different technical backgrounds.


FFmpeg is the Swiss Army knife for media processing. It can take an M3U8 URL as input and output an MP4 directly.

Steps:

  1. Install FFmpeg (from the official website or via a package manager).
  2. Open terminal / command prompt.
  3. Run the following command:
ffmpeg -i "M3U8_URL" -c copy output.mp4

-c copy copies the audio/video streams without re-encoding, making the process fast and lossless.

Tip: If the network is unstable, use the -user_agent parameter to spoof a user agent and avoid being blocked by the source server. If the M3U8 contains #EXT-X-KEY (encryption, not SAMPLE-AES), you’ll need to provide the key file manually.

Before converting, it’s a good idea to paste the link into M3U8Player to verify the stream plays correctly. If it plays, the segment URLs are valid, and you can proceed with FFmpeg confidently.


Method 2: Online Conversion Websites

For users who don’t want to install software, online tools are the most convenient. Just search for “m3u8 to mp4 online” to find various sites.

Recommended workflow:

  1. Obtain a direct M3U8 link (make sure there’s no hotlink protection or IP restriction).
  2. Paste the link into the online converter and click “Convert”.
  3. Wait for the server to fetch and assemble the segments, then download the resulting MP4.

Limitations: These services are limited by upload bandwidth and file size (most cap at 1GB). Avoid uploading privacy-sensitive content. Some sites add watermarks or throttle download speeds.

Alternative approach: If you only need a quick preview without downloading, just use M3U8Player to play the stream. It supports .m3u8 and HLS live streams with no registration required—simply open and watch. Save the conversion for more dedicated tools.


Method 3: Dedicated Download/Conversion Software

GUI-based software is newcomer-friendly. Notable examples include M3U8DL (Python version), IDM (Internet Download Manager), and M3U8 Downloader.

Using M3U8DL (as an example):

  • Install Python 3.6+ and ffmpeg.
  • Run the command line (or GUI version) with the M3U8 link:
M3U8DL.exe "M3U8_URL" –enableDelAfterCombine
  • It will automatically download segments, decrypt if needed, and merge them into an MP4.

IDM method:

  1. Open IDM → Tasks → Download Link → Enter the M3U8 URL.
  2. IDM will parse the .ts file list and download the segments in parallel.
  3. After downloading, you’ll need to manually merge them into an MP4 using FFmpeg.

Comparison: Dedicated software usually supports batch processing, resume, and key-based decryption—ideal for frequent downloaders.


Method 4: Browser Extensions

If you’re watching a video on a webpage and want to save it as MP4, browser extensions are the fastest way.

Popular extensions:

  • Video DownloadHelper (Firefox/Chrome)
  • Stream Video Downloader (Chrome)
  • M3U8 Scraper / HLS Downloader (Tampermonkey scripts)

Steps:

  1. Open the page containing an M3U8 video in your browser.
  2. The extension will automatically detect the .m3u8 resource. Click to capture it.
  3. Choose to download all segments and auto-merge them into an MP4.

Note: Some websites use HLS encryption or anti-download mechanisms that extensions may not handle. In that case, copy the M3U8 URL to M3U8Player first to verify it’s accessible, then use another method for downloading.


How to Choose

Use CaseRecommended MethodReason
Familiar with CLI, batch needsFFmpeg (Method 1)Free, controllable, no file size limit
Want no installation, one‑offOnline converter (Method 2)Zero setup, good for small files
Need GUI, complex keysDedicated software (Method 3)Highly automated, supports encryption
Save directly from browser pageBrowser extension (Method 4)One‑click, least effort

Whichever method you choose, it’s wise to test the link first using M3U8Player to confirm it works—saving you wasted effort. If you’re only watching online, just play the M3U8 directly in M3U8Player without converting. Only reach for these tools when you need offline storage or further editing.

These four methods cover everything from beginner to advanced. Pick the one that fits your workflow best, and turn M3U8 into MP4 with ease.