Skip to content
FileKit
Audio And VideoRuns in your browser5 min read

Video Trimmer

This video trimmer cuts a video down to the exact range you choose without uploading the file anywhere. Set a start and end time, press trim, and the browser plays that section of the video while capturing its stream with MediaRecorder, producing a trimmed WebM clip you can download once the range finishes recording.

Loading the tool interface
Files never leave your deviceNo upload wait and no queueNo signup, watermark or file limit

Trimming this way is different from how desktop editing software works. A native editor can often cut a video without re encoding a single frame, which finishes instantly. A browser has no equivalent low level access to a video file's internal frame structure, so the only way to produce a genuinely new, shorter video file with standard web technology is to play the selected range in real time and record what comes out, exactly the way a screen recorder would.

That trade off is worth understanding up front: a two minute selection takes roughly two minutes to trim, because the browser is recording playback as it happens rather than editing the file's data directly. In exchange, nothing about your video is ever uploaded, and the whole process works entirely offline once the page has loaded.

Why a video trimmer built for the browser takes real time

MediaRecorder, the browser API this video trimmer relies on, only knows how to record a live media stream as it plays. There is no browser equivalent of a video editor's cut and copy operation that manipulates the encoded file directly, so the honest way to trim video online with nothing but web technology is to actually play the selected range and capture it through captureStream while it happens.

This means the trim duration is bound by the length of your selection, not the size of the file. A ten second cut video clip out of a two hour source still takes about ten seconds to trim, while a five minute highlight takes about five minutes, regardless of how long the original recording is.

  • Expect a trim to take roughly as long as the selected range, not the whole source file.
  • Keep the tab focused and active while trimming, since backgrounding it can pause playback in some browsers.
  • Trim shorter ranges when you only need a highlight rather than a long section.
  • Plan for the wait the same way you would plan for a real time screen recording.

Why the output is WebM, not the original format

MediaRecorder encodes whatever the browser's built in encoder supports, which on Chrome, Firefox and Edge means a WebM container using the VP8 or VP9 video codec and Opus audio. Safari instead offers MP4 through the same API. There is no way for a browser based tool to write back into the source format's exact codec and container unless the browser's own recorder happens to support it, so this tool is explicit about producing WebM rather than quietly claiming to preserve the original format.

WebM plays natively in every modern browser and in most current video players and editors, so for sharing a trimmed clip online or reviewing it locally, the format change rarely causes a practical problem. If you specifically need the trimmed clip back in MP4 for a system that only accepts that container, a further conversion step is required after trimming.

Setting the start and end time precisely

Use the start and end time controls to select the range you want to keep, shown against the video's total duration. The video seeks to your start point before recording begins, and recording stops automatically the instant playback reaches your end point, so the result matches your selection closely.

Very short selections are more sensitive to the small delay a browser needs to begin encoding after a seek, so for clips under two seconds, adding a small buffer on either side and trimming again afterward with a second pass tends to give a cleaner result than trying to hit an exact frame on the first attempt.

How this video trimmer captures the stream

Once you press trim, the video element seeks to your chosen start time, then calls captureStream to expose its decoded video and audio as a live MediaStream. That stream is handed to a MediaRecorder instance, recording begins, and the video plays forward through your selected range while every frame and audio sample that passes through is captured into the output file.

When playback reaches your end time, the video is paused and the recorder is stopped, at which point the captured chunks are assembled into the final WebM blob. Because this whole pipeline runs inside your browser tab, no part of the video is ever transmitted to a server at any stage of the trim.

How to trim a video

  1. 1

    Add your video file

    Drag an MP4, WebM or MOV file onto the drop area, or click it to browse. The file stays on your device.

  2. 2

    Set the start and end time

    Choose the exact range to keep against the video's total duration.

  3. 3

    Trim the video

    Press trim. The video plays through the selected range in real time while MediaRecorder captures it.

  4. 4

    Download the WebM clip

    Once recording finishes, download the trimmed clip as a WebM file.

Related tools worth bookmarking

Sources and further reading

Frequently asked questions

Common questions about the video trimmer.

Browsers can only record a video stream as it plays, using the MediaRecorder API, rather than editing an encoded file's internal structure the way desktop software can. Trimming a video this way means playing the selected range in real time while it is captured, so a two minute selection takes about two minutes to produce.

MediaRecorder encodes using whatever format the browser's built in recorder supports, which is WebM with VP8 or VP9 video and Opus audio on Chrome, Firefox and Edge. There is no browser API that lets a web page write back into an arbitrary source codec, so WebM is the honest output rather than a false promise to preserve the original container.

Yes. This video trimmer runs entirely inside your browser tab using MediaRecorder and captureStream, so there is nothing to install and no account required. You add a file, set a range and download the webm video export once recording finishes.

Some quality change is expected, because the output is re encoded by the browser's VP8 or VP9 encoder during recording rather than copied bit for bit from the source. For most clips this is not noticeable at normal viewing sizes, but it is not a lossless operation the way trimming inside a professional non linear editor can be.

No. Playback, stream capture and recording all happen locally in your browser using MediaRecorder. The file is never transmitted to a server, which you can confirm by watching your browser's network panel while a trim runs, since it will show no outgoing request carrying the video.

Keeping the tab active and visible is the safest way to trim, since some browsers throttle or pause background tabs to save resources, which can interrupt a real time recording partway through. Leave the tab in view until the progress bar reaches completion.