Browser clip export

HLS Video Trimmer: Cut an M3U8 Stream in Your Browser

An HLS video trimmer cuts an M3U8 stream by selecting a start and end time, fetching the overlapping HLS segments, and exporting the selected range as an MP4. This browser workflow runs locally with FFmpeg WebAssembly, so the clip is not uploaded to a converter server.

Last updated: June 20, 2026

Playback, history, favorites, subtitles, and browser conversion stay on this device. HLS requests go through the proxy only when you turn on the CORS proxy.

Smart CORS proxy

Use the Cloudflare Worker proxy for manifests, keys, and segments when direct browser playback is blocked.

Video preview

Link health report

Parse variants, bitrate, segment duration, encryption, and live/VOD status, then sample media segments for dead links. Segment checks are limited by browser CORS, so enable the proxy for the most accurate result.

HLS trimming options

MethodBest forTrade-off
Browser FFmpeg trimQuick private clips from reachable M3U8 streams.Limited by browser memory and device performance.
Stream-copy MP4 cutFast exports without re-encoding video or audio.Start time may snap to the nearest keyframe.
Desktop FFmpegVery long streams, huge archives, or scripted batch jobs.Requires install and command-line setup.
Upload converterFiles already stored locally and safe to upload.Private stream URLs and finished clips leave your device.
DRM playerLicensed protected streams that require Widevine, FairPlay, or PlayReady.Use the authorized app. This tool does not bypass DRM.

How to trim an HLS stream online

  1. 1Paste and play the M3U8 URLLoad the stream first so you know the manifest, keys, and segments are reachable before trimming.
  2. 2Enable proxy only if access is blockedIf CORS or Referer protection prevents playback, route the stream through the proxy and set the required Referer before exporting.
  3. 3Set start and end timesChoose the range you want to keep. The exporter downloads only the HLS segments that overlap the selected time window.
  4. 4Export the MP4 clipFFmpeg WebAssembly remuxes the selected media into an MP4 file in your browser.
  5. 5Check the first secondsStream-copy trimming cuts on keyframes, so the resulting clip can start slightly earlier than the exact timestamp.

Why HLS trimming uses segment boundaries

HLS streams are split into many small media segments, usually a few seconds each. A browser trimmer finds the segments overlapping your start/end range, downloads them, and asks FFmpeg to create the output clip. This is faster than downloading the entire stream for short clips.

Why the start time may not be exact

Fast MP4 export uses stream-copy rather than re-encoding every frame. Stream-copy preserves quality and speed, but most video can only start cleanly on keyframes. If you need frame-accurate cuts, a full re-encode in desktop FFmpeg is the more precise workflow.

When the proxy is part of trimming

The trimmer still needs browser access to manifests, keys, and segments. If the stream is blocked by CORS or hotlink protection, fix playback with the proxy and custom Referer first. The proxy routes network requests, but the FFmpeg clip assembly still runs locally.

Frequently asked questions

Can I trim an M3U8 stream online?

Yes. Paste a reachable M3U8 URL, set a start and end time, and export the selected range as MP4 in the browser. The clip is not uploaded to a converter server.

Does HLS trimming download the whole stream?

Not for a short selected range. The exporter downloads the HLS segments that overlap your time range, then remuxes that range into an MP4 file locally.

Why is my trimmed clip start time slightly early?

Fast stream-copy export usually cuts on keyframes. If the exact start time is between keyframes, the output may start a little earlier so the MP4 remains playable.

Can I trim an encrypted M3U8 stream?

Normal AES-128 HLS can work when the key URL and segments are reachable. DRM-protected streams that require license exchange are not supported.

Is this HLS video trimmer free?

Yes. It is free, ad-free, requires no account, and runs in your browser. Very long streams may still be better handled by desktop FFmpeg.