Skip to main content
All posts

How to Convert M3U8 to MP4: 4 Methods Compared

Compare four ways to turn an M3U8 stream into an MP4 file, from an online tool to FFmpeg, VLC, and browser extensions.

Tutorial

An M3U8 link is an index of video segments, not a video file (see What Is M3U8? for the details). To keep a video for offline viewing or editing, you need to download those segments and package them as MP4. Here are four common ways to do it, with the trade-offs of each.

Before you start: find the M3U8 URL

All four methods need the M3U8 URL:

  1. Open the page with the video and start playback.
  2. Open developer tools (F12 or Cmd+Option+I) and switch to the Network tab.
  3. Type m3u8 in the filter box and reload the page if nothing appears.
  4. Right-click the request and copy its URL.

If you see several M3U8 requests, the first one is usually the master manifest and the others are the quality-specific media manifests.

Method 1: An online converter

Best for: quick, one-off conversions without installing anything.

Paste the M3U8 URL into an online tool such as m3u8 to mp4, choose a quality if the stream offers several, and download the resulting MP4.

  • Pros: no installation, works on any operating system, no command line.
  • Cons: depends on the source allowing access; very long videos take longer to process.

Method 2: FFmpeg

Best for: developers and anyone comfortable with the terminal.

FFmpeg is the standard open-source tool for audio and video. A single command downloads every segment and remuxes it into MP4 without re-encoding:

bash
ffmpeg -i "https://example.com/video/index.m3u8" -c copy -bsf:a aac_adtstoasc output.mp4
  • -c copy copies the audio and video streams as-is, so quality is unchanged and conversion is fast.
  • -bsf:a aac_adtstoasc fixes the AAC audio format that HLS often uses so it fits inside MP4.

If the site requires specific headers, add them with -headers "Referer: https://example.com".

  • Pros: free, fast, scriptable, handles almost every stream.
  • Cons: requires installation and command-line knowledge.

Method 3: VLC media player

Best for: desktop users who already have VLC.

  1. Open VLC and choose Media → Convert / Save (macOS: File → Convert / Stream).
  2. Switch to the Network tab and paste the M3U8 URL.
  3. Pick an MP4 profile, set the destination file, and start.
  • Pros: graphical interface, free, cross-platform.
  • Cons: VLC re-encodes by default, which is slower and can lower quality; it can also struggle with some streams.

Method 4: Browser extensions

Best for: people who often save videos from the same sites.

Some extensions detect HLS streams on the page and offer a download button.

  • Pros: very convenient once installed.
  • Cons: extensions often ask for permission to read every site you visit. Check the publisher and reviews carefully, and remove extensions you no longer use.

Which method should you choose?

MethodInstall neededSkill levelRe-encoding
Online toolNoBeginnerNo
FFmpegYesAdvancedNo (with -c copy)
VLCYesIntermediateUsually yes
Browser extensionYesBeginnerDepends

For most people an online tool is the fastest start, and FFmpeg is the most powerful option when you need full control. If a conversion fails, our guide to common M3U8 errors and fixes walks through the usual causes.

Remember to only convert videos you have the right to download.